New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Rebuilding the poller cache does not always work as expected #5279
Comments
Is this the latest 1.2.x branch or what? |
Last line of issue description - it is on 1.2.23 version. I've seen it on older versions. I can update to actual 1.2.24 branch and test it again if you want. |
Please. |
Just looking at the rebuild script. Damn, it's wrong in a number of places. That script is not multiple-poller aware as of right now. Big oversight. |
Rebuild poller cache does not work as expected. This change modifies the output during runtime and separates each poller_id into larger loops.
This change will make the handling between push_out_hosts and rebuild_poller_cache consistent.
Tested, works fine now. Thank you |
Maybe one thing, DEBUG is little bit confusing. I ran rebuild_poller_cache for one host, but scripts says there are '2' devices. Is it normal? [root@kaktus /usr/local/share/cacti/cli]# php rebuild_poller_cache.php --host-id=649 --debug |
Yea, whoops. Good catch. Let me fix that. |
This additional fix will report properly when there is either a host_id or host_template_id specified. It's that stupid host zero case. |
Just close when you are satisfied. |
It is reporting now correctly: |
I found that multiCPU_avg data source was updated during the update. Old code has a lot of parameters:
function ss_multicpu_avg($hostname,$snmp_community,$snmp_version, $snmp_port,$snmp_timeout)
new code has only host_id.
My poller cache looked like this:
So I haven't new data data ater update.
I tried system utilities -> rebuild poller cache. Unfortunately I'm not sure if I didn't run cli rebuild_poller_cache.php :-(
Result was:
Instead of host_id is here hostname. It seems that other parameters have been cut off.
Next run rebuild poller cache from web or cli = the same result.
management -> devices -> choose one -> repopulate poller cache = work well
Cli push_out_hosts.php = works well too.
For me it is very confusing. Why host repopulating cache is doing anything different than other repopulate action?
1.2.23 (and older version too, I think that I reported it before
The text was updated successfully, but these errors were encountered: