#!/usr/bin/perl # icinga: -epn # check_ilo2_health.pl # based on check_stuff.pl and locfg.pl # # Nagios plugin using the Nagios::Plugin module and the # HP Lights-Out XML PERL Scripting Sample from # ftp://ftp.hp.com/pub/softlib2/software1/pubsw-linux/p391992567/v60711/linux-LOsamplescripts3.00.0-2.tgz # checks if all sensors are ok, returns warning on high temperatures and # fan failures and critical on overall health failure # # Alexander Greiner-Baer 2007 - 2012 # Matthew Stier 2011 # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation, either version 3 of the License, or # (at your option) any later version. # # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. # # You should have received a copy of the GNU General Public License # along with this program. If not, see . # # # Changelog: # 1.58 Thu, 08 Aug 2013 18:17:02 +0200 # ignore network link down status (option "-i") # added ENCLOSURE_ADDR to drive bay label (bay numbering was inconsistent) # ignore spare drives # 1.57 Fri, 17 May 2013 19:30:48 +0200 # SSL_verify_mode SSL_VERIFY_NONE (IO::Socket::SSL changed default) # event log support for ilo2 # disable embedded perl in icinga # 1.56 Fri, 15 Mar 2013 20:47:13 +0100 # applied patch from Niklas Edmundsson : # check processor and memory details # applied patches from Dragan Sekerovic : # add location label to temperature (option "-b") # support for checking event log (option "-l") # add iLO version to output # add 2 new values for power supply status # -- # 1.55 Sun, 05 Aug 2012 20:18:46 +0200 # faulty drive (option "-c") exits now with CRITICAL instead of WARNING # applied patches from Niklas Edmundsson : # iLO4 RAID Controller Status # nodriveexit # add g6 drive status # overall health probes every element now # fixed bug with drive bay index # supports iLO3 with multiple backplanes # supports iLO4 disk check # Note: overall health may show drive/storage status, even without "-c" # -- # 1.54 Thu, 14 Jun 2012 21:36:40 +0200 # applied fix for iLO4 from Niklas Edmundsson # -- # 1.53 Tue, 14 Feb 2012 19:47:40 +0100 # added new disk bay variant # added power supply NOT APPLICABLE # -- # 1.52 Wed, 27 Jul 2011 20:46:14 +0200 # fixed