https://bugzilla.novell.com/show_bug.cgi?id=836235
https://bugzilla.novell.com/show_bug.cgi?id=836235#c10
Lars Vogdt changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |CLOSED
Resolution| |FIXED
--- Comment #10 from Lars Vogdt 2013-12-04 16:04:12 CET ---
Rewriting the plugin to Perl might indeed be an option that would avoid some
problems (but currently I've not the time to do so, sorry).
The latest patch (which is now included in the package):
--- 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
---
Reason: I'm unsure if your latest patch just checks for the string at the
beginning of the line (which is, what the ^ permits in bash).
I guess with this we should be save enough to close it as fixed now.
Thanks for all your help here!
--
Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.