packages: nagios-plugin-check_ipmi/check_ipmi, nagios-plugin-check_ipmi/nag...

glen glen at pld-linux.org
Mon Jan 3 16:51:14 CET 2011


Author: glen                         Date: Mon Jan  3 15:51:14 2011 GMT
Module: packages                      Tag: HEAD
---- Log message:
- when ipmi modules get unloaded the sdr cache reports all sensors "ns", detect
  error when no sensors are ok.

---- Files affected:
packages/nagios-plugin-check_ipmi:
   check_ipmi (1.6 -> 1.7) , nagios-plugin-check_ipmi.spec (1.5 -> 1.6) 

---- Diffs:

================================================================
Index: packages/nagios-plugin-check_ipmi/check_ipmi
diff -u packages/nagios-plugin-check_ipmi/check_ipmi:1.6 packages/nagios-plugin-check_ipmi/check_ipmi:1.7
--- packages/nagios-plugin-check_ipmi/check_ipmi:1.6	Sun Dec 12 23:12:43 2010
+++ packages/nagios-plugin-check_ipmi/check_ipmi	Mon Jan  3 16:51:08 2011
@@ -224,4 +224,9 @@
 	die CRITICAL "$bsensors sensors bad: $bad_sensors"
 fi
 
+if [ "$osensors " -le 0 ]; then
+	# 0 sensors found OK is likely error
+	die UNKNOWN "No sensors found OK"
+fi
+
 die OK "$osensors sensors OK"

================================================================
Index: packages/nagios-plugin-check_ipmi/nagios-plugin-check_ipmi.spec
diff -u packages/nagios-plugin-check_ipmi/nagios-plugin-check_ipmi.spec:1.5 packages/nagios-plugin-check_ipmi/nagios-plugin-check_ipmi.spec:1.6
--- packages/nagios-plugin-check_ipmi/nagios-plugin-check_ipmi.spec:1.5	Sun Dec 12 23:13:00 2010
+++ packages/nagios-plugin-check_ipmi/nagios-plugin-check_ipmi.spec	Mon Jan  3 16:51:08 2011
@@ -2,7 +2,7 @@
 %define		plugin	check_ipmi
 Summary:	Nagios plugin to check IPMI status
 Name:		nagios-plugin-%{plugin}
-Version:	1.6
+Version:	1.7
 Release:	1
 License:	GPL v2
 Group:		Networking
@@ -73,6 +73,10 @@
 All persons listed below can be reached at <cvs_login>@pld-linux.org
 
 $Log$
+Revision 1.6  2011/01/03 15:51:08  glen
+- when ipmi modules get unloaded the sdr cache reports all sensors "ns", detect
+  error when no sensors are ok.
+
 Revision 1.5  2010/12/12 22:13:00  glen
 - typo
 
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/packages/nagios-plugin-check_ipmi/check_ipmi?r1=1.6&r2=1.7&f=u
    http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/packages/nagios-plugin-check_ipmi/nagios-plugin-check_ipmi.spec?r1=1.5&r2=1.6&f=u



More information about the pld-cvs-commit mailing list