[mrtg] Re: running external script

Derek Winkler dwinkler at algorithmics.com
Thu Oct 23 21:26:14 MEST 2003


Why not just...
Run the perl script, then run mrtg (don't run as daemon.)

or

Do it the mrtg way, each target is a perl script which outputs
in/out/uptime/machine.

I use a combination of the two methods.

For some systems for which I don't have mrtg binaries, a cron job runs a
perl scripts, outputs in/out/uptime/machine in a file on an nfs share. Then
mrtg runs through another cron job on another system and the targets just
cat these files. Time synchronization between these systems is critical.

Good luck

-----Original Message-----
From: Duane Cox [mailto:dcox at illicom.net]
Sent: Thursday, October 23, 2003 3:22 PM
To: mrtg at list.ee.ethz.ch
Subject: [mrtg] running external script


Is there a way to have MRTG run a perl script from within the config file,
but not to expect data from it.

Just have MRTG run this script then go on about it's business in the config
file.

What I am trying to do here is this.

When MRTG calls the config file, mrtg will then fire off this perl script
which will collect the data and parse in into files.
MRTG will then continue about it's business and then grab the results of
these parsed files and graph them

Duane

--
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


--
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