[Nagiosplug-devel] bug in nagios-plugins 1.4.9's check_linux_raid.pl

Jeff Potter jpotter at codepuppy.com
Thu Jul 5 15:25:38 CEST 2007


Hi Guys,

Thanks for a great tool -- nagios is amazing.

In v1.4.9, file "check_linux_raid.pl" has a very simple bug that  
prevents it from running at all. Trying to run it as-is gives:
	Bareword "utils" not allowed while "strict subs" in use at /usr/lib/ 
nagios/plugins/contrib/check_linux_raid.pl line 26.
	Bareword "pm" not allowed while "strict subs" in use at /usr/lib/ 
nagios/plugins/contrib/check_linux_raid.pl line 26.
	BEGIN not safe after errors--compilation aborted at /usr/lib/nagios/ 
plugins/contrib/check_linux_raid.pl line 27.


I think it just needs quote marks around the use statement -- here is  
a diff that fixed it:


26c26
< use lib 'utils.pm';
---
 > use lib utils.pm;



best,
Jeff




More information about the Devel mailing list