about cmd.php

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

Moderators: Developers, Moderators

Post Reply
shahzero
Posts: 12
Joined: Sun Jul 23, 2006 7:38 pm

about cmd.php

Post by shahzero »

Hi community,

I get this error when i run cmd.php manually. What does it means? And how can i fix it?

sh: /var/www/localhost/htdocs/cacti/scripts/unix_dns_queries.php: /usr/bin/php^M: bad interpreter: No such file or directory
07/26/2006 10:48:43 AM - CMDPHP: Poller[0] Host[5] DS[61] WARNING: Result from CMD not valid. Partial Result:
User avatar
TheWitness
Developer
Posts: 17004
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

Well, one of two of the aformentioned files is missing. What does your data input method look like?

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?
shahzero
Posts: 12
Joined: Sun Jul 23, 2006 7:38 pm

Post by shahzero »

This is my data input method. sorry if i wrong. I still a newbie :)
Attachments
data.png
data.png (44.68 KiB) Viewed 2079 times
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Post by gandalf »

Try to add <path_php> in INPUT STRING first.
Reinhard
shahzero
Posts: 12
Joined: Sun Jul 23, 2006 7:38 pm

Post by shahzero »

Hi ivm :D Thanks for the advice.

I replace the <path_cacti> with the <path_php>. But it still appear the same error. Any other suggestion?
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Post by gandalf »

shahzero wrote:Hi ivm :D Thanks for the advice.

I replace the <path_cacti> with the <path_php>. But it still appear the same error. Any other suggestion?
No, no. It goes

Code: Select all

<path_php> <path_cacti>/....
, so the php interpreter is explicitely given ...
Reinhard
Post Reply

Who is online

Users browsing this forum: No registered users and 19 guests