SNMP monitoring using check_snmp

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
golden275
Posts: 3
Joined: Mon Jun 17, 2013 10:49 am

SNMP monitoring using check_snmp

Post 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?
golden275
Posts: 3
Joined: Mon Jun 17, 2013 10:49 am

Network Switch monitoring

Post 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?
Last edited by abrist on Mon Jun 17, 2013 12:03 pm, edited 1 time in total.
Reason: Merged topics, deleted double topic post!
abrist
Red Shirt
Posts: 8334
Joined: Thu Nov 15, 2012 1:20 pm

Re: SNMP monitoring using check_snmp

Post 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.
Former Nagios employee
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
Locked