[mrtg] Re: External ping program
Stieers, Ken
KStieers at DainRauscher.com
Mon May 15 14:21:46 MEST 2000
The cfg file doesn't change, the output of your program has to be as follows
(taken from the config.html file that is part of the DOCUMENTATION):
if you want to monitor something which does not provide data via snmp you
can use some external program to do the data gathering.
The external command must return 4 lines of output:
Line 1
current state of the first variable, normally 'incoming bytes count'
Line 2
current state of the second variable, normally 'outgoing bytes count'
Line 3
string (in any human readable format), telling the uptime of the target.
Line 4
string, telling the name of the target.
Depending on the type of data your script returns you might want to use the
'gauge' or 'absolute' arguments for the Options keyword.
Example:
Target[ezwf]: `/usr/local/bin/df2mrtg /dev/dsk/c0t2d0s0`
Note the use of the backticks (`), not apostrophes (') around the command.
> -----Original Message-----
> From: Irfan Akber [mailto:irfan at inet.com.pk]
> Sent: Saturday, May 13, 2000 9:58 AM
> To: mrtg at list.ee.ethz.ch
> Subject: [mrtg] External ping program
>
>
> Hi,
>
> I have made a perl script that gets the min, average and max
> values of ping and I want to make the graph of this using mrtg. How do
> I specify external programs in the .cfg file and what should
> be the output from the ping script. As someone pointed that it should
> be integer.
>
> What would be the format of the .cfg file to feed to mrtg. ?
>
> Thanks,
>
> Irfan Akber
>
>
> --
> 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
>
--
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
More information about the mrtg
mailing list