nagios notification to different email address

shadih rahman shadhin71 at gmail.com
Tue Sep 22 22:38:24 CEST 2009


My problem,

     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



    I have a host definiton like

define host {
        host_name               A
        hostgroups             X
        alias                   A
        address               A
        contact_groups          C
        check_period            24x7
        check_interval          15
        retry_interval          3
        max_check_attempts      3
        notification_period     extended
        notification_interval   30
        notification_options    d,r,f
        notifications_enabled   1
        check_command           check-host-alive
}


I have a host escalation definition


define hostescalation{
    hostgroup_name        X
    contact_groups         D
    first_notification     -1
    last_notification      1
    notification_interval  0
    escalation_period      24x7
    escalation_options     d,r
}


On Tue, Sep 22, 2009 at 4:14 PM, Marc Powell <marc at ena.com> wrote:

> Please always respond on list. More below.
>
> On Sep 22, 2009, at 2:56 PM, shadih rahman wrote:
>
> >>  It has been stated that one can send all notification send to a
> >>  different email address by using negative value for parameter.    I
> >>  just wanted to know would the following setup work?  please advise
> >>  on this.
> >>
> > It has been mentioned here.  Please advise on this.  Thanks
> >
> > http://ideas.nagios.org/akira/dtd/12252-3955
>
> I'm not sure how you interpreted that to mean to put a '-1' for
> first_notification or even how it relates to your post. Your
> interpretation will not work AFAIK.
>
> The post you reference is about limiting the maximum number of
> notifications sent to a contact. Your original question appears to be
> asking about how to send all notifications to 'an email address'. They
> appear to be opposite problem statements.
>
> Please restate your question, being as clear as you can about what
> you're trying to accomplish. For example, does 'all notifications'
> mean all notifications nagios would normally send for a specific
> service or a notification for every single non-OK service check? Does
> it mean all notifications for any host or service should all go to an
> arbitrary e-mail address? Does 'to an e-mail address' mean to a
> defined contact who is already in a contactgroup for that service or
> some other address?
>
> On the face of it, it seems to me you might just need to define a new
> contact and associate them with the host/service they should receive
> notifications about.
>
> P.S. I don't use escalations so be sure to respond to the list so that
> you expose your question to people who are more familiar with them,
> should escalations end up being what you need.
>
> --
> Marc
>
>
>
> ------------------------------------------------------------------------------
> Come build with us! The BlackBerry® Developer Conference in SF, CA
> is the only developer event you need to attend this year. Jumpstart your
> developing skills, take BlackBerry mobile applications to market and stay
> ahead of the curve. Join us from November 9-12, 2009. Register now!
> http://p.sf.net/sfu/devconf
> _______________________________________________
> Nagios-users mailing list
> Nagios-users at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/nagios-users
> ::: Please include Nagios version, plugin version (-v) and OS when
> reporting any issue.
> ::: Messages without supporting info will risk being sent to /dev/null
>



-- 
Cordially,
Shadhin Rahman
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.monitoring-lists.org/archive/users/attachments/20090922/27d5b794/attachment.html>
-------------- next part --------------
------------------------------------------------------------------------------
Come build with us! The BlackBerry® Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9-12, 2009. Register now!
http://p.sf.net/sfu/devconf
-------------- next part --------------
_______________________________________________
Nagios-users mailing list
Nagios-users at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. 
::: Messages without supporting info will risk being sent to /dev/null


More information about the Users mailing list