Page 1 of 1

Combining 2 OID to get single display

Posted: Sat Sep 29, 2018 1:32 am
by bhaskarbabar
can i include 2 oid in single check_snmp command ?

for eg.

./check_snmp -P 2c -C public -H *.*.*.* -o 1.3.6.1.4.1.9.9.109.1.1.1.1.12 - this shows used memory
./check_snmp -P 2c -C public -H *.*.*.* -o 1.3.6.1.4.1.9.9.109.1.1.1.1.13 - this shows free memory

i want to get both in single line of command so that on GUI i can see both side by side.

Re: Combining 2 OID to get single display

Posted: Mon Oct 01, 2018 1:36 pm
by scottwilkerson
You can combine these on another script called a wrapper script, but for many of these checks I would suggest looking at the Nagios Exchange to see if someone has already done this
https://exchange.nagios.org/index.php?o ... p%20memory


Here is an example for Linux
http://nagios.manubulon.com/snmp_mem.html