SNMP checks, using multiple snmpgets

Jim Avery jim at jimavery.me.uk
Fri Nov 19 20:07:55 CET 2010


On 18 November 2010 19:04,  <a.smith at ukgrid.net> wrote:

>   Im trying to get my SNMP monitoring a bit more informative. I want
> to monitor port status on ethernet switches (which Ive tested and
> works quite nicely).
> Im using the instructions given here:
>
> http://www.thegeekstuff.com/2008/11/how-to-monitor-network-switch-and-ports-using-nagios/
>
> What would be nice is that in the out put of a give port, rather than
> just saying up or down Id like to also include the output from the
> ifDescr along with the port status. Logically this would seem to be
> possible, give the how to above shows in example 7 a config whereby
> you monitor multiple ports in a single command.
> I tried this config:
>
> check_command           check_snmp!-C public -o ifDescr.52 -m RFC1213-MI
> B -o ifOperStatus.52 -r 1 -m RFC1213-MIB
>
> The output of the command is fine, I see the string returned from the
> ifDescr first then the status of the port, but Nagios takes this as
> being an error state and marks the service as faulted permanently.
> If anyone can understand that, do you know if what I want is possible
> to achieve? :P

Have you looked at http://nagios.manubulon.com/snmp_int.html ?

I'm at home so can't check for sure but I think it will retrieve the ifDescr.

hth,

Jim

------------------------------------------------------------------------------
Beautiful is writing same markup. Internet Explorer 9 supports
standards for HTML5, CSS3, SVG 1.1,  ECMAScript5, and DOM L2 & L3.
Spend less time writing and  rewriting code and more time creating great
experiences on the web. Be a part of the beta today
http://p.sf.net/sfu/msIE9-sfdev2dev
_______________________________________________
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