TheWitness wrote:Show me your Cacti cron settings. What user are your running poller.php as? Can you do the following:
Code: Select all
su - <cron_user_running_cacti_poller>
cd /var/www/html/cacti
php -q poller.php
php -q cmd.php
TheWitness
Cacti is started by root-cron and runned under user cacti:
ps xau | grep php
cacti 13261 0.3 0.4 14976 8424 ? S 08:35 0:00 php /var/www/cacti/poller.php
From "php -q poller.php"
Code: Select all
-sh-3.00$ php -q poller.php
Waiting on 1/1 pollers.
ERROR: illegal attempt to update using time 1184737075 when last update time is 1184737075 (minimum one second step)
ERROR: illegal attempt to update using time 1184737075 when last update time is 1184737075 (minimum one second step)
ERROR: illegal attempt to update using time 1184737075 when last update time is 1184737075 (minimum one second step)
ERROR: illegal attempt to update using time 1184737075 when last update time is 1184737075 (minimum one second step)
ERROR: illegal attempt to update using time 1184737075 when last update time is 1184737075 (minimum one second step)
ERROR: illegal attempt to update using time 1184737075 when last update time is 1184737075 (minimum one second step)
ERROR: illegal attempt to update using time 1184737075 when last update time is 1184737075 (minimum one second step)
ERROR: illegal attempt to update using time 1184737075 when last update time is 1184737075 (minimum one second step)
ERROR: illegal attempt to update using time 1184737075 when last update time is 1184737075 (minimum one second step)
ERROR: illegal attempt to update using time 1184737075 when last update time is 1184737075 (minimum one second step)
ERROR: illegal attempt to update using time 1184737075 when last update time is 1184737075 (minimum one second step)
ERROR: illegal attempt to update using time 1184737075 when last update time is 1184737075 (minimum one second step)
ERROR: illegal attempt to update using time 1184737075 when last update time is 1184737075 (minimum one second step)
ERROR: illegal attempt to update using time 1184737075 when last update time is 1184737075 (minimum one second step)
ERROR: illegal attempt to update using time 1184737075 when last update time is 1184737075 (minimum one second step)
ERROR: illegal attempt to update using time 1184737075 when last update time is 1184737075 (minimum one second step)
Waiting on 1/1 pollers.
OK u:0.00 s:0.00 r:1.02
Waiting on 1/1 pollers.
<snip this continues for a long time...>
Waiting on 1/1 pollers.
Waiting on 1/1 pollers.
OK u:0.00 s:0.00 r:126.41
OK u:0.00 s:0.00 r:126.41
OK u:0.00 s:0.00 r:126.41
Waiting on 1/1 pollers.
Waiting on 1/1 pollers.
Waiting on 1/1 pollers.
<snip this continues for a long time...>
Waiting on 1/1 pollers.
07/18/2007 08:49:58 AM - POLLER: Poller[0] Maximum runtime of 292 seconds exceeded. Exiting.
07/18/2007 08:49:58 AM - SYSTEM STATS: Time:293.1010 Method:cmd.php Processes:1 Threads:N/A Hosts:4 HostsPerProcess:4 DataSources:31 RRDsProcessed:9
PHP Warning: pclose(): 45 is not a valid stream resource in /var/www/cacti/lib/rrd.php on line 48
So the problem might be on a misconfigured rrd-update (wrong time or same time as last input was made)?
And from "php -q cmd.php" :
Code: Select all
-sh-3.00$ php -q cmd.php
07/18/2007 08:40:53 AM - CMDPHP: Poller[0] Host[1] SNMP: Host responded to SNMP
07/18/2007 08:40:53 AM - CMDPHP: Poller[0] Host[1] DS[3] CMD: perl /var/www/cacti/scripts/linux_memory.pl MemFree:, output: 17804
07/18/2007 08:40:53 AM - CMDPHP: Poller[0] Host[1] DS[4] CMD: perl /var/www/cacti/scripts/linux_memory.pl SwapFree:, output: 0
07/18/2007 08:40:53 AM - CMDPHP: Poller[0] Host[1] DS[5] CMD: perl /var/www/cacti/scripts/loadavg_multi.pl, output: 1min:1.64 5min:0.42 10min:0.14
07/18/2007 08:40:53 AM - CMDPHP: Poller[0] Host[1] DS[7] CMD: perl /var/www/cacti/scripts/unix_processes.pl, output: 223
07/18/2007 08:40:53 AM - CMDPHP: Poller[0] Host[1] DS[16] CMD: perl /var/www/cacti/scripts/query_unix_partitions.pl get used /dev/sda1, output: 47224
07/18/2007 08:40:53 AM - CMDPHP: Poller[0] Host[1] DS[16] CMD: perl /var/www/cacti/scripts/query_unix_partitions.pl get available /dev/sda1, output: 48643
07/18/2007 08:40:53 AM - CMDPHP: Poller[0] Host[2] SNMP: Host responded to SNMP
07/18/2007 08:40:54 AM - CMDPHP: Poller[0] Host[2] DS[8] WARNING: Result from SNMP not valid. Partial Result: No Such Object avail
07/18/2007 08:40:54 AM - CMDPHP: Poller[0] Host[2] DS[8] SNMP: v2: 10.0.1.6, dsname: mem_buffers, oid: .1.3.6.1.4.1.2021.4.14.0, output: U
07/18/2007 08:40:54 AM - CMDPHP: Poller[0] Host[2] DS[9] WARNING: Result from SNMP not valid. Partial Result: No Such Object avail
07/18/2007 08:40:54 AM - CMDPHP: Poller[0] Host[2] DS[9] SNMP: v2: 10.0.1.6, dsname: mem_cache, oid: .1.3.6.1.4.1.2021.4.15.0, output: U
07/18/2007 08:40:54 AM - CMDPHP: Poller[0] Host[2] DS[10] WARNING: Result from SNMP not valid. Partial Result: No Such Object avail
07/18/2007 08:40:54 AM - CMDPHP: Poller[0] Host[2] DS[10] SNMP: v2: 10.0.1.6, dsname: mem_free, oid: .1.3.6.1.4.1.2021.4.6.0, output: U
07/18/2007 08:40:54 AM - CMDPHP: Poller[0] Host[2] DS[11] WARNING: Result from SNMP not valid. Partial Result: No Such Object avail
07/18/2007 08:40:54 AM - CMDPHP: Poller[0] Host[2] DS[11] SNMP: v2: 10.0.1.6, dsname: load_1min, oid: .1.3.6.1.4.1.2021.10.1.3.1, output: U
07/18/2007 08:40:54 AM - CMDPHP: Poller[0] Host[2] DS[12] WARNING: Result from SNMP not valid. Partial Result: No Such Object avail
07/18/2007 08:40:54 AM - CMDPHP: Poller[0] Host[2] DS[12] SNMP: v2: 10.0.1.6, dsname: load_15min, oid: .1.3.6.1.4.1.2021.10.1.3.3, output: U
07/18/2007 08:40:54 AM - CMDPHP: Poller[0] Host[2] DS[13] WARNING: Result from SNMP not valid. Partial Result: No Such Object avail
07/18/2007 08:40:54 AM - CMDPHP: Poller[0] Host[2] DS[13] SNMP: v2: 10.0.1.6, dsname: load_5min, oid: .1.3.6.1.4.1.2021.10.1.3.2, output: U
07/18/2007 08:40:54 AM - CMDPHP: Poller[0] Host[2] DS[19] SNMP: v2: 10.0.1.6, dsname: traffic_in, oid: .1.3.6.1.2.1.2.2.1.10.12, output: 3596259878
07/18/2007 08:40:54 AM - CMDPHP: Poller[0] Host[2] DS[18] SNMP: v2: 10.0.1.6, dsname: traffic_in, oid: .1.3.6.1.2.1.2.2.1.10.9, output: 1978898640
07/18/2007 08:40:54 AM - CMDPHP: Poller[0] Host[2] DS[17] SNMP: v2: 10.0.1.6, dsname: traffic_out, oid: .1.3.6.1.2.1.2.2.1.16.11, output: 3667379030
07/18/2007 08:40:54 AM - CMDPHP: Poller[0] Host[2] DS[17] SNMP: v2: 10.0.1.6, dsname: traffic_in, oid: .1.3.6.1.2.1.2.2.1.10.11, output: 382447765
07/18/2007 08:40:54 AM - CMDPHP: Poller[0] Host[2] DS[18] SNMP: v2: 10.0.1.6, dsname: traffic_out, oid: .1.3.6.1.2.1.2.2.1.16.9, output: 3385631359
07/18/2007 08:40:54 AM - CMDPHP: Poller[0] Host[2] DS[19] SNMP: v2: 10.0.1.6, dsname: traffic_out, oid: .1.3.6.1.2.1.2.2.1.16.12, output: 83693471
07/18/2007 08:40:54 AM - CMDPHP: Poller[0] Host[2] DS[20] WARNING: Result from SNMP not valid. Partial Result: No Such Object avail
07/18/2007 08:40:54 AM - CMDPHP: Poller[0] Host[2] DS[20] SNMP: v2: 10.0.1.6, dsname: users, oid: .1.3.6.1.2.1.25.1.5.0, output: U
07/18/2007 08:40:54 AM - CMDPHP: Poller[0] Host[2] DS[22] SNMP: v2: 10.0.1.6, dsname: traffic_out, oid: .1.3.6.1.2.1.2.2.1.16.6, output: 32240679
07/18/2007 08:40:54 AM - CMDPHP: Poller[0] Host[2] DS[22] SNMP: v2: 10.0.1.6, dsname: traffic_in, oid: .1.3.6.1.2.1.2.2.1.10.6, output: 1913267
07/18/2007 08:40:54 AM - CMDPHP: Poller[0] Host[2] DS[23] SNMP: v2: 10.0.1.6, dsname: traffic_out, oid: .1.3.6.1.2.1.2.2.1.16.7, output: 3651377434
07/18/2007 08:40:54 AM - CMDPHP: Poller[0] Host[2] DS[23] SNMP: v2: 10.0.1.6, dsname: traffic_in, oid: .1.3.6.1.2.1.2.2.1.10.7, output: 545798738
07/18/2007 08:40:54 AM - CMDPHP: Poller[0] Host[2] DS[24] SNMP: v2: 10.0.1.6, dsname: traffic_out, oid: .1.3.6.1.2.1.2.2.1.16.8, output: 513567912
07/18/2007 08:40:54 AM - CMDPHP: Poller[0] Host[2] DS[24] SNMP: v2: 10.0.1.6, dsname: traffic_in, oid: .1.3.6.1.2.1.2.2.1.10.8, output: 177726914
07/18/2007 08:40:54 AM - CMDPHP: Poller[0] Host[2] DS[25] SNMP: v2: 10.0.1.6, dsname: traffic_out, oid: .1.3.6.1.2.1.2.2.1.16.10, output: 1184273204
07/18/2007 08:40:54 AM - CMDPHP: Poller[0] Host[2] DS[25] SNMP: v2: 10.0.1.6, dsname: traffic_in, oid: .1.3.6.1.2.1.2.2.1.10.10, output: 3374175286
07/18/2007 08:40:54 AM - CMDPHP: Poller[0] Host[2] DS[26] SNMP: v2: 10.0.1.6, dsname: traffic_out, oid: .1.3.6.1.2.1.2.2.1.16.731, output: 0
07/18/2007 08:40:54 AM - CMDPHP: Poller[0] Host[2] DS[26] SNMP: v2: 10.0.1.6, dsname: traffic_in, oid: .1.3.6.1.2.1.2.2.1.10.731, output: 0
Those DS[XX] propably refer to datasources? Datasources 1-26 are old ones (working ok) but newer ones don't even show up on that listing... So cacti doesn't accept new ones ? (which i have made myself, by copying the create command from cacti. Otherwise the new ones wouldn't even exist..)