Dear,<div><br></div><div>I copy you a working example of my Nagios, just define two times the service with different contacts -it will make it work different for warning different administrators of different servers:</div>
<div><br></div><div><div>define service{</div><div><span class="Apple-tab-span" style="white-space:pre">    </span>use generic-service</div><div><span class="Apple-tab-span" style="white-space:pre">  </span>host_name www2</div>
<div><span class="Apple-tab-span" style="white-space:pre">      </span>service_description HTTP</div><div><span class="Apple-tab-span" style="white-space:pre">     </span>check_command check_http</div><div><span class="Apple-tab-span" style="white-space:pre">     </span>is_volatile 0</div>
<div><span class="Apple-tab-span" style="white-space:pre">      </span>check_period 24x7</div><div><span class="Apple-tab-span" style="white-space:pre">    </span>max_check_attempts 2</div><div><span class="Apple-tab-span" style="white-space:pre"> </span>normal_check_interval 5</div>
<div><span class="Apple-tab-span" style="white-space:pre">      </span>retry_check_interval 5</div><div><span class="Apple-tab-span" style="white-space:pre">       </span>contacts nagiosadmin,nagiosadmin2,nagiosadmin3,nagiosadmin4</div>
<div><span class="Apple-tab-span" style="white-space:pre">      </span>notification_interval 0</div><div><span class="Apple-tab-span" style="white-space:pre">      </span>notification_period 24x7</div><div><span class="Apple-tab-span" style="white-space:pre">     </span>notification_options c,r,w,u,f</div>
<div><span class="Apple-tab-span" style="white-space:pre">      </span>notifications_enabled 1 </div><div><span class="Apple-tab-span" style="white-space:pre">     </span>}</div><div><br></div><div>define service{</div><div><span class="Apple-tab-span" style="white-space:pre">     </span>use generic-service</div>
<div><span class="Apple-tab-span" style="white-space:pre">      </span>host_name www2</div><div><span class="Apple-tab-span" style="white-space:pre">       </span>service_description HTTP</div><div><span class="Apple-tab-span" style="white-space:pre">     </span>check_command check_http</div>
<div><span class="Apple-tab-span" style="white-space:pre">      </span>is_volatile 0</div><div><span class="Apple-tab-span" style="white-space:pre">        </span>check_period 24x7</div><div><span class="Apple-tab-span" style="white-space:pre">    </span>max_check_attempts 2</div>
<div><span class="Apple-tab-span" style="white-space:pre">      </span>normal_check_interval 5</div><div><span class="Apple-tab-span" style="white-space:pre">      </span>retry_check_interval 5</div><div><span class="Apple-tab-span" style="white-space:pre">       </span>contacts fernando,steria</div>
<div><span class="Apple-tab-span" style="white-space:pre">      </span>notification_interval 0</div><div><span class="Apple-tab-span" style="white-space:pre">      </span>notification_period 24x7</div><div><span class="Apple-tab-span" style="white-space:pre">     </span>notification_options c,r,w,u,f</div>
<div><span class="Apple-tab-span" style="white-space:pre">      </span>notifications_enabled 1 </div><div><span class="Apple-tab-span" style="white-space:pre">     </span>}</div><div><br></div>Kind regards,</div><div>Jorge</div><div>
<br><div class="gmail_quote">On Wed, Jul 28, 2010 at 9:51 AM, Mika Chu <span dir="ltr"><<a href="mailto:ledondo2000@gmail.com">ledondo2000@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
Dear,<br>
<br>
I am a beginning user of nagios, and trying to find a convenient way<br>
to define different service contacts. For example this,<br>
<br>
define service{<br>
        name                    check_ssh<br>
        use                     generic-service<br>
        service_description     SSH<br>
        host_name               mail,file,backup<br>
        check_command           check_ssh<br>
        }<br>
<br>
if the mail server ssh has problem, I want to notify user A. If file<br>
server ssh has prolem, I want to notify user B, and etc.<br>
<br>
Please advice how to do that?<br>
Thanks a lot!<br>
--<br>
---<br>
Mika Chu<br>
<br>
------------------------------------------------------------------------------<br>
The Palm PDK Hot Apps Program offers developers who use the<br>
Plug-In Development Kit to bring their C/C++ apps to Palm for a share<br>
of $1 Million in cash or HP Products. Visit us here for more details:<br>
<a href="http://ad.doubleclick.net/clk;226879339;13503038;l" target="_blank">http://ad.doubleclick.net/clk;226879339;13503038;l</a>?<br>
<a href="http://clk.atdmt.com/CRS/go/247765532/direct/01/" target="_blank">http://clk.atdmt.com/CRS/go/247765532/direct/01/</a><br>
_______________________________________________<br>
Nagios-users mailing list<br>
<a href="mailto:Nagios-users@lists.sourceforge.net">Nagios-users@lists.sourceforge.net</a><br>
<a href="https://lists.sourceforge.net/lists/listinfo/nagios-users" target="_blank">https://lists.sourceforge.net/lists/listinfo/nagios-users</a><br>
::: Please include Nagios version, plugin version (-v) and OS when reporting any issue.<br>
::: Messages without supporting info will risk being sent to /dev/null<br>
</blockquote></div><br></div>