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 <[email protected] <mailto:[email protected]>>

    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
[email protected]
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

------------------------------------------------------------------------------
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
[email protected]
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

Reply via email to