Result from CMD is not valid - driving me nuts

Post general support questions here that do not specifically fall into the Linux or Windows categories.

Moderators: Developers, Moderators

Post Reply
RossDagley
Posts: 10
Joined: Wed Dec 18, 2013 12:29 pm

Result from CMD is not valid - driving me nuts

Post by RossDagley »

Hi guys. I really hope you can help. This issue is driving me nuts!

I've found a very similar issue someone else posted and followed the advice on there about ensuring the full path to perl is in the "input method" "input string" to no avail.

I've checked the compete debug guide and gone through that. The weird thing is that when I run the cmd.php from I get no errors. It's only when cacti calls it that is seems to fail. I've checked the owner/group/permissions on the script and they're fine. Here's what I've got. I've tried to be through but please do ask and I can give more information if needed.

My config:

Code: Select all

General Information
Date	Sun, 05 Jan 2014 11:30:00 +0000
Cacti Version	0.8.8a
Cacti OS	unix
SNMP Version	NET-SNMP version: 5.4.3
RRDTool Version	RRDTool 1.4.x
Hosts	2
Graphs	6
Data Sources	Script/Command: 6
SNMP Query: 1
Total: 7
Poller Information
Interval	300
Type	cmd.php
Items	Action[0]: 2
Action[1]: 6
Total: 8
Concurrent Processes	1
Max Threads	1
PHP Servers	1
Script Timeout	25
Max OID	10
Last Run Statistics	Time:10.0336 Method:cmd.php Processes:1 Threads:N/A Hosts:3 HostsPerProcess:3 DataSources:8 RRDsProcessed:7
PHP Information
PHP Version	5.4.4-14+deb7u7
PHP OS	Linux
PHP uname	Linux PiInTheSky 3.10.24 #2 PREEMPT Mon Dec 23 05:18:12 UTC 2013 armv6l
PHP SNMP	Installed
max_execution_time	30
memory_limit	128M
The log extract:

Code: Select all

01/05/2014 11:25:12 AM - POLLER: Poller[0] CACTI2RRD: /usr/bin/rrdtool update /var/www/cacti/rra/watts_13.rrd --template 1388921108:U
01/05/2014 11:25:12 AM - CMDPHP: Poller[0] Host[0] DS[13] CMD: /usr/bin/perl /var/www/cacti/scripts/cc.pl, output: U
01/05/2014 11:25:12 AM - CMDPHP: Poller[0] Host[0] DS[13] WARNING: Result from CMD not valid. Partial Result: U
01/05/2014 11:25:04 AM - POLLER: Poller[0] DEBUG: About to Spawn a Remote Process [CMD: /usr/bin/php, ARGS: -q "/var/www/cacti/cmd.php" 0 2]
When run directly:

Code: Select all

pi@PiInTheSky:/var/www/cacti$ php cmd.php
01/05/2014 11:54:53 AM - CMDPHP: Poller[0] Host[0] DS[13] CMD: /usr/bin/perl /var/www/cacti/scripts/cc.pl, output: watts:1117 temp:11.7
01/05/2014 11:54:53 AM - CMDPHP: Poller[0] Host[1] SNMP: Host responded to SNMP
01/05/2014 11:54:53 AM - CMDPHP: Poller[0] Host[1] RECACHE: Processing 1 items in the auto reindex cache for '127.0.0.1'.
01/05/2014 11:54:53 AM - CMDPHP: Poller[0] Host[1] RECACHE DQ[1] OID: .1.3.6.1.2.1.1.3.0
01/05/2014 11:54:53 AM - CMDPHP: Poller[0] Host[1] RECACHE DQ[1] OID: .1.3.6.1.2.1.1.3.0, output: 2740859
01/05/2014 11:54:53 AM - CMDPHP: Poller[0] Host[1] DS[3] CMD: perl /var/www/cacti/scripts/linux_memory.pl MemFree:, output: 155776
01/05/2014 11:54:53 AM - CMDPHP: Poller[0] Host[1] DS[4] CMD: perl /var/www/cacti/scripts/linux_memory.pl SwapFree:, output: 0
01/05/2014 11:54:54 AM - CMDPHP: Poller[0] Host[1] DS[5] CMD: perl /var/www/cacti/scripts/loadavg_multi.pl, output: 1min:1.81 5min:1.64 10min:1.61
01/05/2014 11:54:54 AM - CMDPHP: Poller[0] Host[1] DS[6] CMD: perl /var/www/cacti/scripts/unix_users.pl , output: 1
01/05/2014 11:54:54 AM - CMDPHP: Poller[0] Host[1] DS[7] CMD: perl /var/www/cacti/scripts/unix_processes.pl, output: 92
01/05/2014 11:54:54 AM - CMDPHP: Poller[0] Host[1] DS[8] SNMP: v2: 127.0.0.1, dsname: traffic_in, oid: .1.3.6.1.2.1.2.2.1.10.2, output: 18362353
01/05/2014 11:54:54 AM - CMDPHP: Poller[0] Host[1] DS[8] SNMP: v2: 127.0.0.1, dsname: traffic_out, oid: .1.3.6.1.2.1.2.2.1.16.2, output: 8696259
01/05/2014 11:54:54 AM - CMDPHP: Poller[0] Time: 5.9625 s, Theads: N/A, Hosts: 2
pi@PiInTheSky:/var/www/cacti$
Some screenshots attached also.

PLEASE can anyone help - I've been going round in circles for hours!

Thanks
Attachments
Poller Cache
Poller Cache
cc-poller-cache.jpg (137.33 KiB) Viewed 949 times
Data Input
Data Input
cc-dim.jpg (84 KiB) Viewed 949 times
RossDagley
Posts: 10
Joined: Wed Dec 18, 2013 12:29 pm

Re: Result from CMD is not valid - driving me nuts

Post by RossDagley »

Have now upgraded to 0.8.8b and the problem persists.

Thanks.
RossDagley
Posts: 10
Joined: Wed Dec 18, 2013 12:29 pm

Re: Result from CMD is not valid - driving me nuts

Post by RossDagley »

Anyone help please?
RossDagley
Posts: 10
Joined: Wed Dec 18, 2013 12:29 pm

Re: Result from CMD is not valid - driving me nuts

Post by RossDagley »

Anyone here at all? I'm still trying to fix this :(
RossDagley
Posts: 10
Joined: Wed Dec 18, 2013 12:29 pm

Re: Result from CMD is not valid - driving me nuts

Post by RossDagley »

Bump - anyone??
RossDagley
Posts: 10
Joined: Wed Dec 18, 2013 12:29 pm

Re: Result from CMD is not valid - driving me nuts

Post by RossDagley »

still cant fix this - anyone reading this?
RossDagley
Posts: 10
Joined: Wed Dec 18, 2013 12:29 pm

Re: Result from CMD is not valid - driving me nuts

Post by RossDagley »

hello?
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest