Can't get cmd.php to run with out errors?

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

Moderators: Developers, Moderators

Post Reply
Guest

Post by Guest »

First of the interface is sweet, looking to deploy it in our group.

problem at the mo:

When i run from the comand line:
php /usr/local/apache/htdocs/cacti/cmd.php
i get the error below a few times:
sh: /usr/bin/php: no such file or directory.

When i change the path to my php file /usr/local/bin/php i get the error below a few times:
ERROR: unknown variable 'b'

I cant find any other php binarys!

I also get the error:
sh: /usr/bin/smbstatus: No such fine or directory
But i cant find smbstatus on my system (where do i get one from)
raX
Lead Developer
Posts: 2243
Joined: Sat Oct 13, 2001 7:00 pm
Location: Carlisle, PA
Contact:

Post by raX »

It looks like you have a few errors, nothing too critical it seems.

The error:

sh: /usr/bin/php: no such file or directory.

Is because cacti does not have the proper path to your php binary file. Go into 'cacti Settings' within cacti and change it to something valid.

I am going to ignore the 'ERROR: unknown variable 'b'' for now (it may go away if you fix this).

The:

sh: /usr/bin/smbstatus: No such fine or directory

Error is due to the samba data collection script. If you do not have samba, just delete the data source 'system_samba'.

Hope the remedies some of your errors.

-Ian
Guest

Post by Guest »

v.quick responce, u r good!

Removed samba (my silly)

recompiled php as a binary (my one was an apache module) with
./configure --with-mysql
make
make install

But with the php path put in correctly it stil gives the
ERROR: unknown variable 'b'
repeated 10 times.

p.s. cant find snmpwalk or smnpget on my box, where should they be?
Guest

Post by Guest »

deleted some sources and all is pretty now :eek:)
Post Reply

Who is online

Users browsing this forum: No registered users and 3 guests