Hello all. Is there a way to perform a calculation on a value polled by a custom probe? I am working on a custom UPS probe and my UPS reports output voltage and battery voltage as 4-digit numbers and I need to divide them by 10 to get an accurate figure. Any help is greatly appreciated!
Jesse-
Here is a note I had about calculations, dividing and displaying-
CHARTABLE (allows keeping a calculation chartable)
<!-- Calculations -->
cFBatt, ($VOLT_1 / 10), CALCULATION, "BattVolts"
cHBatt, ($VOLT_1 / 10) - ($VOLT_2 * 2 / 10), CALCULATION, "HalfBattVolts"
</snmp-device-variables>
<snmp-device-display>
?B0?48 VOLT SYSTEM?p?\0\: \2\ -${chartable: ##.##: $cFBatt} Volts \0\| \2\${chartable: ##.##: $cHBatt} Volts\p\
First calculation is used to establish the variable then // ${chartable: ##.##: $cFBatt} Volts // to format the display. The lower ‘display line’ is wrapped in the email.
hth
frank
Jesse DuPont, EIEIO*
Information Services Manager
Powder River Energy Corporation
Voice 307.283.3531 x2700
FAX 775.806.3630
*The presence of these letters is in no way intended to diminish the effort put forth by people who have actually earned the right to have meaningful letters after their name.
Title: Re: [IM-Talk] Calculations on Polled OID Values
- [IM-Talk] Calculations on Polled OID Values Jesse DuPont
- Re: [IM-Talk] Calculations on Polled OID Values Frank Knapp
- Re: [IM-Talk] Calculations on Polled OID Values Ian Struckhoff
