Monitoring physical disk with SNMP

Marc Powell marc at ena.com
Tue Apr 26 16:31:33 CEST 2005



> -----Original Message-----
> From: nagios-users-admin at lists.sourceforge.net [mailto:nagios-users-
> admin at lists.sourceforge.net] On Behalf Of Roemen, J.
> Sent: Tuesday, April 26, 2005 1:43 AM
> To: nagios-users at lists.sourceforge.net
> Subject: [Nagios-users] Monitoring physical disk with SNMP
> 
> I'm trying to monitor the status of the physical disk with a
check_snmp
> command. When the disk is OK then the status returned is 2. If the
disk
> is defect the status is 3. How can I configure the check_snmp command
so
> that when a disk failes the status changes to critical. -w 4 -c 3
option
> does not work.

This is a modification of a BGP peer check I do on routers but I expect
that it will work. Anything outside of a response of '2' will return
CRITICAL.

-s, --string=STRING
    Return OK state (for that OID) if STRING is an exact match

An example --

command_line    $USER1$/check_snmp -H $HOSTADDRESS$ -o .oid.goes.here -s
2 -C <SNMPREADCOMM> -l 'Physical Disk /dev/sda(or whatever) State'

--
Marc


-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_ide95&alloc_id396&op=click
_______________________________________________
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