2008/8/5, Alexander Wirt <[EMAIL PROTECTED]>: <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 -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]