Page 1 of 1

SNMP monitoring using check_snmp

Posted: Mon Jun 17, 2013 11:37 am
by golden275
Hello, I am trying to perform a POC for a client using Nagios XI, and need some help with SNMP checks.

I was reading the manual about check_snmp and it has a note for the -o command, "Max 8 OIDs".

I have just tried running this at the command line with 13 OIDs and received no errors, and it returned SNMP OK - 0 0 0 0 0 0 0 0 0 0 0 0 0, does this mean there isn't a limitation? Or that later if I have too many OIDs it might break?

The OID's I used were for 13 interfaces incoming error packets using: .1.3.6.1.2.1.2.2.1.14.[1-13]

My next question is that want to monitor In & Out Error Packets, In & Out Discards and Operational Status on the interfaces. On one switch we want that information from ports (interfaces): 11, 77, 78, 128, 344, 372, 383, 417, 418, 473, 480, 485 and none of the others, would that mean I have to set up every single switch differently, and create new commands for every swithc that I want monitored?

How would you go about monitoring a network switch under normal circumstances? Traps only?

Network Switch monitoring

Posted: Mon Jun 17, 2013 11:49 am
by golden275
I am trying to complete a POC for a client and am having difficulty understanding how one should set up monitoring for a switch.

I have found OID's that I want to monitor:

In Discards .1.3.6.1.2.1.2.2.1.13
Out Discards .1.3.6.1.2.1.2.2.1.19
In Error Packets .1.3.6.1.2.1.2.2.1.14
Out Error Packets .1.3.6.1.2.1.2.2.1.20
OpState .1.3.6.1.2.1.2.2.1.8

We are wanting to monitor 13 interfaces on one switch:

11
77
78
128
344
372
383
417
418
473
476
480
485

From what I am seeing then, I would have to create 65 OIDs (13 interfaces * 5 OIDs =65). Is this correct?

This make me think I am doing something wrong since every switch will have different interface number so I would have to create different commands for every switch in their environment.

Also I found a note in the check_snmp help file for -o switch: Max 8 OIDs, causing me even more commands that I would have to create.

What is the best way to monitor a network switch?

Re: SNMP monitoring using check_snmp

Posted: Mon Jun 17, 2013 3:48 pm
by abrist
I would suggest using the walk wizard, and only choosing the interfaces and oids that you need, rather than manually configuring a singleton checks that include a whole swath of oids.