[mrtg] Re: Problems graphing values from a Perl script

Glenn Forbes Fleming Larratt glratt at rice.edu
Wed Jun 19 21:08:14 MEST 2002

I have found that, when creating Perl scripts to be run out of cron,
that one gets more reliable results by making external calls absolute, i.e.

	@_ = `/usr/ucb/df -k`;


	@_ = `df -k`;



On Wed, 19 Jun 2002, darek wrote:

> Hey guys, I have a perl script that returns the capacity of a UPS'
> battery in minutes as such:
> Now, when ran by crontab, I do not get any values for the battery life.
> But when I issue /usr/local/bin/mrtg-cron.sh manually, I get the correct
> values for all the UPSes. So I end up with a graph empty for the most
> part, with peaks when I ran the script manually. Anyone have an idea why
> this is?

				Glenn Forbes Fleming Larratt
				Rice University Network Management
				glratt at rice.edu

Unsubscribe mailto:mrtg-request at list.ee.ethz.ch?subject=unsubscribe
Archive     http://www.ee.ethz.ch/~slist/mrtg
FAQ         http://faq.mrtg.org    Homepage     http://www.mrtg.org
WebAdmin    http://www.ee.ethz.ch/~slist/lsg2.cgi

More information about the mrtg mailing list