Description of problem: Syntax error in check_linux_raid causes the script to always fail. There is a missing semi-colon at the end of line 26 of %{libdir}/nagios/plugins/check_linux_raid Version-Release number of selected component (if applicable): nagios-plugins-linux_raid-1.4.13-4.el5 How reproducible: Always Steps to Reproduce: 1. yum install nagios-plugins-linux_raid 2. /usr/lib/nagios/plugins/check_linux_raid Actual results: "use" not allowed in expression at /usr/lib/nagios/plugins/check_linux_raid line 27, at end of line syntax error at /usr/lib/nagios/plugins/check_linux_raid line 27, near "use utils " Execution of /usr/lib/nagios/plugins/check_linux_raid aborted due to compilation errors. Expected results: OK md0 status=[UU]. md1 status=[UU]. md2 status=[UU]. Additional info: The following patch fixes the problem --- /usr/lib/nagios/plugins/check_linux_raid.ORIG 2008-09-28 21:42:00.000000000 -0700 +++ /usr/lib/nagios/plugins/check_linux_raid 2008-10-14 19:00:54.000000000 -0700 @@ -23,7 +23,7 @@ # WARNING md0 status=[UUU_U], recovery=46.4%, finish=123.0min use strict; -use lib "/usr/lib/nagios/plugins" +use lib "/usr/lib/nagios/plugins"; use utils qw(%ERRORS); # die with an error if we're not on Linux
This bug was fixed in Oct, 2008 at version 1.4.13-5. This bug has been resolved.