error

Post support questions that directly relate to Linux/Unix operating systems.

Moderators: Developers, Moderators

chicovacallo
Posts: 31
Joined: Mon Oct 31, 2005 9:27 am

error

Post by chicovacallo »

I see mi cacti.log the error is the next:

12/24/2002 11:29:59 PM - POLLER: Poller[0] Maximum runtime of 296 seconds exceeded. Exiting.
12/24/2002 11:29:59 PM - POLLER: Poller[0] Maximum runtime of 296 seconds exceeded. Exiting.
12/24/2002 11:34:59 PM - POLLER: Poller[0] Maximum runtime of 296 seconds exceeded. Exiting.
12/24/2002 11:34:59 PM - POLLER: Poller[0] Maximum runtime of 296 seconds exceeded. Exiting.
12/24/2002 11:39:58 PM - POLLER: Poller[0] Maximum runtime of 296 seconds exceeded. Exiting.
12/24/2002 11:39:58 PM - POLLER: Poller[0] Maximum runtime of 296 seconds exceeded. Exiting.
12/24/2002 11:40:02 PM - SYSTEM STATS: Time:1.2249 Method:cmd.php Processes:1 Threads:N/A Hosts:3 HostsPerProcess:3 DataSources:5 RRDsProcessed:7
12/24/2002 11:44:58 PM - POLLER: Poller[0] Maximum runtime of 296 seconds exceeded. Exiting.
12/24/2002 11:45:03 PM - SYSTEM STATS: Time:1.2812 Method:cmd.php Processes:1 Threads:N/A Hosts:3 HostsPerProcess:3 DataSources:5 RRDsProcessed:5
12/24/2002 11:49:59 PM - POLLER: Poller[0] Maximum runtime of 296 seconds exceeded. Exiting.
12/24/2002 11:54:59 PM - POLLER: Poller[0] Maximum runtime of 296 seconds exceeded. Exiting.
12/24/2002 11:54:59 PM - POLLER: Poller[0] Maximum runtime of 296 seconds exceeded. Exiting.
12/24/2002 11:59:59 PM - POLLER: Poller[0] Maximum runtime of 296 seconds exceeded. Exiting.
12/24/2002 11:59:59 PM - POLLER: Poller[0] Maximum runtime of 296 seconds exceeded. Exiting.
12/25/2002 12:04:59 AM - POLLER: Poller[0] Maximum runtime of 296 seconds exceeded. Exiting.
12/25/2002 12:04:59 AM - POLLER: Poller[0] Maximum runtime of 296 seconds exceeded. Exiting.
12/25/2002 12:05:03 AM - SYSTEM STATS: Time:1.2288 Method:cmd.php Processes:1 Threads:N/A Hosts:3 HostsPerProcess:3 DataSources:5 RRDsProcessed:8
12/25/2002 12:09:59 AM - POLLER: Poller[0] Maximum runtime of 296 seconds exceeded. Exiting.
12/25/2002 12:14:59 AM - POLLER: Poller[0] Maximum runtime of 296 seconds exceeded. Exiting.
12/25/2002 12:14:59 AM - POLLER: Poller[0] Maximum runtime of 296 seconds exceeded. Exiting.
12/25/2002 12:19:59 AM - POLLER: Poller[0] Maximum runtime of 296 seconds exceeded. Exiting.
12/25/2002 12:19:59 AM - POLLER: Poller[0] Maximum runtime of 296 seconds exceeded. Exiting.
12/25/2002 12:24:59 AM - POLLER: Poller[0] Maximum runtime of 296 seconds exceeded. Exiting.
12/25/2002 12:24:59 AM - POLLER: Poller[0] Maximum runtime of 296 seconds exceeded. Exiting.
12/25/2002 12:29:59 AM - POLLER: Poller[0] Maximum runtime of 296 seconds exceeded. Exiting.
12/25/2002 12:29:59 AM - POLLER: Poller[0] Maximum runtime of 296 seconds exceeded. Exiting.
12/25/2002 12:30:03 AM - SYSTEM STATS: Time:1.2198 Method:cmd.php Processes:1 Threads:N/A Hosts:3 HostsPerProcess:3 DataSources:5 RRDsProcessed:5
12/25/2002 12:34:59 AM - POLLER: Poller[0] Maximum runtime of 296 seconds exceeded. Exiting.
~
~
how change this error????
SebyM
Posts: 9
Joined: Tue Jan 31, 2006 5:38 am

Post by SebyM »

same error here:

01/31/2006 12:22:36 PM - SYSTEM STATS: Time:292.9262 Method:cmd.php Processes:1 Threads:N/A Hosts:2 HostsPerProcess:2 DataSources:5 RRDsProcessed:0
01/31/2006 12:22:36 PM - POLLER: Poller[0] Maximum runtime of 292 seconds exceeded. Exiting.
01/31/2006 12:06:34 PM - SYSTEM STATS: Time:292.9806 Method:cmd.php Processes:1 Threads:N/A Hosts:2 HostsPerProcess:2 DataSources:5 RRDsProcessed:0
01/31/2006 12:06:34 PM - POLLER: Poller[0] Maximum runtime of 292 seconds exceeded. Exiting.

any ideas ?
SebyM
Posts: 9
Joined: Tue Jan 31, 2006 5:38 am

Post by SebyM »

i notice chicovacallo's post is made on Dec 25th 2005, am i going to receive an answer or should i give up on cacti ?
SebyM
Posts: 9
Joined: Tue Jan 31, 2006 5:38 am

Post by SebyM »

well ?
everything installed ok, i ran php poller.php and i get the results above, i set the cron job and get the result above, all i see as graphs are placeholders


mrtg, on the other hand, worked just fine
User avatar
BSOD2600
Cacti Moderator
Posts: 12171
Joined: Sat May 08, 2004 12:44 pm
Location: USA

Post by BSOD2600 »

Turn the polling level in cacti to debug (Settings | Polling level) for one cycle and paste the output of the actual log file (./cacti/log/cacti.log). If it contains WEBLOG entries, then don't bother posting since they just clutter up the log. Turn off WEBEVENTS logging and try again.

What version of everything are you running?
SebyM
Posts: 9
Joined: Tue Jan 31, 2006 5:38 am

Post by SebyM »

versions are:
Slackware 10.1 kernel 2.4.26 custom (no scsi/sound, with bridging)
cacti-0.8.6h.tar.gz
freetype-2.1.9
rrdtool-1.2.12
net-snmp-5.3.0.1 (set to version 1 on install, running with: 'snmpd 127.0.0.1:161'), cacti says:
SNMP Information
System: 00:LINUX:NOC:2.4.26_AT_SEL_IT:#2:SMP:TUE:DEC:07:14:33:38:EET:2004:I686
Uptime: 5738878
Hostname: noc

(note: mrtg works and graphs ok (attached), but i want cacti, it was reccomened as being the best)

i turned off cron and set log level to debug
i ran php poller.php and got these:
in the log file:


02/01/2006 09:51:36 AM - POLLER: Poller[0] DEBUG: About to Spawn a Remote Process [CMD: /usr/bin/php, ARGS: -q /sel/www/trafic/cacti/cmd.php 0 2]
02/01/2006 09:56:33 AM - POLLER: Poller[0] Maximum runtime of 296 seconds exceeded. Exiting.

on the screen:
02/01/2006 09:51:36 AM - POLLER: Poller[0] DEBUG: About to Spawn a Remote Process [CMD: /usr/bin/php, ARGS: -q /sel/www/trafic/cacti/cmd.php 0 2]
Waiting on 1/1 pollers. (repeated 295 times)
02/01/2006 09:56:33 AM - POLLER: Poller[0] Maximum runtime of 296 seconds exceeded. Exiting.

and nothing

ls rra/ -la
total 2
drwxr-xr-x 2 cactiuser nogroup 80 2004-09-12 21:46 .
drwxr-xr-x 11 cactiuser nogroup 1528 2004-09-12 21:46 ..
-rw-r--r-- 1 cactiuser nogroup 0 2004-09-12 21:46 .placeholder
Attachments
127.0.0.1_3-day.png
127.0.0.1_3-day.png (1.69 KiB) Viewed 5591 times
Last edited by SebyM on Wed Feb 01, 2006 4:09 am, edited 1 time in total.
SebyM
Posts: 9
Joined: Tue Jan 31, 2006 5:38 am

Post by SebyM »

i left weblogging on and tryed againd and got this:

log file:

02/01/2006 10:39:15 AM - CMDPHP: Poller[0] DEBUG: SQL Assoc: "select poller_id,end_time from poller_time where poller_id = 0"
02/01/2006 10:39:15 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)"

repeated 295 times

screen:

Waiting on 1/1 pollers. (repeated 295 times)
02/01/2006 10:40:13 AM - POLLER: Poller[0] Maximum runtime of 292 seconds exceeded. Exiting.
02/01/2006 10:40:13 AM - SYSTEM STATS: Time:292.9681 Method:cmd.php Processes:1 Threads:N/A Hosts:2 HostsPerProcess:2 DataSources:5 RRDsProcessed:0
SebyM
Posts: 9
Joined: Tue Jan 31, 2006 5:38 am

Post by SebyM »

just tryed polling with Cactid (0.8.6g and rrdtool 1.0.49 - downgraded)
i get the exact same outputs, except for:

02/01/2006 10:54:05 AM - POLLER: Poller[0] DEBUG: About to Spawn a Remote Process [CMD: /sel/www/trafic/cacti/bin/cactid, ARGS: 0 2]


only i don't see cactid in the processes list

all related are:
cactiuser 18647 0.5 0.7 10696 6976 pts/0 S+ 10:50 0:00 php poller.php
cactiuser 18653 0.0 0.0 2500 516 pts/0 S+ 10:50 0:00 /usr/local/rrdtool-1.0.49/bin/rrdtool -
User avatar
BSOD2600
Cacti Moderator
Posts: 12171
Joined: Sat May 08, 2004 12:44 pm
Location: USA

Post by BSOD2600 »

Moving to Linux forum.
SebyM
Posts: 9
Joined: Tue Jan 31, 2006 5:38 am

Post by SebyM »

installed fresh on another system, i get the same behaviour and one extra line in the log:

02/01/2006 12:32:35 PM - POLLER: Poller[0] Maximum runtime of 292 seconds exceeded. Exiting.
02/01/2006 12:32:35 PM - SYSTEM STATS: Time:293.0003 Method:cmd.php Processes:1 Threads:N/A Hosts:3 HostsPerProcess:3 DataSources:5 RRDsProcessed:0

Warning: pclose(): 53 is not a valid stream resource in /work/www/htdocs/hlds/www/stats/lib/rrd.php on line 47

help !
User avatar
TheWitness
Developer
Posts: 17007
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

Please turn logging to DEBUG and then open a shell window, cd to the cacti web root and run the following command:

"php <path_cacti>/cmd.php"

Post the output.

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?
SebyM
Posts: 9
Joined: Tue Jan 31, 2006 5:38 am

Post by SebyM »

here it is:

root@noc:~# cd /sel/www/trafic/cacti
root@noc:/sel/www/trafic/cacti# php /sel/www/trafic/cacti/cmd.php
02/01/2006 01:54:20 PM - CMDPHP: Poller[0] Host[2] SNMP: Host responded to SNMP
02/01/2006 01:54:20 PM - CMDPHP: Poller[0] Host[2] RECACHE: Processing 1 items in the auto reindex cache for '127.0.0.1'.
02/01/2006 01:54:20 PM - CMDPHP: Poller[0] Host[2] DS[8] SNMP: v1: 127.0.0.1, dsname: traffic_out, oid: .1.3.6.1.2.1.2.2.1.16.4, output: 2026065704
02/01/2006 01:54:20 PM - CMDPHP: Poller[0] Host[2] DS[8] SNMP: v1: 127.0.0.1, dsname: traffic_in, oid: .1.3.6.1.2.1.2.2.1.10.4, output: 1366490833
Error in packet
Reason: (noSuchName) There is no such variable name in this MIB.
Failed object: .1.3.6.1.4.1.9.2.1.58.0

02/01/2006 01:54:21 PM - CMDPHP: Poller[0] Host[2] DS[9] WARNING: Result from SNMP not valid. Partial Result:
02/01/2006 01:54:21 PM - CMDPHP: Poller[0] Host[2] DS[9] SNMP: v1: 127.0.0.1, dsname: 5min_cpu, oid: .1.3.6.1.4.1.9.2.1.58.0, output: U
02/01/2006 01:54:21 PM - CMDPHP: Poller[0] Host[2] DS[12] CMD: perl /sel/www/trafic/cacti/scripts/linux_memory.pl MemFree:, output: 183484
02/01/2006 01:54:21 PM - CMDPHP: Poller[0] Host[2] DS[13] CMD: perl /sel/www/trafic/cacti/scripts/linux_memory.pl SwapFree:, output: 779112
02/01/2006 01:54:21 PM - CMDPHP: Poller[0] Time: 0.7834 s, Theads: N/A, Hosts: 1
User avatar
TheWitness
Developer
Posts: 17007
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

Interesting. It should be running. Please use the same instructions as before, but run from the Cacti web root the following:

"php poller.php"

Post the output. I am suspecting a permissions issue.

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?
SebyM
Posts: 9
Joined: Tue Jan 31, 2006 5:38 am

Post by SebyM »

$ php poller.php
02/04/2006 01:46:39 PM - POLLER: Poller[0] DEBUG: About to Spawn a Remote Process [CMD: /usr/bin/php, ARGS: -q /work/www/htdocs/hlds/www/stats/cmd.php 0 3]
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.
.....



meanwhile, i get this in the log:

02/04/2006 01:48:39 PM - CMDPHP: Poller[0] DEBUG: SQL Assoc: "select poller_id,end_time from poller_time where poller_id = 0"
02/04/2006 01:48:39 PM - 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)"
one for each 'Waiting' message



also, i noticed that if i run 'php cmd.php' while the 'Waiting' messages are scrolling, it actually does something.
output from 'php poller.php':

02/04/2006 01:50:16 PM - POLLER: Poller[0] CACTI2RRD: /usr/local/rrdtool-1.2.12/bin/rrdtool create /work/www/htdocs/hlds/www/stats/rra/sellcsserver_cpu_nice_25.rrd --step 300 DS:cpu_nice:COUNTER:600:0:100 RRA:AVERAGE:0.5:1:600 RRA:AVERAGE:0.5:6:700 RRA:AVERAGE:0.5:24:775 RRA:AVERAGE:0.5:288:797 RRA:MAX:0.5:1:600 RRA:MAX:0.5:6:700 RRA:MAX:0.5:24:775 RRA:MAX:0.5:288:797
OK u:0.01 s:0.01 r:216.23
02/04/2006 01:50:16 PM - POLLER: Poller[0] CACTI2RRD: /usr/local/rrdtool-1.2.12/bin/rrdtool update /work/www/htdocs/hlds/www/stats/rra/sellcsserver_cpu_nice_25.rrd --template cpu_nice N:0
OK u:0.01 s:0.01 r:216.23
02/04/2006 01:50:17 PM - POLLER: Poller[0] CACTI2RRD: /usr/local/rrdtool-1.2.12/bin/rrdtool create /work/www/htdocs/hlds/www/stats/rra/sellcsserver_cpu_system_26.rrd --step 300 DS:cpu_system:COUNTER:600:0:100 RRA:AVERAGE:0.5:1:600 RRA:AVERAGE:0.5:6:700 RRA:AVERAGE:0.5:24:775 RRA:AVERAGE:0.5:288:797 RRA:MAX:0.5:1:600 RRA:MAX:0.5:6:700 RRA:MAX:0.5:24:775 RRA:MAX:0.5:288:797
02/04/2006 01:50:17 PM - POLLER: Poller[0] CACTI2RRD: /usr/local/rrdtool-1.2.12/bin/rrdtool update /work/www/htdocs/hlds/www/stats/rra/sellcsserver_cpu_system_26.rrd --template cpu_system N:191823
OK u:0.01 s:0.02 r:217.27
OK u:0.01 s:0.02 r:217.28
02/04/2006 01:50:17 PM - POLLER: Poller[0] CACTI2RRD: /usr/local/rrdtool-1.2.12/bin/rrdtool create /work/www/htdocs/hlds/www/stats/rra/sellcsserver_cpu_user_27.rrd --step 300 DS:cpu_user:COUNTER:600:0:100 RRA:AVERAGE:0.5:1:600 RRA:AVERAGE:0.5:6:700 RRA:AVERAGE:0.5:24:775 RRA:AVERAGE:0.5:288:797 RRA:MAX:0.5:1:600 RRA:MAX:0.5:6:700 RRA:MAX:0.5:24:775 RRA:MAX:0.5:288:797
02/04/2006 01:50:17 PM - POLLER: Poller[0] CACTI2RRD: /usr/local/rrdtool-1.2.12/bin/rrdtool update /work/www/htdocs/hlds/www/stats/rra/sellcsserver_cpu_user_27.rrd --template cpu_user N:3007237
OK u:0.01 s:0.02 r:217.30
OK u:0.01 s:0.02 r:217.30
02/04/2006 01:50:17 PM - POLLER: Poller[0] CACTI2RRD: /usr/local/rrdtool-1.2.12/bin/rrdtool create /work/www/htdocs/hlds/www/stats/rra/sellcsserver_traffic_in_24.rrd --step 300 DS:traffic_out:COUNTER:600:0:100000000 DS:traffic_in:COUNTER:600:0:100000000 RRA:AVERAGE:0.5:1:600 RRA:AVERAGE:0.5:6:700 RRA:AVERAGE:0.5:24:775 RRA:AVERAGE:0.5:288:797 RRA:MAX:0.5:1:600 RRA:MAX:0.5:6:700 RRA:MAX:0.5:24:775 RRA:MAX:0.5:288:797
OK u:0.01 s:0.02 r:217.32
02/04/2006 01:50:17 PM - POLLER: Poller[0] CACTI2RRD: /usr/local/rrdtool-1.2.12/bin/rrdtool update /work/www/htdocs/hlds/www/stats/rra/sellcsserver_traffic_in_24.rrd --template traffic_in:traffic_out N:931247862:1847454435
OK u:0.01 s:0.02 r:217.32
02/04/2006 01:50:17 PM - SYSTEM STATS: Time:218.4085 Method:cmd.php Processes:1 Threads:N/A Hosts:2 HostsPerProcess:2 DataSources:5 RRDsProcessed:4


output from 'php cmd.php':

02/04/2006 01:53:42 PM - CMDPHP: Poller[0] Host[3] SNMP: Host responded to SNMP
02/04/2006 01:53:42 PM - CMDPHP: Poller[0] Host[3] RECACHE: Processing 1 items in the auto reindex cache for '127.0.0.1'.
02/04/2006 01:53:42 PM - CMDPHP: Poller[0] Host[3] DS[25] SNMP: v1: 127.0.0.1, dsname: cpu_nice, oid: .1.3.6.1.4.1.2021.11.51.0, output: 0
02/04/2006 01:53:43 PM - CMDPHP: Poller[0] Host[3] DS[26] SNMP: v1: 127.0.0.1, dsname: cpu_system, oid: .1.3.6.1.4.1.2021.11.52.0, output: 192313
02/04/2006 01:53:43 PM - CMDPHP: Poller[0] Host[3] DS[27] SNMP: v1: 127.0.0.1, dsname: cpu_user, oid: .1.3.6.1.4.1.2021.11.50.0, output: 3010897
02/04/2006 01:53:43 PM - CMDPHP: Poller[0] Host[3] DS[24] SNMP: v1: 127.0.0.1, dsname: traffic_in, oid: .1.3.6.1.2.1.2.2.1.10.2, output: 935332722
02/04/2006 01:53:43 PM - CMDPHP: Poller[0] Host[3] DS[24] SNMP: v1: 127.0.0.1, dsname: traffic_out, oid: .1.3.6.1.2.1.2.2.1.16.2, output: 1855082686
02/04/2006 01:53:43 PM - CMDPHP: Poller[0] Time: 1.2681 s, Theads: N/A, Hosts: 1


is cmd.php not spawning or something ?

i have 'chown -R cactiuser .' in the cacti folder, and the php executable has exec permissions for all users
User avatar
TheWitness
Developer
Posts: 17007
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

Seems odd. I would suspect a possible permissions problem. Have your cron output redirected to a file for 1 pass. In that file, you should see many "Ok's" as you saw in the manual output.

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?
Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests