check_snmp - warning numbers
Alejandro Sánchez Meroño
alejandro.sanchez at ite.es
Thu May 7 10:43:45 CEST 2009
Hola de nuevo...
I'll answer you in English so that anybody in the list can understand and participate in this subject.
I think that if you don't know exactly which parameter to monitor you should browse the whole OID list that you receive when you do a snmpwalk on your switch, and identify the ones that fit your needs, with the help of the website I said yesterday, or any other OIDs reference.
My case: The only thing I want to detect is if there is any damaged port in any of my switches. So what I did was to snmpwalk on a switch which I positively knew that had its port #2 damaged, and discover which OID was significantly different for this port. And the one I found is:
iso.3.6.1.2.1.10.7.2.1.7
(maybe you can find it as its equivalent: SNMPv2-SMI::mib-2.10.7.2.1.7)
defined as: "a count of frames for which the first transmission attempt on a particular interface is delayed because the medium is busy".
The thing is that it's the only OID I found that gave a very high value for port #2 (about 65,000 or so) and 0 for the rest of ports that work properly.
The command I defined for this was like this:
define command {
command_name check_port
command_line $USER1$/check_snmp -H $HOSTADDRESS$ -C password -O iso.3.6.1.2.1.10.7.2.1.7.$ARG1$ -w 1 -c 10 -u retries
}
For sure there must be somebody else in the list who can give to you a more detailed or a more formally correct answer...
Hasta la proxima,
Alejandro
==
Alejandro Sanchez Merono
Area de Informatica y Comunicaciones
Instituto de Tecnologia Electrica - http://www.ite.es
Valencia - Spain
-----Mensaje original-----
De: Matias Blanco [mailto:matias at valastro.com.ar]
Enviado el: miércoles, 06 de mayo de 2009 19:27
Para: Alejandro Sánchez Meroño; Nagios-users at lists.sourceforge.net
Asunto: RE: [Nagios-users] check_snmp - warning numbers
Hola Alejandro,
Ahora otra cosa:
De que manera crees que pueda chequear los puertos de mi switch con nagios para tener una idea más clara de lo que está sucediendo?
Porque esos paquetes entrantes con errores no se si son por causa de la PC o de los puerto del switch...
Muchas Gracias...
Cristian
************************************
Hola Matías... :-) and hola everyone...
There exists a magical website where to identify every OID you can check with SNMP, the link is:
http://support.ipmonitor.com/mibs_byoidtree.aspx
For your particular issue, if you type "RFC1213-MIB" at the "Search for:" form, click the result given ("RFC1213-MIB"), and then "View:
Oid-tree", you'll be able to locate "ifInErrors(14)" at the tree shown, and clicking it you'll find its Description, which reads literally:
"The number of inbound packets that contained errors preventing them from being deliverable to a higher-layer protocol."
That's the answer to your question!!
Now some other questions appear...
Wouldn't it be nicer to know what exactly are you monitoring before you monitor it, so you could properly interpret the results?
Is that parameter (number of inbound packets that contained errors and blah blah blah...) significant enough to determine if a port is working properly or not?
Hope this helps...
Best regards,
Alejandro
==
Alejandro Sanchez Merono
Area de Informatica y Comunicaciones
Instituto de Tecnologia Electrica - http://www.ite.es Valencia - Spain
-----Mensaje original-----
De: Matias Blanco [mailto:matias at valastro.com.ar] Enviado el: miércoles, 06 de mayo de 2009 17:49
Para: Nagios-users at lists.sourceforge.net
Asunto: [Nagios-users] check_snmp - warning numbers
Hi, I am using the check_snmp nagios`s plugin. And when we check the ports status of a 3com Baseline 2250 Plus, we recibe many ports results:
SNMP OK - 0
SNMP WARNING - *1*
SNMP WARNING - *84*
SNMP WARNING - *2*
SNMP WARNING - *2*
SNMP WARNING - *4*
The question is, what´s the meaning of the warning numbers?
Other information:
------------------
# 'check_snmp' command definition
define command{
command_name check_snmp
command_line $USER1$/check_snmp -H $HOSTADDRESS$ $ARG1$
}
Example of service
-------------------
define service {
use service-15x3x5-switchs
host_name 3COM2250P
service_description Port 03 [In Errors]
check_command check_snmp!-C public -o ifInErrors.3 -w
0 -m RFC1213-MIB
notifications_enabled 0
}
THANKS...
Matías Blanco.
------------------------------------------------------------------------------
The NEW KODAK i700 Series Scanners deliver under ANY circumstances! Your
production scanning environment may not be a perfect world - but thanks to
Kodak, there's a perfect scanner to get the job done! With the NEW KODAK i700
Series Scanner you'll get full speed at 300 dpi even with all image
processing features enabled. http://p.sf.net/sfu/kodak-com
_______________________________________________
Nagios-users mailing list
Nagios-users at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting any issue.
::: Messages without supporting info will risk being sent to /dev/null
More information about the Users
mailing list