polling doesn't work

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

Moderators: Developers, Moderators

Post Reply
cb2206
Posts: 1
Joined: Sun Oct 30, 2005 2:08 pm
Location: Germany
Contact:

polling doesn't work

Post by cb2206 »

hi,

i installed cacti on a gentoo server. i created the crontab entry for poller.php to be run every 5 minutes. but unfortunately the graphs do not show any data.

i switch logging to debug and got this:

Code: Select all

10/30/2005 08:00:03 PM - SYSTEM STATS: Time:1.0429 Method:cmd.php Processes:1 Threads:N/A Hosts:2 HostsPerProcess:2 DataSources:5 RRDsProcessed:7
10/30/2005 07:59:59 PM - POLLER: Poller[0] Maximum runtime of 296 seconds exceeded. Exiting.
10/30/2005 07:54:58 PM - POLLER: Poller[0] Maximum runtime of 296 seconds exceeded. Exiting.
10/30/2005 07:50:02 PM - CMDPHP: Poller[0] Time: 0.3753 s, Theads: N/A, Hosts: 1
10/30/2005 07:50:02 PM - PHPSVR: Poller[0] DEBUG: PHP Script Server Shutdown request received, exiting
10/30/2005 07:50:02 PM - CMDPHP: Poller[0] Host[1] DS[7] CMD: perl /var/www/www.genux.de/htdocs/cacti/scripts/unix_processes.pl, output: 115
10/30/2005 07:50:02 PM - CMDPHP: Poller[0] Host[1] DS[6] CMD: perl /var/www/www.genux.de/htdocs/cacti/scripts/unix_users.pl, output: 3
10/30/2005 07:50:02 PM - CMDPHP: Poller[0] Host[1] DS[5] CMD: perl /var/www/www.genux.de/htdocs/cacti/scripts/loadavg_multi.pl, output: 1min:0.00 5min:0.00 10min:0.00
10/30/2005 07:50:02 PM - CMDPHP: Poller[0] Host[1] DS[4] CMD: perl /var/www/www.genux.de/htdocs/cacti/scripts/linux_memory.pl SwapFree:, output: 1028120
10/30/2005 07:50:02 PM - CMDPHP: Poller[0] Host[1] DS[3] CMD: perl /var/www/www.genux.de/htdocs/cacti/scripts/linux_memory.pl MemFree:, output: 57096
10/30/2005 07:50:02 PM - CMDPHP: Poller[0] Host[1] No host availability check possible for '127.0.0.1'.
10/30/2005 07:50:02 PM - CMDPHP: Poller[0] Host[1] SNMP: Device does not require SNMP
10/30/2005 07:50:02 PM - CMDPHP: Poller[0] PHP Script Server Started Properly
10/30/2005 07:50:02 PM - PHPSVR: Poller[0] PHP Script Server has Started - Parent is cmd
10/30/2005 07:50:02 PM - PHPSVR: Poller[0] DEBUG: FILENM: /var/www/www.genux.de/htdocs/cacti/script_server.php
10/30/2005 07:50:02 PM - PHPSVR: Poller[0] DEBUG: DIRNAM: /var/www/www.genux.de/htdocs/cacti
10/30/2005 07:50:02 PM - PHPSVR: Poller[0] DEBUG: GETCWD: /var/spool/cron
10/30/2005 07:50:02 PM - PHPSVR: Poller[0] DEBUG: SERVER: cmd
10/30/2005 07:50:01 PM - POLLER: Poller[0] DEBUG: About to Spawn a Remote Process [CMD: /usr/bin/php, ARGS: -q /var/www/www.genux.de/htdocs/cacti/cmd.php 0 1]
10/30/2005 07:49:58 PM - POLLER: Poller[0] Maximum runtime of 296 seconds exceeded. Exiting.
10/30/2005 07:45:02 PM - POLLER: Poller[0] CACTI2RRD: /usr/bin/rrdtool update /var/www/www.genux.de/htdocs/cacti/rra/localhost_mem_buffers_3.rrd --template mem_buffers 1130697902:52500
10/30/2005 07:45:02 PM - POLLER: Poller[0] CACTI2RRD: /usr/bin/rrdtool update /var/www/www.genux.de/htdocs/cacti/rra/localhost_load_1min_5.rrd --template load_1min:load_5min:load_15min 1130697902:0.00:0.00:0.00
10/30/2005 07:45:02 PM - POLLER: Poller[0] CACTI2RRD: /usr/bin/rrdtool update /var/www/www.genux.de/htdocs/cacti/rra/localhost_mem_swap_4.rrd --template mem_swap 1130697902:1028120
10/30/2005 07:45:02 PM - POLLER: Poller[0] CACTI2RRD: /usr/bin/rrdtool update /var/www/www.genux.de/htdocs/cacti/rra/localhost_users_6.rrd --template users 1130697902:3
10/30/2005 07:45:02 PM - POLLER: Poller[0] CACTI2RRD: /usr/bin/rrdtool update /var/www/www.genux.de/htdocs/cacti/rra/localhost_proc_7.rrd --template proc 1130697902:U
10/30/2005 07:45:02 PM - POLLER: Poller[0] Parsed MULTI output field '10min:0.00' [map 10min->load_15min]
10/30/2005 07:45:02 PM - POLLER: Poller[0] Parsed MULTI output field '5min:0.00' [map 5min->load_5min]
10/30/2005 07:45:02 PM - POLLER: Poller[0] Parsed MULTI output field '1min:0.00' [map 1min->load_1min]
10/30/2005 07:45:02 PM - CMDPHP: Poller[0] Time: 0.5956 s, Theads: N/A, Hosts: 1
10/30/2005 07:45:02 PM - PHPSVR: Poller[0] DEBUG: PHP Script Server Shutdown request received, exiting
10/30/2005 07:45:02 PM - CMDPHP: Poller[0] Host[1] DS[7] CMD: perl /var/www/www.genux.de/htdocs/cacti/scripts/unix_processes.pl, output: 117
10/30/2005 07:45:02 PM - CMDPHP: Poller[0] Host[1] DS[6] CMD: perl /var/www/www.genux.de/htdocs/cacti/scripts/unix_users.pl, output: 3
10/30/2005 07:45:02 PM - CMDPHP: Poller[0] Host[1] DS[5] CMD: perl /var/www/www.genux.de/htdocs/cacti/scripts/loadavg_multi.pl, output: 1min:0.00 5min:0.00 10min:0.00
10/30/2005 07:45:02 PM - CMDPHP: Poller[0] Host[1] DS[4] CMD: perl /var/www/www.genux.de/htdocs/cacti/scripts/linux_memory.pl SwapFree:, output: 1028120
10/30/2005 07:45:02 PM - CMDPHP: Poller[0] Host[1] DS[3] CMD: perl /var/www/www.genux.de/htdocs/cacti/scripts/linux_memory.pl MemFree:, output: 52500
10/30/2005 07:45:02 PM - CMDPHP: Poller[0] Host[1] No host availability check possible for '127.0.0.1'.
10/30/2005 07:45:02 PM - CMDPHP: Poller[0] Host[1] SNMP: Device does not require SNMP
10/30/2005 07:45:02 PM - CMDPHP: Poller[0] PHP Script Server Started Properly
10/30/2005 07:45:02 PM - PHPSVR: Poller[0] PHP Script Server has Started - Parent is cmd
10/30/2005 07:45:02 PM - PHPSVR: Poller[0] DEBUG: FILENM: /var/www/www.genux.de/htdocs/cacti/script_server.php
10/30/2005 07:45:02 PM - PHPSVR: Poller[0] DEBUG: DIRNAM: /var/www/www.genux.de/htdocs/cacti
10/30/2005 07:45:02 PM - PHPSVR: Poller[0] DEBUG: GETCWD: /var/spool/cron
10/30/2005 07:45:02 PM - PHPSVR: Poller[0] DEBUG: SERVER: cmd
10/30/2005 07:45:01 PM - POLLER: Poller[0] DEBUG: About to Spawn a Remote Process [CMD: /usr/bin/php, ARGS: -q /var/www/www.genux.de/htdocs/cacti/cmd.php 0 1]
10/30/2005 07:44:59 PM - POLLER: Poller[0] Maximum runtime of 296 seconds exceeded. Exiting.
10/30/2005 07:40:02 PM - CMDPHP: Poller[0] Time: 0.4733 s, Theads: N/A, Hosts: 1
10/30/2005 07:40:02 PM - PHPSVR: Poller[0] DEBUG: PHP Script Server Shutdown request received, exiting
10/30/2005 07:40:02 PM - CMDPHP: Poller[0] Host[1] DS[7] CMD: perl /var/www/www.genux.de/htdocs/cacti/scripts/unix_processes.pl, output: 115
10/30/2005 07:40:02 PM - CMDPHP: Poller[0] Host[1] DS[6] CMD: perl /var/www/www.genux.de/htdocs/cacti/scripts/unix_users.pl, output: 3
10/30/2005 07:40:02 PM - CMDPHP: Poller[0] Host[1] DS[5] CMD: perl /var/www/www.genux.de/htdocs/cacti/scripts/loadavg_multi.pl, output: 1min:0.01 5min:0.02 10min:0.00
10/30/2005 07:40:02 PM - CMDPHP: Poller[0] Host[1] DS[4] CMD: perl /var/www/www.genux.de/htdocs/cacti/scripts/linux_memory.pl SwapFree:, output: 1028120
10/30/2005 07:40:02 PM - CMDPHP: Poller[0] Host[1] DS[3] CMD: perl /var/www/www.genux.de/htdocs/cacti/scripts/linux_memory.pl MemFree:, output: 49508
10/30/2005 07:40:02 PM - CMDPHP: Poller[0] Host[1] No host availability check possible for '127.0.0.1'.
10/30/2005 07:40:02 PM - CMDPHP: Poller[0] Host[1] SNMP: Device does not require SNMP
10/30/2005 07:40:02 PM - CMDPHP: Poller[0] PHP Script Server Started Properly
10/30/2005 07:40:02 PM - PHPSVR: Poller[0] PHP Script Server has Started - Parent is cmd
10/30/2005 07:40:02 PM - PHPSVR: Poller[0] DEBUG: FILENM: /var/www/www.genux.de/htdocs/cacti/script_server.php
10/30/2005 07:40:02 PM - PHPSVR: Poller[0] DEBUG: DIRNAM: /var/www/www.genux.de/htdocs/cacti
10/30/2005 07:40:02 PM - PHPSVR: Poller[0] DEBUG: GETCWD: /var/spool/cron
10/30/2005 07:40:02 PM - PHPSVR: Poller[0] DEBUG: SERVER: cmd
10/30/2005 07:40:02 PM - POLLER: Poller[0] DEBUG: About to Spawn a Remote Process [CMD: /usr/bin/php, ARGS: -q /var/www/www.genux.de/htdocs/cacti/cmd.php 0 1]
what is wrong?

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

Post by TheWitness »

Increase your maximum memory to 64mbytes in PHP.INI. Then, perform the following setps in MySQL:

mysql -u root -p cacti
> truncate table poller_output;
> quit;

Then run the following from a command prompt as root at Logging Level of LOW:

php poller.php

You should receive a number of OK's. If not, please post the results of that command. It is likely that PHP just did not have enough memory to retrieve the data from the table that contains the poller results. (poller_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 2 guests