[mrtg] Re: more contributed configs?
KStieers at dainrauscher.com
Wed Oct 27 14:03:20 MEST 1999
The docs for external sources are in the config.html file in the section on
target definitions. Taken from that file:
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:
current state of the first variable, normally 'incoming bytes count'
current state of the second variable, normally 'outgoing bytes count'
string (in any human readable format), telling the uptime of the target.
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.
Target[ezwf]: `/usr/local/bin/df2mrtg /dev/dsk/c0t2d0s0`
Note the use of the backticks (`), not apostrophes (') around the command.
Basically that means that the out put must look like this:
<integer for the "in" number>
<integer for the "out" number>
<uptime as a string>
<target name as a string>
So, if the results of your external script were 4 for in, 5 for out, "a long
time" for uptime and the thing being monitored was called "my thing" the
output should look like this:
a long time
Dain Rauscher Information Services
> -----Original Message-----
> From: Justin Shore [mailto:macdaddy at vinnie.ksu.ksu.edu]
> Sent: Wednesday, October 27, 1999 1:55 AM
> To: mrtg at list.ee.ethz.ch
> Subject: [mrtg] more contributed configs?
> Where is a good place to find more ready-made MRTG config files
> besides the ones included with the distribution? Also, are there any
> docs that discuss what exactly you have to pass MRTG from an external
> source? I'm having trouble figuring a few things out. Thanks!
> * To unsubscribe from the mrtg mailing list, send a message with the
> subject: unsubscribe to mrtg-request at list.ee.ethz.ch
> * The mailing list archive is at http://www.ee.ethz.ch/~slist/mrtg
* To unsubscribe from the mrtg mailing list, send a message with the
subject: unsubscribe to mrtg-request at list.ee.ethz.ch
* The mailing list archive is at http://www.ee.ethz.ch/~slist/mrtg
More information about the mrtg