Discussion:
[mrtg] How to poll Max/Min/Avg/Current values from MRTG?
seong joon bae
1999-07-15 23:33:41 UTC
Permalink
Hello,
I am working on this project that will use MRTG to monitor the temperature
in our Machine Room. I've wrriten a code that polls the temperature from
the measuring device and sends the temperature to the MRTG.
I've done writing mrtg.cfg and tried to run it.
It works fine.
But I want to poll just Current/Max/Min/Average values(temperatures) for
last 24 hours from MRTG. I read through config.txt and manual.txt
completely but couldn't find anything about getting those values
separately from MRTG.
Could someone help me on this?
Thank you.



--
* To unsubscribe from the mrtg mailing list, send a message with the
subject: unsubscribe to mrtg-***@list.ee.ethz.ch
* The mailing list archive is at http://www.ee.ethz.ch/~slist/mrtg
Martin Ansdell-Smith
1999-07-17 21:19:07 UTC
Permalink
Post by seong joon bae
Hello,
I am working on this project that will use MRTG to monitor the temperature
in our Machine Room. I've wrriten a code that polls the temperature from
the measuring device and sends the temperature to the MRTG.
I've done writing mrtg.cfg and tried to run it.
It works fine.
But I want to poll just Current/Max/Min/Average values(temperatures) for
last 24 hours from MRTG. I read through config.txt and manual.txt
completely but couldn't find anything about getting those values
separately from MRTG.
Could someone help me on this?
An easy way is to parse the .html file generated by mrtg.
You can either pick up on the displayed figures below the graph(s) or
use the commented values such as
<!-- maxin d 1 -->
<!-- maxout d 87 -->
<!-- avin d 1 -->
<!-- avout d 34 -->
<!-- cuin d 1 -->
<!-- cuout d 0 -->
and so on for ... w, ... m, ... y as appropriate.


Martin

--

Martin Ansdell-Smith
Network Analyst http://www.ansdell.demon.co.uk/

--
* To unsubscribe from the mrtg mailing list, send a message with the
subject: unsubscribe to mrtg-***@list.ee.ethz.ch
* The mailing list archive is at http://www.ee.ethz.ch/~slist/mrtg
Loading...