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
Data only comes in when cmd.php run manually
Moderators: Developers, Moderators
Re: Data only comes in when cmd.php run manually
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
Who is online
Users browsing this forum: No registered users and 3 guests