how to manupulate value in SNMP wizard

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
zaji_nms
Posts: 616
Joined: Tue Oct 16, 2012 12:28 am

how to manupulate value in SNMP wizard

Post 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
User avatar
tgriep
Madmin
Posts: 9190
Joined: Thu Oct 30, 2014 9:02 am

Re: how to manupulate value in SNMP wizard

Post 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
Be sure to check out our Knowledgebase for helpful articles and solutions!
Locked