cmd.php problem

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

Moderators: Developers, Moderators

Post Reply
Lionel

cmd.php problem

Post by Lionel »

Hi all,

I'm having a problem with cmd.php.
When cmd.php is executed via crond, the following line appears in rrd.log, telling that no data is being collected:

09/17/2002 10:15 AM - CMD: /app/rrdtool/bin/rrdtool update /data/apache/htdocs/cacti/rra/in_ch-mgmt-1.rrd --template in_ch-mgmt-1 N:U

However, when cmd.php is executed via apache (lynx http://.../cacti/cmd.php), the following line appears in the log:

09/17/2002 10:11 AM - CMD: /app/rrdtool/bin/rrdtool update /data/apache/htdocs/cacti/rra/in_ch-mgmt-1.rrd --template in_ch-mgmt-1 N:144605082

So, in this last case, all works fine....

I have the following line in the apache's crontab (/var/spool/cron/apache):

*/5 * * * * /app/php/bin/php /data/apache/htdocs/cacti/cmd.php

And, in the cacti console, under "cron printout", output is correctly displayed.

Any idea to help me ????

Lionel
raX
Lead Developer
Posts: 2243
Joined: Sat Oct 13, 2001 7:00 pm
Location: Carlisle, PA
Contact:

Post by raX »

It looks like your are using SNMP in your example, I am not quite sure though. Does this affect all data sources, including the system perl scripts?

Normally I attribute these kinds of problems to a script not functioning without a shell. However, if you are running 'cmd.php' from lynx and it is working, that is not the case.

If this problem is SNMP-specific, do you know if you are calling snmpget or are you using PHP's SNMP functions?

I don't have an exact answer, but I am sure this can be solved by narrowing down what the cause can/cannot be.

-Ian
Post Reply

Who is online

Users browsing this forum: No registered users and 7 guests