If your notification command sorts out whether to page or email, why not have it handle empty pager addresses? Just remove the pager address from the contacts that shouldn't get pages, and you should be fine.<br><br>However I usually like and recommend separate contacts, one per contact method, as this allows you to be more flexible in setting up escalation chains etc. as well as removing ambiguity as to how a contact was notified.<br>
<br>Regards,<br>Martin Melin<br><br><div class="gmail_quote">On Tue, Nov 3, 2009 at 6:06 PM, Terry <span dir="ltr"><<a href="mailto:td3201@gmail.com">td3201@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Sorry for the bad subject.  Not sure how to classify this properly.<br>
<br>
I have a single contact definition for each contact:<br>
<br>
define contact{<br>
        contact_name                    <a href="mailto:jo@hotmail.com">jo@hotmail.com</a><br>
        alias                           John Doe<br>
        service_notification_period     24x7<br>
        host_notification_period        24x7<br>
        service_notification_options    w,u,c,r<br>
        host_notification_options       d,u,r<br>
        service_notification_commands   notification-wrapper-service<br>
        host_notification_commands      notification-wrapper-host<br>
        email                           <a href="mailto:jo@hotmail.com">jo@hotmail.com</a><br>
        pager                           <a href="mailto:1231231234@vtext.com">1231231234@vtext.com</a><br>
        can_submit_commands             1<br>
        }<br>
<br>
<br>
This works pretty well.  The command sorts out whether to page or to<br>
email, however, in the event I want to disable pages only for this<br>
contact, I can't figure out how to do it without separate contacts<br>
like this:<br>
<br>
define contact{<br>
        contact_name                   jdoe-email<br>
        alias                           jdoe-email<br>
        service_notification_period     24x7<br>
        host_notification_period        24x7<br>
        service_notification_options    w,u,c,r<br>
        host_notification_options       d,u,r<br>
        service_notification_commands   notify-by-email<br>
        host_notification_commands      host-notify-by-email<br>
        email                           <a href="mailto:jo@hotmail.com">jo@hotmail.com</a><br>
        }<br>
<br>
define contact{<br>
        contact_name                    jdoe-epager<br>
        alias                           jdoe-epager<br>
        service_notification_period     none<br>
        host_notification_period        none<br>
        service_notification_options    c,r<br>
        host_notification_options       d,r<br>
        service_notification_commands   notify-by-epager<br>
        host_notification_commands      host-notify-by-epager<br>
        email                           <a href="mailto:1231231234@vtext.com">1231231234@vtext.com</a><br>
        }<br>
<br>
With the above, I can simply set the notification period to none and<br>
thus pages are disabled.   Can anyone think of another way to do this,<br>
other than timeperiods?   Keep in mind, that I still may want critical<br>
emails, just not pages.<br>
<br>
Thanks!<br>
<br>
------------------------------------------------------------------------------<br>
Come build with us! The BlackBerry(R) Developer Conference in SF, CA<br>
is the only developer event you need to attend this year. Jumpstart your<br>
developing skills, take BlackBerry mobile applications to market and stay<br>
ahead of the curve. Join us from November 9 - 12, 2009. Register now!<br>
<a href="http://p.sf.net/sfu/devconference" target="_blank">http://p.sf.net/sfu/devconference</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>