1
0
Files
monitoring-plugins-ipmi-sen…/check_ipmi_sensor_v1.3_PowerEdge.patch
Lars Vogdt b05aaa31d6 - Renamed package to monitoring-plugins-ipmi-sensor1
- added check_ipmi_sensor_v1.3_PowerEdge.patch :
  Dell PowerEdge servers seem to have a sensor called: "Fatal IO Error"
  which triggers the script to exit with error message.
  (see bnc #836235)

- license update: GPL-3.0+
  See the check_ipmi_sensor script and the gpl.txt file

- allow access to /var/run/nscd/*
- specfile/license cleanup

- added apparmor profile

- initial version 1.3

OBS-URL: https://build.opensuse.org/package/show/server:monitoring/monitoring-plugins-ipmi-sensor1?expand=0&rev=2
2014-07-30 19:42:57 +00:00

23 lines
794 B
Diff

# Dell PowerEdge servers seem to check "Fatal IO Error"s which triggers
# the script to exit with error message.
# Fix by ignoring the output of the 'sensor name' called "Fatal IO Error"
# tracked in https://bugzilla.novell.com/show_bug.cgi?id=836235
Index: check_ipmi_sensor_v1.3/check_ipmi_sensor
===================================================================
--- check_ipmi_sensor_v1.3.orig/check_ipmi_sensor
+++ check_ipmi_sensor_v1.3/check_ipmi_sensor
@@ -283,9 +283,12 @@ errorstring="Error"
shopt -s nocasematch
if [[ "$ipmioutput" =~ "${errorstring}" ]]
then
+ if [[ "${errorstring}" =~ ^"Fatal IO Err" ]]
+ then
checkhint="check BMC availability/username/password"
echo "ipmitool output contains \"$errorstring\" - $checkhint"
exit 2
+ fi
fi
shopt -u nocasematch