Bug 212555 - error in nagios-plugins-linux_raid
error in nagios-plugins-linux_raid
Product: Fedora
Classification: Fedora
Component: nagios-plugins (Show other bugs)
All Linux
medium Severity medium
: ---
: ---
Assigned To: Mike McGrath
Fedora Extras Quality Assurance
Depends On:
  Show dependency treegraph
Reported: 2006-10-27 09:29 EDT by Christof Damian
Modified: 2007-11-30 17:11 EST (History)
2 users (show)

See Also:
Fixed In Version: 1.4.8-4.fc7
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2007-08-13 13:08:50 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)

  None (edit)
Description Christof Damian 2006-10-27 09:29:43 EDT
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):

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 10:24:45 EDT
Comment 2 Fedora Update System 2007-08-13 13:08:40 EDT
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.

Note You need to log in before you can comment on or make changes to this bug.