CMDPHP error --help

Post support questions that relate to the Windows 2003/2000/XP operating systems.

Moderators: Developers, Moderators

Post Reply
crinago
Posts: 17
Joined: Mon Feb 21, 2005 1:36 am

CMDPHP error --help

Post by crinago »

My graphs does not display anything and when i check my cacti logs these messages appeared, what do these mean????

CMDPHP: Poller[0] Host[1] WARNING: Result from CMD not valid. Partial Result
CMDPHP: Poller[0] Host[1] WARNING: Result from CMD not valid. Partial Result
SYSTEM STATS: Time: 1.2382 s, Method: cmd.php, Processes: 1, Threads: N/A, Hosts: 3, Hosts/Process: 3
User avatar
BSOD2600
Cacti Moderator
Posts: 12171
Joined: Sat May 08, 2004 12:44 pm
Location: USA

Post by BSOD2600 »

Enable debugging for the logs and run the script again. Paste the output here.
crinago
Posts: 17
Joined: Mon Feb 21, 2005 1:36 am

Post by crinago »

BSOD2600 wrote:Enable debugging for the logs and run the script again. Paste the output here.
Here's one log...

Data Source Debug

c:/rrdtool/rrdtool.exe create \
c:\apache\htdocs\cacti/rra/localhost_cpu_15.rrd \
--step 300 \
DS:cpu:GAUGE: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 \

by the way I use,
cacti-0.8.6c
net-snmp 5.2.1-1
mysql 4.1.10
php 4.3.10
rrdtool 1.0.49
apache 1.3.33

and I run it on windows 2000 advance server...thanks!

and here's an output of my cacti.log

02/21/2005 01:37:03 PM - CMDPHP: Poller[0] Host[1] WARNING: Result from CMD not valid. Partial Result:
02/21/2005 01:37:03 PM - CMDPHP: Poller[0] Host[1] WARNING: Result from CMD not valid. Partial Result:
02/21/2005 01:37:03 PM - CMDPHP: Poller[0] Host[1] WARNING: Result from CMD not valid. Partial Result:
02/21/2005 01:37:03 PM - CMDPHP: Poller[0] Host[1] WARNING: Result from CMD not valid. Partial Result:
02/21/2005 01:37:03 PM - CMDPHP: Poller[0] Host[1] WARNING: Result from CMD not valid. Partial Result:
02/21/2005 01:37:03 PM - SYSTEM STATS: Time: 1.2382 s, Method: cmd.php, Processes: 1, Threads: N/A, Hosts: 3, Hosts/Process: 3
02/21/2005 02:05:14 PM - CMDPHP: Poller[0] Host[1] WARNING: Result from CMD not valid. Partial Result:
02/21/2005 02:05:14 PM - CMDPHP: Poller[0] Host[1] WARNING: Result from CMD not valid. Partial Result:
02/21/2005 02:05:14 PM - CMDPHP: Poller[0] Host[1] WARNING: Result from CMD not valid. Partial Result:
02/21/2005 02:05:14 PM - CMDPHP: Poller[0] Host[1] WARNING: Result from CMD not valid. Partial Result:
02/21/2005 02:05:14 PM - CMDPHP: Poller[0] Host[1] WARNING: Result from CMD not valid. Partial Result:
02/21/2005 02:05:15 PM - SYSTEM STATS: Time: 1.0478 s, Method: cmd.php, Processes: 1, Threads: N/A, Hosts: 2, Hosts/Process: 2
02/21/2005 04:41:49 PM - CMDPHP: Poller[0] Host[1] WARNING: Result from CMD not valid. Partial Result:
02/21/2005 04:41:49 PM - CMDPHP: Poller[0] Host[1] WARNING: Result from CMD not valid. Partial Result:
02/21/2005 04:41:49 PM - CMDPHP: Poller[0] Host[1] WARNING: Result from CMD not valid. Partial Result:
02/21/2005 04:41:49 PM - CMDPHP: Poller[0] Host[1] WARNING: Result from CMD not valid. Partial Result:
02/21/2005 04:41:49 PM - CMDPHP: Poller[0] Host[1] WARNING: Result from CMD not valid. Partial Result:
02/21/2005 04:41:49 PM - CMDPHP: Poller[0] Host[6] WARNING: Result from SNMP not valid. Partial Result:
02/21/2005 04:41:49 PM - CMDPHP: Poller[0] Host[6] WARNING: Result from SNMP not valid. Partial Result:
02/21/2005 04:41:51 PM - SYSTEM STATS: Time: 1.9495 s, Method: cmd.php, Processes: 1, Threads: N/A, Hosts: 3, Hosts/Process: 3
02/22/2005 11:57:26 AM - CMDPHP: Poller[0] Host[1] WARNING: Result from CMD not valid. Partial Result:
02/22/2005 11:57:26 AM - CMDPHP: Poller[0] Host[1] WARNING: Result from CMD not valid. Partial Result:
02/22/2005 11:57:26 AM - CMDPHP: Poller[0] Host[1] WARNING: Result from CMD not valid. Partial Result:
02/22/2005 11:57:26 AM - CMDPHP: Poller[0] Host[1] WARNING: Result from CMD not valid. Partial Result:
02/22/2005 11:57:26 AM - CMDPHP: Poller[0] Host[6] WARNING: Result from SNMP not valid. Partial Result:
02/22/2005 11:57:26 AM - CMDPHP: Poller[0] Host[6] WARNING: Result from SNMP not valid. Partial Result:
02/22/2005 11:57:27 AM - SYSTEM STATS: Time: 1.6158 s, Method: cmd.php, Processes: 1, Threads: N/A, Hosts: 3, Hosts/Process: 3
User avatar
TheWitness
Developer
Posts: 17007
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

Please run 1 pass of poller with logging set to DEBUG and post your 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?
prayank
Posts: 2
Joined: Thu Dec 25, 2003 11:12 pm

I also get the same PHPCMD Error

Post by prayank »

I run Apache 1.3 with windows 2000 and php 4.3.10.
grpahs were not plotting, so when i ran poller.php from command line, i got the following error.

earlier doc root was e:\program files\apache\htdocs

the document root now in httpd.conf is set to e:\apache\htdocs, i dont know why it tries to search for scripts in e:\program files" path

Can't open perl script "e:\program": No such file or directory
Can't open perl script "e:\program": No such file or directory
Can't open perl script "e:\program": No such file or directory
Can't open perl script "e:\program": No such file or directory
ERROR: opening 'e:\program': No such file or directory
OK
ERROR: opening 'e:\program': No such file or directory
OK
ERROR: opening 'e:\program': No such file or directory
OK
ERROR: opening 'e:\program': No such file or directory
OK
ERROR: opening 'e:\program': No such file or directory
COK
ontent-type: ERROR: opening 'e:\program': No such file or directory
tOK
ext/htmlOK

OK
X-Powered-By: PHP/4.3.10

02/23/2005 12:43:59 PM - SYSTEM STATS: Time: 2.0835 s, Method: cmd.php, Processe
s: 1, Threads: N/A, Hosts: 4, Hosts/Process: 4
User avatar
TheWitness
Developer
Posts: 17007
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

Long file names are not supported. You can set the executable path in the the PATH environment variable however and simply use either "perl" or "php" instead of the full path. Your choice.

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 1 guest