Well it was working. Tracking a number of Cisco and Linux hosts fine. Then it all stopped and I had to reinstall.
Now it creates rra files for localhost but not for the single cisco router I've given it. In fact it thinks the router is "unknown" state. Using php 4.4.4.
I'm getting this from the poller.php:
04/02/2007 05:10:01 PM - POLLER: Poller[0] DEBUG: About to Spawn a Remote Process [CMD: /opt/bin/php, ARGS: -q /var/www/cacti-0.8.6j/cmd.php 0 2]
Waiting on 1/1 pollers.
04/02/2007 05:10:02 PM - POLLER: Poller[0] Parsed MULTI output field '1min:0.03' [map 1min->load_1min]
04/02/2007 05:10:02 PM - POLLER: Poller[0] Parsed MULTI output field '5min:0.01' [map 5min->load_5min]
04/02/2007 05:10:02 PM - POLLER: Poller[0] Parsed MULTI output field '10min:0.00' [map 10min->load_15min]
04/02/2007 05:10:02 PM - POLLER: Poller[0] CACTI2RRD: /usr/bin/rrdtool update /var/www/cacti-0.8.6j/rra/localhost_proc_7.rrd --template proc 1175530201:99
04/02/2007 05:10:02 PM - POLLER: Poller[0] CACTI2RRD: /usr/bin/rrdtool update /var/www/cacti-0.8.6j/rra/localhost_users_6.rrd --template users 1175530201:2
04/02/2007 05:10:02 PM - POLLER: Poller[0] CACTI2RRD: /usr/bin/rrdtool update /var/www/cacti-0.8.6j/rra/localhost_load_1min_5.rrd --template load_1min:load_5min:load_15min 1175530201:0.03:0.01:0.00
04/02/2007 05:10:02 PM - POLLER: Poller[0] CACTI2RRD: /usr/bin/rrdtool update /var/www/cacti-0.8.6j/rra/localhost_mem_swap_4.rrd --template mem_swap 1175530201:1484808
04/02/2007 05:10:02 PM - POLLER: Poller[0] CACTI2RRD: /usr/bin/rrdtool update /var/www/cacti-0.8.6j/rra/localhost_mem_buffers_3.rrd --template mem_buffers 1175530201:52696
OK u:0.00 s:0.00 r:0.00
OK u:0.00 s:0.00 r:0.00
OK u:0.00 s:0.00 r:0.00
OK u:0.00 s:0.00 r:0.00
OK u:0.00 s:0.00 r:0.00
Waiting on 1/1 pollers.
Waiting on 1/1 pollers.
Waiting on 1/1 pollers.
Waiting on 1/1 pollers.
Waiting on 1/1 pollers.
Waiting on 1/1 pollers.
Waiting on 1/1 pollers.
[ Lots more ]
Waiting on 1/1 pollers.
Waiting on 1/1 pollers.
04/02/2007 05:14:54 PM - POLLER: Poller[0] Maximum runtime of 292 seconds exceeded. Exiting.
04/02/2007 05:14:54 PM - SYSTEM STATS: Time:293.1840 Method:cmd.php Processes:1 Threads:N/A Hosts:3 HostsPerProcess:3 DataSources:16 RRDsProcessed:5
Logs show nothing wrong.
Any ideas?
Well and truely broken
Moderators: Developers, Moderators
The remote host shows as a device within the web interface but there's otherwise no evidence of it existing:
1) No .rrd files were created. When you look at the graph debug and run it at the command line (under the cacti user) the .rrd file is created. But that doesn't happen automatically.
2) The poller.php debug log shows localhost being processed, but nothing else. These queries:
04/03/2007 09:40:11 AM - CMDPHP: Poller[0] DEBUG: SQL Assoc: "select poller_id,end_time from poller_time where poller_id = 0"
04/03/2007 09:40:11 AM - CMDPHP: Poller[0] DEBUG: SQL Assoc: "select poller_output.output, poller_output.time, poller_output.local_data_id, poller_item.rrd_path
, poller_item.rrd_name, poller_item.rrd_num from (poller_output,poller_item) where (poller_output.local_data_id=poller_item.local_data_id and poller_output.rrd_
name=poller_item.rrd_name) LIMIT 10000"
Return zero records from MySQL.
Unfortunately without the debug log showing anything for the remote host, I can't very easily follow your guide.
1) No .rrd files were created. When you look at the graph debug and run it at the command line (under the cacti user) the .rrd file is created. But that doesn't happen automatically.
2) The poller.php debug log shows localhost being processed, but nothing else. These queries:
04/03/2007 09:40:11 AM - CMDPHP: Poller[0] DEBUG: SQL Assoc: "select poller_id,end_time from poller_time where poller_id = 0"
04/03/2007 09:40:11 AM - CMDPHP: Poller[0] DEBUG: SQL Assoc: "select poller_output.output, poller_output.time, poller_output.local_data_id, poller_item.rrd_path
, poller_item.rrd_name, poller_item.rrd_num from (poller_output,poller_item) where (poller_output.local_data_id=poller_item.local_data_id and poller_output.rrd_
name=poller_item.rrd_name) LIMIT 10000"
Return zero records from MySQL.
Unfortunately without the debug log showing anything for the remote host, I can't very easily follow your guide.
- gandalf
- Developer
- Posts: 22383
- Joined: Thu Dec 02, 2004 2:46 am
- Location: Muenster, Germany
- Contact:
Please visit the device edit screen for this host and note the "device id" found in the url.
Goto "Settings" and change "Poller Verbosity Level" to DEBUG.
Then, login as cactiuser and run. You should see some stuff. Please post the output.
Remember to rest poller verbosity level!!!
Reinhard
Goto "Settings" and change "Poller Verbosity Level" to DEBUG.
Then, login as cactiuser and run
Code: Select all
php -q cmd.php <id> <id>
Remember to rest poller verbosity level!!!
Reinhard
With the logging set to DEBUG:
sh-2.05b$ /opt/bin/php -q cmd.php 3 3
sh-2.05b$
Checked the php error log too. Nothing as a result of that command, however there are other suspect entries:
[04-Apr-2007 12:39:54] PHP Warning: pclose(): 48 is not a valid stream resource in /var/www/cacti-0.8.6j/lib/rrd.php on line 48
[04-Apr-2007 12:44:54] PHP Warning: pclose(): 48 is not a valid stream resource in /var/www/cacti-0.8.6j/lib/rrd.php on line 48
[04-Apr-2007 12:49:54] PHP Warning: pclose(): 48 is not a valid stream resource in /var/www/cacti-0.8.6j/lib/rrd.php on line 48
[04-Apr-2007 12:54:14] PHP Notice: Undefined variable: polling_items in /var/www/cacti-0.8.6j/cmd.php on line 112
[04-Apr-2007 12:55:08] PHP Notice: Undefined variable: polling_items in /var/www/cacti-0.8.6j/cmd.php on line 112
sh-2.05b$ /opt/bin/php -q cmd.php 3 3
sh-2.05b$
Checked the php error log too. Nothing as a result of that command, however there are other suspect entries:
[04-Apr-2007 12:39:54] PHP Warning: pclose(): 48 is not a valid stream resource in /var/www/cacti-0.8.6j/lib/rrd.php on line 48
[04-Apr-2007 12:44:54] PHP Warning: pclose(): 48 is not a valid stream resource in /var/www/cacti-0.8.6j/lib/rrd.php on line 48
[04-Apr-2007 12:49:54] PHP Warning: pclose(): 48 is not a valid stream resource in /var/www/cacti-0.8.6j/lib/rrd.php on line 48
[04-Apr-2007 12:54:14] PHP Notice: Undefined variable: polling_items in /var/www/cacti-0.8.6j/cmd.php on line 112
[04-Apr-2007 12:55:08] PHP Notice: Undefined variable: polling_items in /var/www/cacti-0.8.6j/cmd.php on line 112
- gandalf
- Developer
- Posts: 22383
- Joined: Thu Dec 02, 2004 2:46 am
- Location: Muenster, Germany
- Contact:
Please read this topic: http://forums.cacti.net/about19470.html
Reinhard
Reinhard
I have the same problem.
here is the output from php poller.php
Only localhost graphs that come with cacti work.
none of the new ones are not updating.
$php -q poller.php
04/12/2007 02:21:10 PM - POLLER: Poller[0] DEBUG: About to Spawn a Remote Process [CMD: /usr/bin/php, ARGS: -q /var/www/html/cacti/cmd.php 0 7]
ping: icmp open socket: Operation not permitted
Waiting on 1/1 pollers.
04/12/2007 02:21:11 PM - POLLER: Poller[0] Parsed MULTI output field '1min:0.00' [map 1min->load_1min]
04/12/2007 02:21:11 PM - POLLER: Poller[0] Parsed MULTI output field '5min:0.04' [map 5min->load_5min]
04/12/2007 02:21:11 PM - POLLER: Poller[0] Parsed MULTI output field '10min:0.13' [map 10min->load_15min]
04/12/2007 02:21:11 PM - POLLER: Poller[0] CACTI2RRD: /usr/local/rrdtool/bin/rrdtool update /var/www/html/cacti/rra/localhost_ping_32.rrd --template ping 1176412870:U
04/12/2007 02:21:11 PM - POLLER: Poller[0] CACTI2RRD: /usr/local/rrdtool/bin/rrdtool update /var/www/html/cacti/rra/localhost_proc_7.rrd --template proc 1176412870:125
OK u:0.00 s:0.01 r:0.03
04/12/2007 02:21:11 PM - POLLER: Poller[0] CACTI2RRD: /usr/local/rrdtool/bin/rrdtool update /var/www/html/cacti/rra/localhost_mem_buffers_3.rrd --template mem_buffers 1176412870:338104
OK u:0.00 s:0.01 r:0.03
04/12/2007 02:21:11 PM - POLLER: Poller[0] CACTI2RRD: /usr/local/rrdtool/bin/rrdtool update /var/www/html/cacti/rra/localhost_mem_swap_4.rrd --template mem_swap 1176412870:2031608
OK u:0.00 s:0.01 r:0.03
04/12/2007 02:21:11 PM - POLLER: Poller[0] CACTI2RRD: /usr/local/rrdtool/bin/rrdtool update /var/www/html/cacti/rra/localhost_load_1min_5.rrd --template load_1min:load_5min:load_15min 1176412870:0.00:0.04:0.13
OK u:0.00 s:0.01 r:0.04
04/12/2007 02:21:11 PM - POLLER: Poller[0] CACTI2RRD: /usr/local/rrdtool/bin/rrdtool update /var/www/html/cacti/rra/localhost_users_6.rrd --template users 1176412870:5
OK u:0.00 s:0.01 r:0.04
OK u:0.00 s:0.01 r:0.04
Waiting on 1/1 pollers.
Waiting on 1/1 pollers.
.
.
.
Waiting on 1/1 pollers.
Waiting on 1/1 pollers.
04/12/2007 02:26:03 PM - POLLER: Poller[0] Maximum runtime of 292 seconds exceeded. Exiting.
04/12/2007 02:26:03 PM - SYSTEM STATS: Time:292.8312 Method:cmd.php Processes:1 Threads:N/A Hosts:5 HostsPerProcess:5 DataSources:24 RRDsProcessed:6
PHP Warning: pclose(): 53 is not a valid stream resource in /var/www/html/cacti/lib/rrd.php on line 48
here is the output from php poller.php
Only localhost graphs that come with cacti work.
none of the new ones are not updating.
$php -q poller.php
04/12/2007 02:21:10 PM - POLLER: Poller[0] DEBUG: About to Spawn a Remote Process [CMD: /usr/bin/php, ARGS: -q /var/www/html/cacti/cmd.php 0 7]
ping: icmp open socket: Operation not permitted
Waiting on 1/1 pollers.
04/12/2007 02:21:11 PM - POLLER: Poller[0] Parsed MULTI output field '1min:0.00' [map 1min->load_1min]
04/12/2007 02:21:11 PM - POLLER: Poller[0] Parsed MULTI output field '5min:0.04' [map 5min->load_5min]
04/12/2007 02:21:11 PM - POLLER: Poller[0] Parsed MULTI output field '10min:0.13' [map 10min->load_15min]
04/12/2007 02:21:11 PM - POLLER: Poller[0] CACTI2RRD: /usr/local/rrdtool/bin/rrdtool update /var/www/html/cacti/rra/localhost_ping_32.rrd --template ping 1176412870:U
04/12/2007 02:21:11 PM - POLLER: Poller[0] CACTI2RRD: /usr/local/rrdtool/bin/rrdtool update /var/www/html/cacti/rra/localhost_proc_7.rrd --template proc 1176412870:125
OK u:0.00 s:0.01 r:0.03
04/12/2007 02:21:11 PM - POLLER: Poller[0] CACTI2RRD: /usr/local/rrdtool/bin/rrdtool update /var/www/html/cacti/rra/localhost_mem_buffers_3.rrd --template mem_buffers 1176412870:338104
OK u:0.00 s:0.01 r:0.03
04/12/2007 02:21:11 PM - POLLER: Poller[0] CACTI2RRD: /usr/local/rrdtool/bin/rrdtool update /var/www/html/cacti/rra/localhost_mem_swap_4.rrd --template mem_swap 1176412870:2031608
OK u:0.00 s:0.01 r:0.03
04/12/2007 02:21:11 PM - POLLER: Poller[0] CACTI2RRD: /usr/local/rrdtool/bin/rrdtool update /var/www/html/cacti/rra/localhost_load_1min_5.rrd --template load_1min:load_5min:load_15min 1176412870:0.00:0.04:0.13
OK u:0.00 s:0.01 r:0.04
04/12/2007 02:21:11 PM - POLLER: Poller[0] CACTI2RRD: /usr/local/rrdtool/bin/rrdtool update /var/www/html/cacti/rra/localhost_users_6.rrd --template users 1176412870:5
OK u:0.00 s:0.01 r:0.04
OK u:0.00 s:0.01 r:0.04
Waiting on 1/1 pollers.
Waiting on 1/1 pollers.
.
.
.
Waiting on 1/1 pollers.
Waiting on 1/1 pollers.
04/12/2007 02:26:03 PM - POLLER: Poller[0] Maximum runtime of 292 seconds exceeded. Exiting.
04/12/2007 02:26:03 PM - SYSTEM STATS: Time:292.8312 Method:cmd.php Processes:1 Threads:N/A Hosts:5 HostsPerProcess:5 DataSources:24 RRDsProcessed:6
PHP Warning: pclose(): 53 is not a valid stream resource in /var/www/html/cacti/lib/rrd.php on line 48
Who is online
Users browsing this forum: No registered users and 1 guest