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.
Combining 2 OID to get single display
-
- DevOps Engineer
- Posts: 19396
- Joined: Tue Nov 15, 2011 3:11 pm
- Location: Nagios Enterprises
- Contact:
Re: Combining 2 OID to get single display
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
https://exchange.nagios.org/index.php?o ... p%20memory
Here is an example for Linux
http://nagios.manubulon.com/snmp_mem.html