WHEEE! MRTG

WHEEE! MRTG

Published on 2003/10/01 10:45:351 min read

after reading about MRTG is kasia's blog, I had to start figuring out how to use it more and more..

I've been messing with it..--------------

https://people.ee.ethz.ch/~oetiker/webtools/mrtg/reference.html had all the extra information i needed...

External Monitoring Scripts

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

Target[ezwf]: /usr/local/bin/df2mrtg /dev/dsk/c0t2d0s0

Note the use of the backticks (`), not apostrophes (') around the command.

Gavin Mogan
Burnaby, BC, Canada

I'm a software developer at the awesome Sauce Labs. I do a bunch of other random open source development. I also play games, both board and video games and love to read. You can usually find me on various services as halkeye.

Comments
arrow_back

Previous

Trying to post more things :)

Next

Time Travel & Crushes
arrow_forward