[Pkg-nagios-devel] Bug#493790: Bug#493790: Bug#493790: nagios3-common: Incorrect path in handle-master-host-event eventhandler
Nathan Kinkade
nkinkade at creativecommons.org
Thu Aug 14 23:57:52 UTC 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
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>
Thanks,
Nathan
More information about the Pkg-nagios-devel
mailing list