Poller.php not working on new rrd files created..

Post general support questions here that do not specifically fall into the Linux or Windows categories.

Moderators: Developers, Moderators

kitkit201
Posts: 40
Joined: Mon Jun 20, 2005 6:32 pm

Poller.php not working on new rrd files created..

Post by kitkit201 »

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
kitkit201
Posts: 40
Joined: Mon Jun 20, 2005 6:32 pm

Post by kitkit201 »

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.
User avatar
BSOD2600
Cacti Moderator
Posts: 12171
Joined: Sat May 08, 2004 12:44 pm
Location: USA

Post by BSOD2600 »

Would the new data sources you added happen to be on 172.16.2.2?
kitkit201
Posts: 40
Joined: Mon Jun 20, 2005 6:32 pm

Post by kitkit201 »

BSOD2600 wrote:Would the new data sources you added happen to be on 172.16.2.2?
yes, on 172.16.2.2 .. also only the mem_usage on 172.16.2.17 is working constantly from my crontab job..

with everything else, i have to use poller.php to get graphical data
User avatar
BSOD2600
Cacti Moderator
Posts: 12171
Joined: Sat May 08, 2004 12:44 pm
Location: USA

Post by BSOD2600 »

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 ?
kitkit201
Posts: 40
Joined: Mon Jun 20, 2005 6:32 pm

Post by kitkit201 »

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 ?
The device is pingable if I ping it from the austin (the server running cacti)

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..
User avatar
BSOD2600
Cacti Moderator
Posts: 12171
Joined: Sat May 08, 2004 12:44 pm
Location: USA

Post by BSOD2600 »

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?
kitkit201
Posts: 40
Joined: Mon Jun 20, 2005 6:32 pm

Post by kitkit201 »

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?
Yes, 172.16.2.2. is down, and also 172.16.2.17 (the one with the working graph) is down as well.

Under Settings, Poller Host Availability Settings, it is "Ping - Faster Option with Risk", "ICMP PING" ..
User avatar
BSOD2600
Cacti Moderator
Posts: 12171
Joined: Sat May 08, 2004 12:44 pm
Location: USA

Post by BSOD2600 »

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.
User avatar
TheWitness
Developer
Posts: 17007
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

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
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?
kitkit201
Posts: 40
Joined: Mon Jun 20, 2005 6:32 pm

Post by kitkit201 »

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
Hi 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
User avatar
TheWitness
Developer
Posts: 17007
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

Ever consider upgrading?

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?
kitkit201
Posts: 40
Joined: Mon Jun 20, 2005 6:32 pm

Post by kitkit201 »

TheWitness wrote:Ever consider upgrading?

TheWitness
To which version?
User avatar
TheWitness
Developer
Posts: 17007
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

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?
kitkit201
Posts: 40
Joined: Mon Jun 20, 2005 6:32 pm

Post by kitkit201 »

TheWitness wrote:4.3.11 or 5.0.4
K, i'll upgrade to 5.0.4, i'll let you know afterwards if it solves my problem.. thanks

EDIT: take that back.. going to upgrade to 4.3.11 to play it safe..
Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests