Macros

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
Locked
yummy909
Posts: 2
Joined: Sat Mar 28, 2020 11:02 am

Macros

Post 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.
User avatar
Box293
Too Basu
Posts: 5126
Joined: Sun Feb 07, 2010 10:55 pm
Location: Deniliquin, Australia
Contact:

Re: Macros

Post 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.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
yummy909
Posts: 2
Joined: Sat Mar 28, 2020 11:02 am

Re: Macros

Post by yummy909 »

OK. Sorry to sound like a newb, but how do you do that? Or point me where I can learn how to.
User avatar
Box293
Too Basu
Posts: 5126
Joined: Sun Feb 07, 2010 10:55 pm
Location: Deniliquin, Australia
Contact:

Re: Macros

Post by Box293 »

As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
Locked