* Marcus <[EMAIL PROTECTED]> [2008-09-08 10:04]:
> I don't want any ACKNOWLEDGEMENT-mails sent out any more. Unfortunately,
> after about digging an hour in the current docs, I can't find the
> responsible flag, which would have to be set.
We simply unset the "Send Notification:" check box for ACKs in the web
interface by default, so that notifications will only be sent if the box
was explicitly checked (see the attached diff against cgi/cmd.c).
Holger
Index: cmd.c
===================================================================
RCS file: /cvsroot/nagios/nagios/cgi/cmd.c,v
retrieving revision 1.42
diff -u -r1.42 cmd.c
--- cmd.c 19 May 2008 18:42:26 -0000 1.42
+++ cmd.c 8 Sep 2008 08:31:23 -0000
@@ -945,7 +945,7 @@
printf("<INPUT TYPE='checkbox' NAME='sticky_ack'
CHECKED>");
printf("</b></td></tr>\n");
printf("<tr><td CLASS='optBoxItem'>Send
Notification:</td><td><b>");
- printf("<INPUT TYPE='checkbox' NAME='send_notification'
CHECKED>");
+ printf("<INPUT TYPE='checkbox'
NAME='send_notification'>");
printf("</b></td></tr>\n");
}
printf("<tr><td
CLASS='optBoxItem'>Persistent%s:</td><td><b>",(cmd==CMD_ACKNOWLEDGE_HOST_PROBLEM)?"
Comment":"");
@@ -971,7 +971,7 @@
printf("<INPUT TYPE='checkbox' NAME='sticky_ack'
CHECKED>");
printf("</b></td></tr>\n");
printf("<tr><td CLASS='optBoxItem'>Send
Notification:</td><td><b>");
- printf("<INPUT TYPE='checkbox' NAME='send_notification'
CHECKED>");
+ printf("<INPUT TYPE='checkbox'
NAME='send_notification'>");
printf("</b></td></tr>\n");
}
printf("<tr><td
CLASS='optBoxItem'>Persistent%s:</td><td><b>",(cmd==CMD_ACKNOWLEDGE_SVC_PROBLEM)?"
Comment":"");
-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Nagios-users mailing list
Nagios-users@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