Poller.php not working on new rrd files created..
Moderators: Developers, Moderators
Poller.php not working on new rrd files created..
Having a weird problem here, and hopefully someone can answer it.
I hvae set up some of my first rrds and it graphs wonderfully. However, new data sources that I created are not polled..
my /etc/crontab has an entry as follows:
*/5 * * * * cactiuser php /var/www/html/cacti/poller.php > /dev/null 2>&1
not sure what is going on.. am I missing an important step?
Thanks
kit
I hvae set up some of my first rrds and it graphs wonderfully. However, new data sources that I created are not polled..
my /etc/crontab has an entry as follows:
*/5 * * * * cactiuser php /var/www/html/cacti/poller.php > /dev/null 2>&1
not sure what is going on.. am I missing an important step?
Thanks
kit
Here is the output of running php poller.php
Code: Select all
[root@austin cacti]# php poller.php
Content-type: text/html
X-Powered-By: PHP/4.3.3
06/22/2005 12:25:24 PM - POLLER: Poller[0] DEBUG: About to Spawn a Remote Process [CMD: /usr/bin/php, ARGS: -q /var/www/html/cacti/cmd.php 0 5]
Waiting on 1/1 pollers.
Waiting on 1/1 pollers.
Waiting on 1/1 pollers.
06/22/2005 12:25:27 PM - POLLER: Poller[0] Parsed MULTI output field '1min:0.57' [map 1min->load_1min]
06/22/2005 12:25:27 PM - POLLER: Poller[0] Parsed MULTI output field '5min:0.30' [map 5min->load_5min]
06/22/2005 12:25:27 PM - POLLER: Poller[0] Parsed MULTI output field '10min:0.20' [map 10min->load_15min]
06/22/2005 12:25:27 PM - POLLER: Poller[0] CACTI2RRD: /usr/local/rrdtool-1.2.9/bin/rrdtool update /var/www/html/cacti/rra/localhost_users_6.rrd --template users 1119468325:1
OK u:0.00 s:0.00 r:2.16
06/22/2005 12:25:27 PM - POLLER: Poller[0] CACTI2RRD: /usr/local/rrdtool-1.2.9/bin/rrdtool update /var/www/html/cacti/rra/localhost_proc_7.rrd --template proc 1119468325:68
OK u:0.00 s:0.00 r:2.16
06/22/2005 12:25:27 PM - POLLER: Poller[0] CACTI2RRD: /usr/local/rrdtool-1.2.9/bin/rrdtool update /var/www/html/cacti/rra/localhost_mem_swap_4.rrd --template mem_swap 1119468325:1052248
OK u:0.00 s:0.00 r:2.16
06/22/2005 12:25:27 PM - POLLER: Poller[0] CACTI2RRD: /usr/local/rrdtool-1.2.9/bin/rrdtool update /var/www/html/cacti/rra/localhost_load_1min_5.rrd --template load_1min:load_5min:load_15min 1119468325:0.57:0.30:0.20
OK u:0.00 s:0.00 r:2.16
06/22/2005 12:25:27 PM - POLLER: Poller[0] CACTI2RRD: /usr/local/rrdtool-1.2.9/bin/rrdtool update /var/www/html/cacti/rra/localhost_mem_buffers_3.rrd --template mem_buffers 1119468325:336436
OK u:0.00 s:0.00 r:2.17
Waiting on 1/1 pollers.
06/22/2005 12:25:28 PM - POLLER: Poller[0] Parsed MULTI output field 'commit:265474048' [map commit->MS_Mem_Commit]
06/22/2005 12:25:28 PM - POLLER: Poller[0] Parsed MULTI output field 'avail:1191972864' [map avail->MS_Mem_Avail]
06/22/2005 12:25:28 PM - POLLER: Poller[0] Parsed MULTI output field 'commit:265474048' [map commit->MS_Mem_Commit]
06/22/2005 12:25:28 PM - POLLER: Poller[0] Parsed MULTI output field 'avail:1191972864' [map avail->MS_Mem_Avail]
06/22/2005 12:25:28 PM - POLLER: Poller[0] CACTI2RRD: /usr/local/rrdtool-1.2.9/bin/rrdtool update /var/www/html/cacti/rra/bosshog_ms_mem_commit_1.rrd --template MS_Mem_Commit:MS_Mem_Avail 1119468325:265474048:1191972864
OK u:0.00 s:0.00 r:3.19
06/22/2005 12:25:28 PM - POLLER: Poller[0] CACTI2RRD: /usr/local/rrdtool-1.2.9/bin/rrdtool update /var/www/html/cacti/rra/bosshog_ms_disk_usage_23.rrd --template MS_Disk_Usage 1119468325:U
OK u:0.00 s:0.00 r:3.19
06/22/2005 12:25:28 PM - POLLER: Poller[0] CACTI2RRD: /usr/local/rrdtool-1.2.9/bin/rrdtool update /var/www/html/cacti/rra/bosshog_ms_disk_usage_22.rrd --template MS_Disk_Usage 1119468325:U
OK u:0.00 s:0.00 r:3.19
06/22/2005 12:25:28 PM - POLLER: Poller[0] CACTI2RRD: /usr/local/rrdtool-1.2.9/bin/rrdtool update /var/www/html/cacti/rra/bosshog_ms_cpu_usage_19.rrd --template MS_CPU_Usage 1119468325:17
OK u:0.00 s:0.00 r:3.20
06/22/2005 12:25:28 PM - POLLER: Poller[0] CACTI2RRD: /usr/local/rrdtool-1.2.9/bin/rrdtool update /var/www/html/cacti/rra/bosshog_ms_mem_avail_8.rrd --template MS_Mem_Commit:MS_Mem_Avail 1119468325:265474048:1191972864
OK u:0.00 s:0.00 r:3.20
Waiting on 1/1 pollers.
Waiting on 1/1 pollers.
Waiting on 1/1 pollers.
Waiting on 1/1 pollers.
Timeout: No Response from 172.16.2.2:161.
Waiting on 1/1 pollers.
Waiting on 1/1 pollers.
Waiting on 1/1 pollers.
Waiting on 1/1 pollers.
Timeout: No Response from 172.16.2.2:161.
Waiting on 1/1 pollers.
Waiting on 1/1 pollers.
Waiting on 1/1 pollers.
Waiting on 1/1 pollers.
Timeout: No Response from 172.16.2.2:161.
Waiting on 1/1 pollers.
Would the new data sources you added happen to be on 172.16.2.2?
| Scripts: Monitor processes | RFC1213 MIB | DOCSIS Stats | Dell PowerEdge | Speedfan | APC UPS | DOCSIS CMTS | 3ware | Motorola Canopy |
| Guides: Windows Install | [HOWTO] Debug Windows NTFS permission problems |
| Tools: Windows All-in-one Installer |
ok, then you also saw this in your log file right? Timeout: No Response from 172.16.2.2:161. That is why it is not getting polled.
What uptime detection method are you using? Is the device pingable / responds to SNMP ?
What uptime detection method are you using? Is the device pingable / responds to SNMP ?
| Scripts: Monitor processes | RFC1213 MIB | DOCSIS Stats | Dell PowerEdge | Speedfan | APC UPS | DOCSIS CMTS | 3ware | Motorola Canopy |
| Guides: Windows Install | [HOWTO] Debug Windows NTFS permission problems |
| Tools: Windows All-in-one Installer |
The device is pingable if I ping it from the austin (the server running cacti)BSOD2600 wrote:ok, then you also saw this in your log file right? Timeout: No Response from 172.16.2.2:161. That is why it is not getting polled.
What uptime detection method are you using? Is the device pingable / responds to SNMP ?
I am using NSCLIENT script to poll cpu usage, mem and disk space..
The other thing is, my first initial test, for bosshog_mem is polling every 5 mins becuase of my crontab job, however, if I run the same test on another machine, that job is not part of the automatic poller.php thing..
Looking in the device section of cacti, does it consider 172.16.2.2 to be down (I bet so).
Once again, what uptime detection method are you using in cacti?
Once again, what uptime detection method are you using in cacti?
| Scripts: Monitor processes | RFC1213 MIB | DOCSIS Stats | Dell PowerEdge | Speedfan | APC UPS | DOCSIS CMTS | 3ware | Motorola Canopy |
| Guides: Windows Install | [HOWTO] Debug Windows NTFS permission problems |
| Tools: Windows All-in-one Installer |
Yes, 172.16.2.2. is down, and also 172.16.2.17 (the one with the working graph) is down as well.BSOD2600 wrote:Looking in the device section of cacti, does it consider 172.16.2.2 to be down (I bet so).
Once again, what uptime detection method are you using in cacti?
Under Settings, Poller Host Availability Settings, it is "Ping - Faster Option with Risk", "ICMP PING" ..
Hmm, that doesn't make sense. You can ping 172.16.2.2 from the server running Cacti but Cacti itself cannot. What is the average ping time? You might need to increase the timeout in cacti.
Alternatively, you could change the Poller Host Availability to SNMP instead.
Alternatively, you could change the Poller Host Availability to SNMP instead.
| Scripts: Monitor processes | RFC1213 MIB | DOCSIS Stats | Dell PowerEdge | Speedfan | APC UPS | DOCSIS CMTS | 3ware | Motorola Canopy |
| Guides: Windows Install | [HOWTO] Debug Windows NTFS permission problems |
| Tools: Windows All-in-one Installer |
- TheWitness
- Developer
- Posts: 17007
- Joined: Tue May 14, 2002 5:08 pm
- Location: MI, USA
- Contact:
Unfortunately, there is a version specific PHP issue associated with php_sockets that affects lib/ping.php. Question, what version of PHP are you running. Depending on your answer, I have a modified ping.php file for you to try.
You can also evaluate this by turning logging to DEBUG and then running the following from the command line and posting the output:
"php <path_cacti>/cmd.php"
TheWitness
You can also evaluate this by turning logging to DEBUG and then running the following from the command line and posting the output:
"php <path_cacti>/cmd.php"
TheWitness
True understanding begins only when we realize how little we truly understand...
Life is an adventure, let yours begin with Cacti!
Author of dozens of Cacti plugins and customization's. Advocate of LAMP, MariaDB, IBM Spectrum LSF and the world of batch. Creator of IBM Spectrum RTM, author of quite a bit of unpublished work and most of Cacti's bugs.
_________________
Official Cacti Documentation
GitHub Repository with Supported Plugins
Percona Device Packages (no support)
Interesting Device Packages
For those wondering, I'm still here, but lost in the shadows. Yearning for less bugs. Who want's a Cacti 1.3/2.0? Streams anyone?
Life is an adventure, let yours begin with Cacti!
Author of dozens of Cacti plugins and customization's. Advocate of LAMP, MariaDB, IBM Spectrum LSF and the world of batch. Creator of IBM Spectrum RTM, author of quite a bit of unpublished work and most of Cacti's bugs.
_________________
Official Cacti Documentation
GitHub Repository with Supported Plugins
Percona Device Packages (no support)
Interesting Device Packages
For those wondering, I'm still here, but lost in the shadows. Yearning for less bugs. Who want's a Cacti 1.3/2.0? Streams anyone?
Hi TheWitness-TheWitness wrote:Unfortunately, there is a version specific PHP issue associated with php_sockets that affects lib/ping.php. Question, what version of PHP are you running. Depending on your answer, I have a modified ping.php file for you to try.
You can also evaluate this by turning logging to DEBUG and then running the following from the command line and posting the output:
"php <path_cacti>/cmd.php"
TheWitness
My php version is 4.3.3 I beleive.. here is the output from the command..
Code: Select all
[root@austin cacti]# php cmd.php
Content-type: text/html
X-Powered-By: PHP/4.3.3
#!/usr/bin/php -q
- TheWitness
- Developer
- Posts: 17007
- Joined: Tue May 14, 2002 5:08 pm
- Location: MI, USA
- Contact:
Ever consider upgrading?
TheWitness
TheWitness
True understanding begins only when we realize how little we truly understand...
Life is an adventure, let yours begin with Cacti!
Author of dozens of Cacti plugins and customization's. Advocate of LAMP, MariaDB, IBM Spectrum LSF and the world of batch. Creator of IBM Spectrum RTM, author of quite a bit of unpublished work and most of Cacti's bugs.
_________________
Official Cacti Documentation
GitHub Repository with Supported Plugins
Percona Device Packages (no support)
Interesting Device Packages
For those wondering, I'm still here, but lost in the shadows. Yearning for less bugs. Who want's a Cacti 1.3/2.0? Streams anyone?
Life is an adventure, let yours begin with Cacti!
Author of dozens of Cacti plugins and customization's. Advocate of LAMP, MariaDB, IBM Spectrum LSF and the world of batch. Creator of IBM Spectrum RTM, author of quite a bit of unpublished work and most of Cacti's bugs.
_________________
Official Cacti Documentation
GitHub Repository with Supported Plugins
Percona Device Packages (no support)
Interesting Device Packages
For those wondering, I'm still here, but lost in the shadows. Yearning for less bugs. Who want's a Cacti 1.3/2.0? Streams anyone?
- TheWitness
- Developer
- Posts: 17007
- Joined: Tue May 14, 2002 5:08 pm
- Location: MI, USA
- Contact:
4.3.11 or 5.0.4
True understanding begins only when we realize how little we truly understand...
Life is an adventure, let yours begin with Cacti!
Author of dozens of Cacti plugins and customization's. Advocate of LAMP, MariaDB, IBM Spectrum LSF and the world of batch. Creator of IBM Spectrum RTM, author of quite a bit of unpublished work and most of Cacti's bugs.
_________________
Official Cacti Documentation
GitHub Repository with Supported Plugins
Percona Device Packages (no support)
Interesting Device Packages
For those wondering, I'm still here, but lost in the shadows. Yearning for less bugs. Who want's a Cacti 1.3/2.0? Streams anyone?
Life is an adventure, let yours begin with Cacti!
Author of dozens of Cacti plugins and customization's. Advocate of LAMP, MariaDB, IBM Spectrum LSF and the world of batch. Creator of IBM Spectrum RTM, author of quite a bit of unpublished work and most of Cacti's bugs.
_________________
Official Cacti Documentation
GitHub Repository with Supported Plugins
Percona Device Packages (no support)
Interesting Device Packages
For those wondering, I'm still here, but lost in the shadows. Yearning for less bugs. Who want's a Cacti 1.3/2.0? Streams anyone?
Who is online
Users browsing this forum: No registered users and 1 guest