My check_snmp command doesn´t work for switch monitoring

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.
Jessuzz94
Posts: 162
Joined: Thu Jun 04, 2015 12:08 pm

Re: My check_snmp command doesn´t work for switch monitoring

Post by Jessuzz94 »

Sorry for the late responde, it works, it shows me correctly what interface is up or down with the check_command, just tu know, is correctly what i am doing?, this command is ussing mibs?
ssax
Dreams In Code
Posts: 7682
Joined: Wed Feb 11, 2015 12:54 pm

Re: My check_snmp command doesn´t work for switch monitoring

Post by ssax »

What do you mean by "is correctly what I am doing?", in reference to what?

Yes, the command is using MIBs.
Jessuzz94
Posts: 162
Joined: Thu Jun 04, 2015 12:08 pm

Re: My check_snmp command doesn´t work for switch monitoring

Post by Jessuzz94 »

Its only that my check_snmp command is shortly than others, why my check_snmp command doesnt work with the -c public - o?, its because is already declared in my commands.cfg?
jdalrymple
Skynet Drone
Posts: 2620
Joined: Wed Feb 11, 2015 1:56 pm

Re: My check_snmp command doesn´t work for switch monitoring

Post by jdalrymple »

This leverages your MIB database:

Code: Select all

check_command check_snmp!ifOperStatus.2

This does not:

Code: Select all

check_command check_snmp!.1.3.6.1.2.1.2.2.1.8.2
Both work exactly the same without the need for changing your command definition.
Jessuzz94
Posts: 162
Joined: Thu Jun 04, 2015 12:08 pm

Re: My check_snmp command doesn´t work for switch monitoring

Post by Jessuzz94 »

Oh okay, while it use Mibs nothing problem, very thanks men!
jdalrymple
Skynet Drone
Posts: 2620
Joined: Wed Feb 11, 2015 1:56 pm

Re: My check_snmp command doesn´t work for switch monitoring

Post by jdalrymple »

You're very welcome.

Is this solved, can we lock the thread?
Jessuzz94
Posts: 162
Joined: Thu Jun 04, 2015 12:08 pm

Re: My check_snmp command doesn´t work for switch monitoring

Post by Jessuzz94 »

Yes, its all :D
Locked