SNMP batch checks.
Posted: Fri Oct 19, 2012 11:54 am
When using NSClient ++, you can put a number of checks in one command. YOu can then iether use the -SHOWFAILED parameters to list only the failed checks, instead of the entire list.
This is great because it saves on resources because instead of nagios sending 10 individual requests, it is sending one request that check's ten things.
Is there a way to do this with snmp?
For instance I have a ups that is being checked for:
Battery status
Imput Voltage
Output Voltage
In order to do this I have created 3 separate commands, templates, services and applied them to my host group.
With NSclient I could create 1 command containing three checks and then 1 template and once service. Then I would add the -SHOWALL parameter.
Here is the difference:
SNMP:
UPSno1 | Battery Status[ok]
|INPUT VOLTAGE [ OK- 1BILLION VOLTS]
| OUTPUT VOLTAGE [OK - Awhole Bunch]
NSclient ++:
UPSn01 | [ok]
so can snmp some how do this as well?
This is great because it saves on resources because instead of nagios sending 10 individual requests, it is sending one request that check's ten things.
Is there a way to do this with snmp?
For instance I have a ups that is being checked for:
Battery status
Imput Voltage
Output Voltage
In order to do this I have created 3 separate commands, templates, services and applied them to my host group.
With NSclient I could create 1 command containing three checks and then 1 template and once service. Then I would add the -SHOWALL parameter.
Here is the difference:
SNMP:
UPSno1 | Battery Status[ok]
|INPUT VOLTAGE [ OK- 1BILLION VOLTS]
| OUTPUT VOLTAGE [OK - Awhole Bunch]
NSclient ++:
UPSn01 | [ok]
so can snmp some how do this as well?