[mrtg] AW: AW: Help regarding Perl script

Michel.Grossenbacher at coop.ch Michel.Grossenbacher at coop.ch
Mon Feb 11 16:05:52 MET 2002


Yes thats the way I prefer too but as I get his script he wants to run mrtg
all 2min and that wont work without RRD Tool or the patch I read today in
the mailing list.

Michel

-----Ursprungliche Nachricht-----
Von: Michael Marziani [mailto:michaelm at kw.com]
Gesendet: Montag, 11. Februar 2002 15:30
An: Michel.Grossenbacher at coop.ch; mrtg at list.ee.ethz.ch
Betreff: RE: [mrtg] AW: Help regarding Perl script


That's a great solution, but a better one is to run MRTG through cron or
as a daemon (the two ways suggested in the setup docs).  I prefer
daemonizing  :)

-Mike

_____________________________
Michael D. Marziani
Systems Administrator


-----Original Message-----
From: Michel.Grossenbacher at coop.ch [mailto:Michel.Grossenbacher at coop.ch]

Sent: Monday, February 11, 2002 8:03 AM
To: mrtg at list.ee.ethz.ch
Subject: [mrtg] AW: Help regarding Perl script



Hi Shujaat
How do you start your Perlscript?

Do you use a "&" in the command line?

like:

perl yourscript.pl &

This will force the script to run in the background so you dont have to
keep a telnet session open. Greets

Michel

-----Ursprungliche Nachricht-----
Von: Shujaat Nazir Khan [mailto:snk at cyber.net.pk]
Gesendet: Montag, 11. Februar 2002 14:57
An: Mrtg List
Cc: Shujaat Nazir Khan
Betreff: [mrtg] Help regarding Perl script


Hi All

I am running mrtg2.9.12 on Solaris platform. I am running .cfg files by
using Perl script which is given below:

#!/usr/bin/perl
$interval=120;
while(1)
{ sleep ($interval - time() % $interval);
system '/usr/local/mrtg-2/bin/mrtg /usr/local/mrtg-2/conf/mrtg.cfg';
system '/usr/local/mrtg-2/bin/mrtg /usr/local/mrtg-2/conf/mrtg2.cfg';
}

But whenever I exit from Telnet session the script becomes stopped.
Everytime I have to go on Server's Console & start the script. Is there
anyway to get rid of such a hectic situation ??? Immediate response will
be highly appreciable.....!

Thanks 'n' regards,
Shujaat Nazir Khan



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

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