Page 1 of 1

how to manupulate value in SNMP wizard

Posted: Wed May 08, 2019 3:43 am
by zaji_nms
Dear Expert

check_xi_service_snmp

$USER1$/check_snmp -H $HOSTADDRESS$ $ARG1$

$ARG1$ = -o enterprises.318.1.1.26.10.2.2.1.8.1 -C public -P 2c -l "Temperature" -u "C" -w 26 -c 28

the temperature value coming as = 187 , which is really 18.7 , how to divide this value 187 by 10 so real graph plotting will be 18.7

Regards

Re: how to manupulate value in SNMP wizard

Posted: Wed May 08, 2019 3:51 pm
by tgriep
To get what you need, you would have to create a wrapper script and add some extra code on the command that will change the standard output of the plugin to what you need.
Take a look at the following forum post for an example on using awk to change the output.
https://support.nagios.com/forum/viewto ... =7&t=38222