Page 5 of 5

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

Posted: Thu Jun 11, 2015 2:19 pm
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?

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

Posted: Thu Jun 11, 2015 2:42 pm
by ssax
What do you mean by "is correctly what I am doing?", in reference to what?

Yes, the command is using MIBs.

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

Posted: Thu Jun 11, 2015 3:08 pm
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?

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

Posted: Thu Jun 11, 2015 3:13 pm
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.

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

Posted: Thu Jun 11, 2015 3:28 pm
by Jessuzz94
Oh okay, while it use Mibs nothing problem, very thanks men!

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

Posted: Thu Jun 11, 2015 4:35 pm
by jdalrymple
You're very welcome.

Is this solved, can we lock the thread?

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

Posted: Fri Jun 12, 2015 11:54 am
by Jessuzz94
Yes, its all :D