<div dir="ltr">Thanks Steve.<div><br></div><div style>It would have been nice if I can define [host|service]_notification_commands in the service definition. This way one can create notify-by-pager command that will use the pager directive in the contact definition.</div>
<div style><br></div><div style>Feature request I guess.</div><div style><br></div><div style>-- Peter</div><div class="gmail_extra"><br><div class="gmail_quote">On Tue, May 21, 2013 at 2:10 PM, Steven Carr <span dir="ltr"><<a href="mailto:sjcarr@gmail.com" target="_blank">sjcarr@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Yes, you create separate contacts. AFAIK there is no way to<br>
distinguish which alert method you want to use, so unless the user<br>
wants to be SMS'd about every notification you need to separate them<br>
out.<br>
<div><div class="h5"><br>
<br>
On 21 May 2013 21:49, Peter Wood <<a href="mailto:peterwood.sd@gmail.com">peterwood.sd@gmail.com</a>> wrote:<br>
> Hi,<br>
><br>
> I have two services monitoring http on two servers:<br>
>   http on server1 - Email notifications<br>
>   http on server2 - Email + SMS notifications<br>
><br>
> Http on server1 is not critical and notifications should go out via email.<br>
> Http on server2 is critical and notifications should go out via email and<br>
> SMS.<br>
><br>
> The only place where I can setup how an user should be contacted is in the<br>
> contact definition.<br>
><br>
> Does that mean I have to create two contact definitions for each user: one<br>
> for email notifications and one for sms notifications?<br>
><br>
> For example:<br>
><br>
> define contact {<br>
>   contact_name user1<br>
>   ...<br>
>   email <a href="mailto:user1@company.com">user1@company.com</a><br>
>   }<br>
><br>
> define contact {<br>
>   contact_name user1-sms<br>
>   ...<br>
>   email <phone number>@<a href="http://txt.att.net" target="_blank">txt.att.net</a>  ; I have AT&T but it can be any other<br>
> email-to-sms service<br>
> }<br>
><br>
> define service {<br>
>   host_name server1<br>
>   ...<br>
>   contacts user1<br>
> }<br>
><br>
> define service {<br>
>   host_name server2<br>
>   ...<br>
>   contacts user1-sms<br>
> }<br>
><br>
> Am I missing something? Is there a way to do it without creating two contact<br>
> definitions for the same user?<br>
><br>
> Thanks,<br>
><br>
> -- Peter<br>
><br>
</div></div>> ------------------------------------------------------------------------------<br>
> Try New Relic Now & We'll Send You this Cool Shirt<br>
> New Relic is the only SaaS-based application performance monitoring service<br>
> that delivers powerful full stack analytics. Optimize and monitor your<br>
> browser, app, & servers with just a few lines of code. Try New Relic<br>
> and get this awesome Nerd Life shirt! <a href="http://p.sf.net/sfu/newrelic_d2d_may" target="_blank">http://p.sf.net/sfu/newrelic_d2d_may</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<br>
> any issue.<br>
> ::: Messages without supporting info will risk being sent to /dev/null<br>
<br>
------------------------------------------------------------------------------<br>
Try New Relic Now & We'll Send You this Cool Shirt<br>
New Relic is the only SaaS-based application performance monitoring service<br>
that delivers powerful full stack analytics. Optimize and monitor your<br>
browser, app, & servers with just a few lines of code. Try New Relic<br>
and get this awesome Nerd Life shirt! <a href="http://p.sf.net/sfu/newrelic_d2d_may" target="_blank">http://p.sf.net/sfu/newrelic_d2d_may</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></div>