Cacti cmd not valid, no graphs

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

Moderators: Developers, Moderators

Post Reply
mtindall
Posts: 2
Joined: Fri Oct 07, 2005 8:02 am

Cacti cmd not valid, no graphs

Post by mtindall »

When I run the poller.php manually I get data in my graphs but with the cron job I get nothing.. Cacti Log reveals:

Code: Select all

10/07/2005 09:00:05 AM - POLLER: Poller[0] DEBUG: About to Spawn a Remote Process [CMD: /usr/bin/php, ARGS: -q /var/www/html/cacti/cmd.php 0 2]
10/07/2005 09:00:16 AM - PHPSVR: Poller[0] DEBUG: SERVER: cmd
10/07/2005 09:00:16 AM - PHPSVR: Poller[0] DEBUG: GETCWD: /var/www/html/cacti
10/07/2005 09:00:16 AM - PHPSVR: Poller[0] DEBUG: DIRNAM: /var/www/html/cacti
10/07/2005 09:00:16 AM - PHPSVR: Poller[0] DEBUG: FILENM: /var/www/html/cacti/script_server.php
10/07/2005 09:00:16 AM - PHPSVR: Poller[0] PHP Script Server has Started - Parent is cmd
10/07/2005 09:00:16 AM - CMDPHP: Poller[0] PHP Script Server Started Properly
10/07/2005 09:00:16 AM - CMDPHP: Poller[0] Host[1] SNMP: Device does not require SNMP
10/07/2005 09:00:16 AM - CMDPHP: Poller[0] Host[1] No host availability check possible for '127.0.0.1'.
10/07/2005 09:00:16 AM - CMDPHP: Poller[0] Host[1] DS[3] WARNING: Result from CMD not valid.  Partial Result: 
10/07/2005 09:00:16 AM - CMDPHP: Poller[0] Host[1] DS[3] CMD: perl /var/www/html/cacti/scripts/linux_memory.pl MemFree:, output: U
10/07/2005 09:00:16 AM - CMDPHP: Poller[0] Host[1] DS[4] WARNING: Result from CMD not valid.  Partial Result: 
10/07/2005 09:00:16 AM - CMDPHP: Poller[0] Host[1] DS[4] CMD: perl /var/www/html/cacti/scripts/linux_memory.pl SwapFree:, output: U
10/07/2005 09:00:16 AM - CMDPHP: Poller[0] Host[1] DS[5] WARNING: Result from CMD not valid.  Partial Result: 
10/07/2005 09:00:16 AM - CMDPHP: Poller[0] Host[1] DS[5] CMD: perl /var/www/html/cacti/scripts/loadavg_multi.pl, output: U
10/07/2005 09:00:16 AM - CMDPHP: Poller[0] Host[1] DS[6] WARNING: Result from CMD not valid.  Partial Result: 
10/07/2005 09:00:16 AM - CMDPHP: Poller[0] Host[1] DS[6] CMD: perl /var/www/html/cacti/scripts/unix_users.pl, output: U
10/07/2005 09:00:16 AM - CMDPHP: Poller[0] Host[1] DS[7] WARNING: Result from CMD not valid.  Partial Result: 
10/07/2005 09:00:16 AM - CMDPHP: Poller[0] Host[1] DS[7] CMD: perl /var/www/html/cacti/scripts/unix_processes.pl, output: U
10/07/2005 09:00:16 AM - CMDPHP: Poller[0] Host[2] SNMP: Host responded to SNMP
10/07/2005 09:00:16 AM - CMDPHP: Poller[0] Host[2] RECACHE: Processing 1 items in the auto reindex cache for '10.1.1.1'.
10/07/2005 09:00:16 AM - CMDPHP: Poller[0] Host[2] DS[8] SNMP: v1: 10.1.1.1, dsname: traffic_out, oid: .1.3.6.1.2.1.2.2.1.16.5, output: 3552039659
10/07/2005 09:00:16 AM - CMDPHP: Poller[0] Host[2] DS[8] SNMP: v1: 10.1.1.1, dsname: traffic_in, oid: .1.3.6.1.2.1.2.2.1.10.5, output: 1025690916
10/07/2005 09:00:16 AM - CMDPHP: Poller[0] Host[2] DS[9] SNMP: v1: 10.1.1.1, dsname: snmp_oid, oid: 1.3.6.1.4.1.7005.2.3.2.2.1.0, output: 63
10/07/2005 09:00:16 AM - PHPSVR: Poller[0] DEBUG: PHP Script Server Shutdown request received, exiting
10/07/2005 09:00:16 AM - CMDPHP: Poller[0] Time: 5.2681 s, Theads: N/A, Hosts: 2
10/07/2005 09:00:16 AM - POLLER: Poller[0] CACTI2RRD: /usr/local/rrdtool-1.2.11/bin/rrdtool update /var/www/html/cacti/rra/localhost_mem_buffers_3.rrd --template mem_buffers 1128690010:U
10/07/2005 09:00:16 AM - POLLER: Poller[0] CACTI2RRD: /usr/local/rrdtool-1.2.11/bin/rrdtool update /var/www/html/cacti/rra/localhost_mem_swap_4.rrd --template mem_swap 1128690010:U
10/07/2005 09:00:16 AM - POLLER: Poller[0] CACTI2RRD: /usr/local/rrdtool-1.2.11/bin/rrdtool update /var/www/html/cacti/rra/localhost_load_1min_5.rrd --template  1128690010:U
10/07/2005 09:00:16 AM - POLLER: Poller[0] CACTI2RRD: /usr/local/rrdtool-1.2.11/bin/rrdtool update /var/www/html/cacti/rra/localhost_users_6.rrd --template users 1128690010:U
10/07/2005 09:00:16 AM - POLLER: Poller[0] CACTI2RRD: /usr/local/rrdtool-1.2.11/bin/rrdtool update /var/www/html/cacti/rra/localhost_proc_7.rrd --template proc 1128690010:U
10/07/2005 09:00:16 AM - POLLER: Poller[0] CACTI2RRD: /usr/local/rrdtool-1.2.11/bin/rrdtool update /var/www/html/cacti/rra/bwcatlvoipkagoor_traffic_in_8.rrd --template traffic_out:traffic_in 1128690010:3552039659:1025690916
10/07/2005 09:00:16 AM - POLLER: Poller[0] CACTI2RRD: /usr/local/rrdtool-1.2.11/bin/rrdtool update /var/www/html/cacti/rra/bwcatlvoipkagoor_snmp_oid_9.rrd --template snmp_oid 1128690010:63
10/07/2005 09:00:16 AM - SYSTEM STATS: Time:11.0527 Method:cmd.php Processes:1 Threads:N/A Hosts:3 HostsPerProcess:3 DataSources:8 RRDsProcessed:7
10/07/2005 09:00:16 AM - POLLER: Poller[0] DEBUG: About to Spawn a Remote Process [CMD: /usr/bin/php, ARGS: -q /var/www/html/cacti/poller_commands.php]
10/07/2005 09:00:16 AM - POLLER: Poller[0] DEBUG: About to Spawn a Remote Process [CMD: /usr/bin/php, ARGS: -q /var/www/html/cacti/poller_export.php]
mtindall
Posts: 2
Joined: Fri Oct 07, 2005 8:02 am

Post by mtindall »

Crontab for cactiuser:

*/5 * * * * /usr/bin/php /var/www/html/cacti/poller.php > /dev/null 2>&1
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Post by gandalf »

It might happen, that the user running the poller does not have perl in its path. So it may help to enter the full path to the perl binary into the Data Input Method. Please do not forget to Clear Poller Cache afterwards.
If this does not succeed, please post a snippet from cacti.log running DEBUG Mode
Reinhard
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest