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:[EMAIL PROTECTED] Sent: Thursday, October 23, 2003 3:22 PM To: [EMAIL PROTECTED] 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:[EMAIL PROTECTED] 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:[EMAIL PROTECTED] 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
