Cacti Remote Poller
Moderators: Developers, Moderators
Cacti Remote Poller
Hi, does anybody have any instructions on how to configure the remote poller functionality yet? Any walk through guides available? Thanks!
Re: Cacti Remote Poller
The remote poller is an entire Cacti install. You have to setup the remote poller so that it can see it's own database, and that it can see the database of the main poller. The same applies for the main poller. It needs to read the remote pollers database. So, that involves a lot of grant statements.
Once that is all working, you can switch a device from the main poller to the remote poller, but after this, you have to perform a full sync of the remote poller, which places the poller items at the remote poller for times when the main poller is unreachable.
That's kind of it from my assessment to date. It works pretty good.
Once that is all working, you can switch a device from the main poller to the remote poller, but after this, you have to perform a full sync of the remote poller, which places the poller items at the remote poller for times when the main poller is unreachable.
That's kind of it from my assessment to date. It works pretty good.
Before history, there was a paradise, now dust.
Re: Cacti Remote Poller
Hi. So i have managed to get the remote poller listed on the main poller as an online data collector. However all the graphs on the remote poller show up as -nan. Currently using cmd.php beacuse of issues with spine installation on the remote poller.
I am outputting remote poller crontab to /tmp/poller.log and get this:
*/5 * * * * root php /usr/share/cacti/site/poller.php > /tmp/poller.log 2>&1
/tmp/poller.log:
2017-04-18 21:15:21 - POLLER: Poller[3] NOTE: Poller Int: '300', Cron Int: '300', Time Since Last: '300.47', Max Runtime '298', Poller Runs: '1'
Waiting on 1 of 1 pollers.
Waiting on 1 of 1 pollers.
Waiting on 1 of 1 pollers.
Waiting on 1 of 1 pollers.
Waiting on 1 of 1 pollers.
Waiting on 1 of 1 pollers.
Waiting on 1 of 1 pollers.
Waiting on 1 of 1 pollers.
Waiting on 1 of 1 pollers.
Waiting on 1 of 1 pollers.
Waiting on 1 of 1 pollers.
Waiting on 1 of 1 pollers.
Waiting on 1 of 1 pollers.
Waiting on 1 of 1 pollers.
Waiting on 1 of 1 pollers.
2017-04-18 21:15:43 - SYSTEM STATS: Time:21.1737 Method:cmd.php Processes:1 Threads:N/A Hosts:1 HostsPerProcess:1 DataSources:10 RRDsProcessed:0
Result from the /usr/share/cacti/log/cacti.log file show an SNMP issue:
2017-04-18 21:10:21 - POLLER: Poller[3] NOTE: Poller Int: '300', Cron Int: '300', Time Since Last: '300.38', Max Runtime '298', Poller Runs: '1'
2017-04-18 21:10:38 - PING Device[8] SNMP: Device responded to SNMP
2017-04-18 21:10:42 - POLLER: Poller[3] Time: 5.4885 s, Poller: , Theads: N/A, Devices: 1
2017-04-18 21:10:43 - SYSTEM STATS: Time:21.1868 Method:cmd.php Processes:1 Threads:N/A Hosts:1 HostsPerProcess:1 DataSources:10 RRDsProcessed:0
2017-04-18 21:15:21 - POLLER: Poller[3] NOTE: Poller Int: '300', Cron Int: '300', Time Since Last: '300.47', Max Runtime '298', Poller Runs: '1'
2017-04-18 21:15:38 - PING Device[8] SNMP: Device responded to SNMP
2017-04-18 21:15:42 - POLLER: Poller[3] Time: 5.4155 s, Poller: , Theads: N/A, Devices: 1
2017-04-18 21:15:43 - SYSTEM STATS: Time:21.1737 Method:cmd.php Processes:1 Threads:N/A Hosts:1 HostsPerProcess:1 DataSources:10 RRDsProcessed:0
snmpwalk -v 2c -c public 192.168.0.151 gives me a whole list of MIBs. The device status shows as 'up' on both the remote poller and main poller.
I deleted the device and was able to re-add it back successfully, however graphs are not created (no folders in /usr/share/cacti/site/rra) however a folder on the main poller is created in the rra folder:
-rw-r--r-- 1 apache apache 47992 Apr 18 20:25 cucm_ping_43.rrd
I ran data source debug more from the remote poller and created the rra folder manually, however no graphs created:
-rw-r--r-- 1 root root 47880 Apr 18 21:11 cucm_ping_43.rrd
The rra folders are in different locations on the 2 servers - could this cause an issue? /usr/share/cacti/site/rra for remote poller, /usr/share/cacti/rra for main poller.
Otherwise i am not sure how to proceed? Devices on the main poller are working correctly...
I am outputting remote poller crontab to /tmp/poller.log and get this:
*/5 * * * * root php /usr/share/cacti/site/poller.php > /tmp/poller.log 2>&1
/tmp/poller.log:
2017-04-18 21:15:21 - POLLER: Poller[3] NOTE: Poller Int: '300', Cron Int: '300', Time Since Last: '300.47', Max Runtime '298', Poller Runs: '1'
Waiting on 1 of 1 pollers.
Waiting on 1 of 1 pollers.
Waiting on 1 of 1 pollers.
Waiting on 1 of 1 pollers.
Waiting on 1 of 1 pollers.
Waiting on 1 of 1 pollers.
Waiting on 1 of 1 pollers.
Waiting on 1 of 1 pollers.
Waiting on 1 of 1 pollers.
Waiting on 1 of 1 pollers.
Waiting on 1 of 1 pollers.
Waiting on 1 of 1 pollers.
Waiting on 1 of 1 pollers.
Waiting on 1 of 1 pollers.
Waiting on 1 of 1 pollers.
2017-04-18 21:15:43 - SYSTEM STATS: Time:21.1737 Method:cmd.php Processes:1 Threads:N/A Hosts:1 HostsPerProcess:1 DataSources:10 RRDsProcessed:0
Result from the /usr/share/cacti/log/cacti.log file show an SNMP issue:
2017-04-18 21:10:21 - POLLER: Poller[3] NOTE: Poller Int: '300', Cron Int: '300', Time Since Last: '300.38', Max Runtime '298', Poller Runs: '1'
2017-04-18 21:10:38 - PING Device[8] SNMP: Device responded to SNMP
2017-04-18 21:10:42 - POLLER: Poller[3] Time: 5.4885 s, Poller: , Theads: N/A, Devices: 1
2017-04-18 21:10:43 - SYSTEM STATS: Time:21.1868 Method:cmd.php Processes:1 Threads:N/A Hosts:1 HostsPerProcess:1 DataSources:10 RRDsProcessed:0
2017-04-18 21:15:21 - POLLER: Poller[3] NOTE: Poller Int: '300', Cron Int: '300', Time Since Last: '300.47', Max Runtime '298', Poller Runs: '1'
2017-04-18 21:15:38 - PING Device[8] SNMP: Device responded to SNMP
2017-04-18 21:15:42 - POLLER: Poller[3] Time: 5.4155 s, Poller: , Theads: N/A, Devices: 1
2017-04-18 21:15:43 - SYSTEM STATS: Time:21.1737 Method:cmd.php Processes:1 Threads:N/A Hosts:1 HostsPerProcess:1 DataSources:10 RRDsProcessed:0
snmpwalk -v 2c -c public 192.168.0.151 gives me a whole list of MIBs. The device status shows as 'up' on both the remote poller and main poller.
I deleted the device and was able to re-add it back successfully, however graphs are not created (no folders in /usr/share/cacti/site/rra) however a folder on the main poller is created in the rra folder:
-rw-r--r-- 1 apache apache 47992 Apr 18 20:25 cucm_ping_43.rrd
I ran data source debug more from the remote poller and created the rra folder manually, however no graphs created:
-rw-r--r-- 1 root root 47880 Apr 18 21:11 cucm_ping_43.rrd
The rra folders are in different locations on the 2 servers - could this cause an issue? /usr/share/cacti/site/rra for remote poller, /usr/share/cacti/rra for main poller.
Otherwise i am not sure how to proceed? Devices on the main poller are working correctly...
Who is online
Users browsing this forum: No registered users and 2 guests