cmd.php error!!!

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

Moderators: Developers, Moderators

Post Reply
User avatar
TFC
Cacti Pro User
Posts: 739
Joined: Wed Apr 09, 2003 2:17 am
Location: Izmir/Turkey

cmd.php error!!!

Post by TFC »

When I try tı run command:

Code: Select all

C:\>c:\php\php.exe c:\Apache2\htdocs\cacti\cmd.php
I get this output:
Content-type: text/html
X-Powered-By: PHP/4.3.10

#!/usr/bin/php -q
'-O' is not recognized as an internal or external command,
operable program or batch file.
02/14/2005 11:09:24 AM - CMDPHP: Poller[0] Time: 0.4302 s, Theads: N/A, Hosts: 2
Note: I try to only one Ds that about 64-bit interface traffic
What is my problem??
User avatar
TheWitness
Developer
Posts: 17047
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

Sounds like a script issue. Review your poller cache "Action: 1" for a bogus script call.

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?
User avatar
TFC
Cacti Pro User
Posts: 739
Joined: Wed Apr 09, 2003 2:17 am
Location: Izmir/Turkey

Post by TFC »

which script is used for Interface traffic?
User avatar
TheWitness
Developer
Posts: 17047
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

Please post your poller_cache.

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?
User avatar
TFC
Cacti Pro User
Posts: 739
Joined: Wed Apr 09, 2003 2:17 am
Location: Izmir/Turkey

Post by TFC »

http://localhost/cacti/utilities.php?ac ... ller_cache:
Data Source: 10.200.100.10 - Traffic - Gi13/14
RRD: C:\Apache2\htdocs\cacti\rra\10_200_100_10_traffic_in_8.rrd
Action: 0, OID: .1.3.6.1.2.1.31.1.1.1.10.70 (Host: 10.200.100.10, Community: tazmania)
Data Source: 10.200.100.10 - Traffic - Gi13/14
RRD: C:\Apache2\htdocs\cacti\rra\10_200_100_10_traffic_in_8.rrd
Action: 0, OID: .1.3.6.1.2.1.31.1.1.1.6.70 (Host: 10.200.100.10, Community: tazmania)
User avatar
TheWitness
Developer
Posts: 17047
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

It appears that you have a hacked snmp.php file. You should compare with the distribution version. It's better to use cactid if you are going to be using snmpv2 anyway.

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?
User avatar
TFC
Cacti Pro User
Posts: 739
Joined: Wed Apr 09, 2003 2:17 am
Location: Izmir/Turkey

Post by TFC »

I prefer cactid , but cactid for windows is corrupt i think. because when download cactid for windows, I can't extract. I try several times but I got same result
User avatar
TFC
Cacti Pro User
Posts: 739
Joined: Wed Apr 09, 2003 2:17 am
Location: Izmir/Turkey

Post by TFC »

Finally I downloaded cactid and I extracted c:\cactid directory.
Then I run :
c:\cactid\cactid
but i get this error:
C:\cactid>cactid
CACTID: Using cactid config file [cactid.conf]
CACTID: MYSQL: Connection failed after 10 attempts : Access denied for user: 'root@localhost' (Using
password: YES)
But, I confgiure my.ini, cacti config.php and cactid.conf file with same DB, DB user and DB password...
User avatar
TheWitness
Developer
Posts: 17047
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

If you are running mysql v 4.1.x, you will have to re-make cactid from source. Sorry. I hope to make the distribution better moving forward.

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?
User avatar
TFC
Cacti Pro User
Posts: 739
Joined: Wed Apr 09, 2003 2:17 am
Location: Izmir/Turkey

Post by TFC »

I download and install 0.8.6c instead of 0.8.6d. Then my cactid can connect mysql correctly...
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest