Data only comes in when cmd.php run manually

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

Moderators: Developers, Moderators

Post Reply
chanson
Posts: 2
Joined: Mon May 20, 2002 10:52 am
Location: Beverly Mass
Contact:

Data only comes in when cmd.php run manually

Post by chanson »

I have tried to use some of the perl scripts located in the scripts directory. One of them is the disk.pl script for monitoring snmp devices.
If I create a datasource and run the cmd.php manually everything shows up nice and pretty in the rrd.log, but when the cron job runs I am always getting N:U in the rrd.log file. I have seen similiar posts on this but not sure if they apply. I have tried modifying the script to add a /bin/bash -c to create a shell for the snmpget command to run in but to no avail. Great program and keep up the good work

Corey
chanson
Posts: 2
Joined: Mon May 20, 2002 10:52 am
Location: Beverly Mass
Contact:

Re: Data only comes in when cmd.php run manually

Post by chanson »

Never mind. After a little investigating and a little hair loss I figured out that when I added the /bin/bash -c 'command parm parm parm' I needed to include the absolute path to the command. D'oh anyways hopes that this helps someone else out
Post Reply

Who is online

Users browsing this forum: No registered users and 3 guests