<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
<META NAME="Generator" CONTENT="MS Exchange Server version 6.5.7652.24">
<TITLE>notification problem Nagios 3</TITLE>
</HEAD>
<BODY>
<!-- Converted from text/rtf format -->
<P><FONT SIZE=2 FACE="Arial">Hi people,</FONT>
</P>
<P><FONT SIZE=2 FACE="Arial">Following Question:</FONT>
<BR><FONT SIZE=2 FACE="Arial"> </FONT>
<BR><FONT SIZE=2 FACE="Arial">We have configured Nagios and so far it works fine and does notifications. </FONT>
<BR><FONT SIZE=2 FACE="Arial"> </FONT>
<BR><FONT SIZE=2 FACE="Arial">Since we have a lot of systems which belong to different groups (network, unix, windows, ...) we tried to configure the notifications so that we can define more then one recipient!</FONT></P>
<P><FONT SIZE=2 FACE="Arial"> </FONT>
<BR><FONT SIZE=2 FACE="Arial">for example, we have contacts configured in contacts.cfg</FONT>
</P>
<P><FONT SIZE=2 FACE="Arial">example:</FONT>
</P>
<P><FONT SIZE=2 FACE="Arial">define contact{</FONT>
<BR><FONT SIZE=2 FACE="Arial"> contact_name noone</FONT>
<BR><FONT SIZE=2 FACE="Arial"> alias noone</FONT>
<BR><FONT SIZE=2 FACE="Arial"> use generic-contact</FONT>
<BR><FONT SIZE=2 FACE="Arial"> service_notification_period none</FONT>
<BR><FONT SIZE=2 FACE="Arial"> host_notification_period none</FONT>
<BR><FONT SIZE=2 FACE="Arial"> contactgroups NO-admins</FONT>
<BR><FONT SIZE=2 FACE="Arial"> email noone@xxxxxxxx }</FONT>
</P>
<P><FONT SIZE=2 FACE="Arial">then we have contact groups:</FONT>
</P>
<P><FONT SIZE=2 FACE="Arial">example:</FONT>
</P>
<P><FONT SIZE=2 FACE="Arial">define contact{</FONT>
<BR><FONT SIZE=2 FACE="Arial"> contact_name noone</FONT>
<BR><FONT SIZE=2 FACE="Arial"> alias noone</FONT>
<BR><FONT SIZE=2 FACE="Arial"> use generic-contact</FONT>
<BR><FONT SIZE=2 FACE="Arial"> service_notification_period none</FONT>
<BR><FONT SIZE=2 FACE="Arial"> host_notification_period none</FONT>
<BR><FONT SIZE=2 FACE="Arial"> contactgroups NO-admins</FONT>
<BR><FONT SIZE=2 FACE="Arial"> email noone@xxxxxx</FONT>
<BR><FONT SIZE=2 FACE="Arial"> }</FONT>
</P>
<P><FONT SIZE=2 FACE="Arial">we use the following template.cfg entries</FONT>
</P>
<P><FONT SIZE=2 FACE="Arial">define service{</FONT>
<BR><FONT SIZE=2 FACE="Arial"> name prod-service</FONT>
<BR><FONT SIZE=2 FACE="Arial"> use generic-service</FONT>
<BR><FONT SIZE=2 FACE="Arial"> max_check_attempts 4</FONT>
<BR><FONT SIZE=2 FACE="Arial"> normal_check_interval 5</FONT>
<BR><FONT SIZE=2 FACE="Arial"> retry_check_interval 1</FONT>
<BR><FONT SIZE=2 FACE="Arial"> contact_groups BEREITSCHAFT-admins</FONT>
<BR><FONT SIZE=2 FACE="Arial"> register 0</FONT>
<BR><FONT SIZE=2 FACE="Arial"> }</FONT>
<BR><FONT SIZE=2 FACE="Arial"> </FONT>
<BR><FONT SIZE=2 FACE="Arial">define service{</FONT>
<BR><FONT SIZE=2 FACE="Arial"> name test-service</FONT>
<BR><FONT SIZE=2 FACE="Arial"> use generic-service</FONT>
<BR><FONT SIZE=2 FACE="Arial"> max_check_attempts 4</FONT>
<BR><FONT SIZE=2 FACE="Arial"> normal_check_interval 5</FONT>
<BR><FONT SIZE=2 FACE="Arial"> retry_check_interval 1</FONT>
<BR><FONT SIZE=2 FACE="Arial"> contact_groups NO-admins</FONT>
<BR><FONT SIZE=2 FACE="Arial"> register 0</FONT>
<BR><FONT SIZE=2 FACE="Arial"> }</FONT>
<BR><FONT SIZE=2 FACE="Arial"> </FONT>
<BR><FONT SIZE=2 FACE="Arial">define service{</FONT>
<BR><FONT SIZE=2 FACE="Arial"> name unix-service</FONT>
<BR><FONT SIZE=2 FACE="Arial"> contact_groups +UNIX-admins</FONT>
<BR><FONT SIZE=2 FACE="Arial"> register 0</FONT>
<BR><FONT SIZE=2 FACE="Arial"> }</FONT>
<BR><FONT SIZE=2 FACE="Arial"> </FONT>
<BR><FONT SIZE=2 FACE="Arial">define service{</FONT>
<BR><FONT SIZE=2 FACE="Arial"> name netzwerk-service</FONT>
<BR><FONT SIZE=2 FACE="Arial"> contact_groups +NETZWERK-admins</FONT>
<BR><FONT SIZE=2 FACE="Arial"> register 0</FONT>
<BR><FONT SIZE=2 FACE="Arial"> }</FONT>
<BR><FONT SIZE=2 FACE="Arial"> </FONT>
<BR><FONT SIZE=2 FACE="Arial">define service{</FONT>
<BR><FONT SIZE=2 FACE="Arial"> name db-service</FONT>
<BR><FONT SIZE=2 FACE="Arial"> contact_groups +DATENBANK-admins</FONT>
<BR><FONT SIZE=2 FACE="Arial"> register 0</FONT>
<BR><FONT SIZE=2 FACE="Arial"> }</FONT>
<BR><FONT SIZE=2 FACE="Arial"> </FONT>
</P>
<P><FONT SIZE=2 FACE="Arial">and in the services.cfg it looks like:</FONT>
</P>
<P><FONT SIZE=2 FACE="Arial">example:</FONT>
</P>
<P><FONT SIZE=2 FACE="Arial"> </FONT>
<BR><FONT SIZE=2 FACE="Arial">define service{</FONT>
<BR><FONT SIZE=2 FACE="Arial"> use prod-service,netzwerk-service</FONT>
<BR><FONT SIZE=2 FACE="Arial"> hostgroup_name Netzwerkkomponenten</FONT>
<BR><FONT SIZE=2 FACE="Arial"> service_description PING</FONT>
<BR><FONT SIZE=2 FACE="Arial"> check_command check_ping!100.0,20%!500.0,60%</FONT>
<BR><FONT SIZE=2 FACE="Arial"> }</FONT>
</P>
<BR>
<P><FONT SIZE=2 FACE="Arial">The notification only goes to the first contact /tghe one defined for prod-service) but not to the others if wanted</FONT>
</P>
<P><FONT SIZE=2 FACE="Arial">The reason for this setup is that the prod-service goes to a blackberry and the others should only be additional email notification to theresponsible groups..</FONT></P>
<P><FONT SIZE=2 FACE="Arial">anyone got an idea of what we did wrong? cant find a reason.</FONT>
</P>
<P><FONT SIZE=2 FACE="Arial">thanks in advance</FONT>
</P>
<P><FONT SIZE=2 FACE="Arial">cheers</FONT>
<BR><FONT SIZE=2 FACE="Arial">Sigmund</FONT>
</P>
<BR>
<BR>
<BR>
<BR>
</BODY>
</HTML>