[mrtg] Re: Using shell scripts ?

Koelstra, J. (Jan) JKoelstra at MINSZW.NL
Tue Jul 23 16:04:34 MEST 2002


Hi Samuel,

Since the data is getting into the logfile there is nothing wrong with
your shell script. 
My guess is that you do not have put in 'GAUGE' at the options[..] line
of the mrtg configfile.

Jan.

-----Original Message-----
From: Samuel Krieg [mailto:samuel.krieg at vtx.ch] 
Sent: Tuesday, July 23, 2002 3:57 PM
To: MRTG Mailing List
Subject: [mrtg] Using shell scripts ?



Hi,
I am a beginner of MRTG.
I'm tryig to use shell scripts but MRTG doesn't seem to understand. The
official and unofficial FAQs do not explain how to use shell scripts.

My target line :
Target[test]: `/etc/mrtg/test.pl`

My test.pl :
#!/usr/bin/perl
print "10\n";
print "15\n";

The beginning of my log file :
1027431604 10 15
1027431604 0 0 0 0
1027431305 0 0 0 0
1027431300 0 0 0 0
1027431000 0 0 0 0
1027430700 0 0 0 0
and so...

Did I forgot something ?
Is the script output correct ?
Does MRTG need specifical options with shell scripts ?
Is this problem explained somewhere ?

Thank's

-- 
Samuel Krieg
samuel.krieg at vtx.ch

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