[mrtg] Re: Rounding
Koelstra, J. (Jan)
JKoelstra at MINSZW.NL
Fri Dec 9 10:19:29 MET 2005
Richard,
If you don't want to use rrd-tool then an other option is:
Multiply the output in your script with 1000 and change your config to deal with mAmps.
Next line should do this:
kMG[power1_1]: m,,k,M
Hth,
Jan.
-----Original Message-----
From: mrtg-bounce at list.ee.ethz.ch [mailto:mrtg-bounce at list.ee.ethz.ch] On Behalf Of PAUL WILLIAMSON
Sent: Thursday, December 08, 2005 8:03 PM
To: mrtg at fadedforce.com; mrtg at list.ee.ethz.ch
Subject: [mrtg] Re: Rounding
MRTG does integers. If you want real numbers, go to RRDTool.
Paul
>>> "Richard T. Davis" <mrtg at fadedforce.com> 12/08/05 1:30 PM >>>
Hello,
I have an external script that monitors power values from a network connected power strip. For some reason, MRTG is rounding the numbers and I do not want it to. How can I fix this? For example, right now the script is outputting 16.7 but MRTG is graphing it as 17.
Here are my config lines. I am using MRTG 2.11.1.
Target[power1_1]: `/usr/local/bin/power.pl 192.168.0.61 amps`
Directory[power1_1]: power1
MaxBytes[power1_1]: 16
AbsMax[power1_1]: 20
Unscaled[power1_1]: dwmy
Options[power1_1]: noi, gauge, growright, nopercent, noinfo
Colours[power1_1]: Blue#0000FF,Blue#0000FF,RED#cc0000,RED#cc0000
Legend2[power1_1]: Power strip 1 amperage
LegendO[power1_1]: amps:
YLegend[power1_1]: Arms
ShortLegend[power1_1]:
Title[power1_1]: Power strip 1 amperage
PageTop[power1_1]: <H1>Power strip 1 amperage</H1>
Thanks for your help.
--
Unsubscribe mailto:mrtg-request at list.ee.ethz.ch?subject=unsubscribe
Archive http://lists.ee.ethz.ch/mrtg
FAQ http://faq.mrtg.org Homepage http://www.mrtg.org
WebAdmin http://lists.ee.ethz.ch/lsg2.cgi
--
Unsubscribe mailto:mrtg-request at list.ee.ethz.ch?subject=unsubscribe
Archive http://lists.ee.ethz.ch/mrtg
FAQ http://faq.mrtg.org Homepage http://www.mrtg.org
WebAdmin http://lists.ee.ethz.ch/lsg2.cgi
_________________________________________________________
Het ministerie van Sociale Zaken en Werkgelegenheid sluit elke aansprakelijkheid uit in verband met het niet juist, onvolledig of niet tijdig overkomen van de informatie in deze e-mail.
Aan dit bericht kunnen geen rechten worden ontleend.
Dit bericht is alleen bestemd voor de geadresseerde. Indien dit bericht niet voor u bestemd is, verzoeken wij u dit onmiddellijk aan ons te melden en de inhoud van dit bericht te vernietigen.
_________________________________________________________
The ministry of Social Affairs and Employment is not liable for any incorrect or incomplete transmission of the information in this e-mail or for any delay in its receipt.
This message shall not constitute any obligations.
This message is intended solely for the addressee.
If you have received this message in error, please inform us immediately and delete its content.
_________________________________________________________
--
Unsubscribe mailto:mrtg-request at list.ee.ethz.ch?subject=unsubscribe
Archive http://lists.ee.ethz.ch/mrtg
FAQ http://faq.mrtg.org Homepage http://www.mrtg.org
WebAdmin http://lists.ee.ethz.ch/lsg2.cgi
More information about the mrtg
mailing list