[Pkg-nagios-devel] Bug#493790: Bug#493790: Bug#493790: Bug#493790: nagios3-common: Incorrect path in handle-master-host-event eventhandler
Alexander Wirt
formorer at debian.org
Fri Aug 15 05:26:06 UTC 2008
Nathan Kinkade schrieb am Thursday, den 14. August 2008:
> 2008/8/5, Alexander Wirt <formorer at debian.org>:
> <snip>
> > > the scripts in /usr/share/nagios3/plugins/eventhandlers/ are not modified to
> > > work out of the box at all. The most of the scripts have pathes
> > > with "/usr/local/nagios". The question is, do we want to change that or are
> > > that just "example" scripts like the comments states?
> > They should be (and will be) fixed.
> >
> > Alex
>
> Since this issue is already posted, I thought I'd add a couple more
> incorrect path elements. I would imagine that if the paths haven't
> been thoroughly checked that many if not most of the paths in included
> scripts and plugins may be wrong. Below, I prepend things with a line
> number. I could supply patches, but this is probably just as easy:
>
> /usr/share/nagios3/plugins/eventhandlers/enable_notifications
> 15: printfcmd="/bin/printf" <-- Should be /usr/bin/printf
> 17: CommandFile="/usr/local/nagios/var/rw/nagios.cmd"
> <-- Should be /var/lib/nagios3/rw/nagios.cmd
Jupp I already fixed all handler and all paths in svn. :)
>
> The same holds true for
> /usr/share/nagios3/plugins/eventhandlers/disable_notifications.
>
> This is only marginally related to this issue with paths, but I figure
> I'd just mention it here for the sake of brevity. In the
> enable_notifications script above there is something like:
>
> 23: `printfcmd "[%i] <snip>
>
> It's missing a $ in front of the variable name, and should be:
>
> 23: `$printcmd "[%i] <snip>
I will check this later. Thanks for the hint.
Thanks
Alex
--
Alexander Wirt, formorer at formorer.de
CC99 2DDD D39E 75B0 B0AA B25C D35B BC99 BC7D 020A
More information about the Pkg-nagios-devel
mailing list