Generic SNMP query
Mark Gius
mgius7096 at gmail.com
Tue Jun 23 18:06:26 CEST 2009
I'm not sure what you mean by "snmp tables," but the script I attached
previously will return "SNMP OK" or SNMP <WARNING|CRITICAL> in the main
area, and will place all scanned OIDs into the performance data.
-Gius
Livio Zanol Puppim wrote:
> The oficial "check_snmp" does not return via performance data the
> warning and critical values... also (but less important) does not
> check snmp tables.
>
> example:
>
> ./check_snmp -H 127.0.0.1 -o .1.3.6.1.2.1.25.3.3.1.1.1 -w10 -c10 -C
> public
> CPU OK - 0 % | iso.3.6.1.2.1.25.3.3.1.1.1=0
>
>
>
> 2009/6/22 Mark Gius <mgius at createspace.com <mailto:mgius at createspace.com>>
>
> You may find this perl script helpful. It takes a base OID, does
> an snmpwalk on it, and then compares the results to a specified
> regex or warning/critical threshold.
> Gius
>
>
> Livio Zanol Puppim wrote:
>
> I've searched this at monitoring exchange, but I haven't found
> many scripts. What options I have to use as "generic" SNMP
> checks? Passing OIDs or tables and comparing with values for
> critical and warning states, and passing data trought
> performance output.
>
> What scripts do you use?
>
> --
> []'s
>
> Lívio Zanol Puppim
>
>
>
>
> --
> []'s
>
> Lívio Zanol Puppim
> ------------------------------------------------------------------------
>
> ------------------------------------------------------------------------------
> Are you an open source citizen? Join us for the Open Source Bridge conference!
> Portland, OR, June 17-19. Two days of sessions, one day of unconference: $250.
> Need another reason to go? 24-hour hacker lounge. Register today!
> http://ad.doubleclick.net/clk;215844324;13503038;v?http://opensourcebridge.org
> ------------------------------------------------------------------------
>
> _______________________________________________
> 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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.monitoring-lists.org/archive/users/attachments/20090623/81bcd735/attachment.html>
-------------- next part --------------
------------------------------------------------------------------------------
Are you an open source citizen? Join us for the Open Source Bridge conference!
Portland, OR, June 17-19. Two days of sessions, one day of unconference: $250.
Need another reason to go? 24-hour hacker lounge. Register today!
http://ad.doubleclick.net/clk;215844324;13503038;v?http://opensourcebridge.org
-------------- next part --------------
_______________________________________________
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