Page 1 of 1

Macros

Posted: Sat Mar 28, 2020 5:22 pm
by yummy909
Where would you add a multiplier?

-p 161 -o 'arrayVoltage.0' -C 'public' -P 2c -l 'Voltage' -m TRISTAR-MPPT -w 125 -c 150

Need to multiply against 0.003051757813 to get a true value on dashboard dashlet.

Re: Macros

Posted: Mon Mar 30, 2020 7:06 pm
by Box293
If this is check_snmp it does not currently have a multiplier argument (it is a feature request). Your solution is to write a wrapper script that performs this conversion for you.

Re: Macros

Posted: Tue Mar 31, 2020 6:53 am
by yummy909
OK. Sorry to sound like a newb, but how do you do that? Or point me where I can learn how to.

Re: Macros

Posted: Tue Mar 31, 2020 3:32 pm
by Box293