notifications 3.0b3 not working.
Andreas Ericsson
ae at op5.se
Tue Oct 2 10:33:33 CEST 2007
Ken Lee wrote:
> thanks for your wisdom Andreas, perhaps I should purchase Op5 monitor? Not.
>
Ach, soz. I wrote the first reply on a different computer and failed to see
that you actually had tried a few tricks on your own. My apologies.
Try this:
---%<---%<---%<--- notify-to-file.sh ---%<---%<---%<---
#!/bin/sh
outfile=/tmp/nagios-notify.log
echo "########################" >> $outfile
echo "$@" >> $outfile
echo "########################" >> $outfile
env >> $outfile
echo "########################" >> $outfile
---%<---%<---%<--- notify-to-file.sh ---%<---%<---%<---
define command{
command_name notify-to-file
command_line /path/to/notify-to-file.sh <cut and paste all nagios macros here>
}
define contact{
contact_name always_notified
alias ladida
service_notification_timeperiod 24x7
service_notification_options c,w,r,f
host_notification_options d,u,r
host_notification_timeperiod 24x7
contactgroups *
host_notification_commands notify-to-file
service_notification_commands notify-to-file
contact_email none at void.org
}
and see what happens. You may have to fiddle with the contact object a bit. I
wrote it from memory, and it's still a bit early in the morning for me.
--
Andreas Ericsson andreas.ericsson at op5.se
OP5 AB www.op5.se
Tel: +46 8-230225 Fax: +46 8-230231
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Nagios-users mailing list
Nagios-users at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting any issue.
::: Messages without supporting info will risk being sent to /dev/null
More information about the Users
mailing list