Bug 212555

Summary: error in nagios-plugins-linux_raid
Product: [Fedora] Fedora Reporter: Christof Damian <christof>
Component: nagios-pluginsAssignee: Mike McGrath <imlinux>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: medium    
Version: 5CC: christof, extras-qa
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: 1.4.8-4.fc7 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2007-08-13 17:08:50 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Christof Damian 2006-10-27 13:29:43 UTC
Description of problem:
syntax errors:

Bareword "utils" not allowed while "strict subs" in use at
/usr/lib/nagios/plugins/check_linux_raid.pl line 26.
Bareword "pm" not allowed while "strict subs" in use at
/usr/lib/nagios/plugins/check_linux_raid.pl line 26.
BEGIN not safe after errors--compilation aborted at
/usr/lib/nagios/plugins/check_linux_raid.pl line 27.


Version-Release number of selected component (if applicable):
nagios-plugins-linux_raid-1.4.4-1.fc5

How reproducible:
start it from the shell

the fix is this:
--- check_linux_raid.pl     2006-10-27 15:25:54.000000000 +0200
+++ check_linux_raid.pl 2006-10-27 15:24:02.000000000 +0200
@@ -23,7 +23,7 @@
 #        WARNING md0 status=[UUU_U], recovery=46.4%, finish=123.0min

 use strict;
-use lib utils.pm;
+use lib '/usr/lib/nagios/plugins';
 use utils qw(%ERRORS);

 # die with an error if we're not on Linux

Comment 1 Mike McGrath 2006-10-27 14:24:45 UTC
Fixed

Comment 2 Fedora Update System 2007-08-13 17:08:40 UTC
nagios-plugins-1.4.8-4.fc7 has been pushed to the Fedora 7 stable repository.  If problems still persist, please make note of it in this bug report.