My problem,<br><br> I am trying to send a down and recovery message to a different contact group than what is defined in host definition. Also I want to send only one email to the new contact group. In the example below host A has contact group C defined. However I want send my notification to contact group D. Thanks<br>
<br><br><br> I have a host definiton like<br><br>define host {<br> host_name A<br> hostgroups X<br> alias A<br> address A<br> contact_groups C<br>
check_period 24x7<br> check_interval 15<br> retry_interval 3<br> max_check_attempts 3<br> notification_period extended<br> notification_interval 30<br>
notification_options d,r,f<br> notifications_enabled 1<br> check_command check-host-alive<br>}<br><br><br>I have a host escalation definition<br><br><br>define hostescalation{<br> hostgroup_name X<br>
contact_groups D<br> first_notification -1<br> last_notification 1<br> notification_interval 0<br> escalation_period 24x7<br> escalation_options d,r<br>}<br><br><br><div class="gmail_quote">
On Tue, Sep 22, 2009 at 4:14 PM, Marc Powell <span dir="ltr"><<a href="mailto:marc@ena.com">marc@ena.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;">
Please always respond on list. More below.<br>
<div class="im"><br>
On Sep 22, 2009, at 2:56 PM, shadih rahman wrote:<br>
<br>
>> It has been stated that one can send all notification send to a<br>
>> different email address by using negative value for parameter. I<br>
>> just wanted to know would the following setup work? please advise<br>
>> on this.<br>
>><br>
</div><div class="im">> It has been mentioned here. Please advise on this. Thanks<br>
><br>
> <a href="http://ideas.nagios.org/akira/dtd/12252-3955" target="_blank">http://ideas.nagios.org/akira/dtd/12252-3955</a><br>
<br>
</div>I'm not sure how you interpreted that to mean to put a '-1' for<br>
first_notification or even how it relates to your post. Your<br>
interpretation will not work AFAIK.<br>
<br>
The post you reference is about limiting the maximum number of<br>
notifications sent to a contact. Your original question appears to be<br>
asking about how to send all notifications to 'an email address'. They<br>
appear to be opposite problem statements.<br>
<br>
Please restate your question, being as clear as you can about what<br>
you're trying to accomplish. For example, does 'all notifications'<br>
mean all notifications nagios would normally send for a specific<br>
service or a notification for every single non-OK service check? Does<br>
it mean all notifications for any host or service should all go to an<br>
arbitrary e-mail address? Does 'to an e-mail address' mean to a<br>
defined contact who is already in a contactgroup for that service or<br>
some other address?<br>
<br>
On the face of it, it seems to me you might just need to define a new<br>
contact and associate them with the host/service they should receive<br>
notifications about.<br>
<br>
P.S. I don't use escalations so be sure to respond to the list so that<br>
you expose your question to people who are more familiar with them,<br>
should escalations end up being what you need.<br>
<div><div></div><div class="h5"><br>
--<br>
Marc<br>
<br>
<br>
------------------------------------------------------------------------------<br>
Come build with us! The BlackBerry® 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/devconf" target="_blank">http://p.sf.net/sfu/devconf</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>
</div></div></blockquote></div><br><br clear="all"><br>-- <br>Cordially,<br>Shadhin Rahman<br>