[mrtg] Combining temp and voltages but a little complex...

scoob8000 scoob8000 at gmail.com
Wed Apr 30 20:28:17 CEST 2008


Two questions really..

I'd like to combine voltage readings and temp readings in the same graph if
at all possible.

The other half of my problem is how the values get returned, I need to do a
little math with them to get them looking right..

Here's an example from my config:
Target[temp]:
1.3.6.1.4.1.6066.2.1.3.2.1.1.1.1.4.12&1.3.6.1.4.1.6066.2.1.3.2.1.1.1.1.4.12:public at 10.8.48.20<1.3.6.1.4.1.6066.2.1.3.2.1.1.1.1.4.12%261.3.6.1.4.1.6066.2.1.3.2.1.1.1.1.4.12%3Apublic at 10.8.48.20>*
1.8 + 32

The temp value is returned in C, so I multiply by 1.8 and add 32.


Voltage is a little more tricky..
Target[volt]:
1.3.6.1.4.1.6066.2.1.3.2.1.1.1.1.4.10&1.3.6.1.4.1.6066.2.1.3.2.1.1.1.1.4.10:public at 10.8.48.20<1.3.6.1.4.1.6066.2.1.3.2.1.1.1.1.4.10%261.3.6.1.4.1.6066.2.1.3.2.1.1.1.1.4.10%3Apublic at 10.8.48.20>*
.01 * -1

My equipment returns the value as a negative 4 digit number.  I multiply by
.01 to get my decimal point, then multiply by negative 1 to get a positive
value.

ie, -5200 becomes 52.00

TIA
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.oetiker.ch/pipermail/mrtg/attachments/20080430/bceb05b9/attachment-0001.html 


More information about the mrtg mailing list