[Nagiosplug-devel] [ nagiosplug-Bugs-1768817 ] check_linux_raid.pl compilation error

SourceForge.net noreply at sourceforge.net
Mon Aug 6 23:01:54 CEST 2007


Bugs item #1768817, was opened at 2007-08-06 16:01
Message generated for change (Tracker Item Submitted) made by Item Submitter
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=397597&aid=1768817&group_id=29880

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: General plugin execution
Group: None
Status: Open
Resolution: None
Priority: 5
Private: No
Submitted By: Jonathan Mills (jonmills1)
Assigned to: Nobody/Anonymous (nobody)
Summary: check_linux_raid.pl compilation error

Initial Comment:
The affected file is /usr/lib/nagios/plugins/contrib/check_linux_raid.pl
===================
ERROR:
[root at test4 contrib]# perl ./check_linux_raid.pl md0
Bareword "utils" not allowed while "strict subs" in use at ./check_linux_raid.pl line 26.
Bareword "pm" not allowed while "strict subs" in use at ./check_linux_raid.pl line 26.
BEGIN not safe after errors--compilation aborted at ./check_linux_raid.pl line 27.

====================

This appears to exist in even the latest versions of nagios-plugins.  The recommended fix is to replace line 26 with this:

use lib "utils.pm";

Thanks!

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=397597&aid=1768817&group_id=29880




More information about the Devel mailing list