net-snmp raid check

Olga Gershanik vestigial.rhaine at gmail.com
Mon Jan 7 23:21:25 CET 2008


- write a custom script to check raid array. i used perl + call to external binary mdadm
- put a call to an external script checking raid aray into snmpd.conf

pass .1.3.6.1.4.1.2021.80 /usr/bin/perl /etc/snmp/checkraid.pl
- make a command using check_snmp and define a corresponding service:

define command{
        command_name    check_raid
        command_line    $USER1$/check_snmp -H $HOSTADDRESS$ -o .1.3.6.1.4.1.2021.80 -C SNMPROCMNTY -r "OK"
}

-----------------------
This thread is located in the archive at this URL:
http://www.nagiosexchange.org/nagios-users.34.0.html?&tx_maillisttofaq_pi1[showUid]=7944
					

-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace
_______________________________________________
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