Combining 2 OID to get single display

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
bhaskarbabar
Posts: 19
Joined: Tue Jun 05, 2018 6:48 am

Combining 2 OID to get single display

Post 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.
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Combining 2 OID to get single display

Post 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
Former Nagios employee
Creator:
ahumandesign.com
enneagrams.com
Locked