[users] problems in nagios-plugins package
Dag Wieers
dag at wieers.com
Mon Jan 28 19:56:32 CET 2008
On Fri, 20 Jul 2007, Jim Nelson wrote:
> I've had a couple of issues dealing with a new nagios implementation using the
> rpmforge packages.
>
> 1. When using check_by_ssh, there are real problems defining commands that
> work on both 32- and 64-bit systems. The problem lies in that the nagios
> plugins are installed in /usr/lib on a 32-bit system, and in /usr/lib64 on a
> 64-bit system.
>
> My fix for it is to symlink /usr/lib64/nagios into /usr/lib, and write the
> command definitions based off of the /usr/lib/nagios path.
Hi Jim,
I am not sure how nagios wants me to fix this. The directory contains
binary stuff so it is normal that it goes into /usr/lib64 on 64-bit
systems.
Your fix is a valid one, but not something I would do in the package. You
could also install the 32bit nagios package on 64bit. Although I am not
sure if everything exist in 32bit (and if that is a good idea altogether).
Maybe we have to bring this up on the Nagios forums ?
> 2. The software raid plugin,
> /usr/lib/nagios/plugins/contrib/check_linux_raid.pl, has an error in it that
> prevents it from running on RHEL 4 or 5.
>
> After updating the nagios-plugins package on one of my older boxen, I was
> reminded of it from this alert:
>
> > ***** Nagios 2.9 *****
> >
> > Notification Type: PROBLEM
> >
> > Service: RAID
> > Host: xxxxxxxxxxxx
> > Address: xxx.xxx.xxx.xxx
> > State: UNKNOWN
> >
> > Date/Time: Fri Jul 20 08:21:10 EDT 2007
> >
> > Additional Info:
> >
> > Remote command execution failed: Bareword utils not allowed while strict
> > subs in use at /usr/lib/nagios/plugins/contrib/check_linux_raid.pl line 26.
>
> If you make the symlink change above, then this patch will fix the plugin. If
> not, then it'll have to be replaced with a check for /usr/lib64 and a
> conditional include.
>
> --- check_linux_raid.pl.orig 2007-07-20 08:47:54.000000000 -0400
> +++ check_linux_raid.pl 2007-07-20 08:45:06.000000000 -0400
> @@ -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
In itself the utils.pm file should probably be in the perl INC path (and
that is what I eventually did in the nagios-plugins package).
Sorry for not answering this mail sooner.
--
-- dag wieers, dag at wieers.com, http://dag.wieers.com/ --
[Any errors in spelling, tact or fact are transmission errors]
More information about the users
mailing list