[Nagios-users] nagios notification to different email address
List, 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. Nagios version: 3.2 Ndoutils version: 1.4.8 define hostescalation{ hostgroup_namehostgroup A, hostgroup B contact_groups nocemail first_notification -1 last_notification 0 notification_interval 15 escalation_period 24x7 escalation_options d,r } -- Cordially, Shadhin Rahman -- Come build with us! The BlackBerryreg; 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#45;12, 2009. Register now#33; http://p.sf.net/sfu/devconf___ Nagios-users mailing list Nagios-users@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
Re: [Nagios-users] nagios notification to different email address
On Sep 22, 2009, at 1:04 PM, shadih rahman wrote: List, 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. I don't recall seeing this functionality discussed, nor do I find anything glancing through the documentation. I could be dense though. Can you provide a reference? -- Marc -- Come build with us! The BlackBerryreg; 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#45;12, 2009. Register now#33; http://p.sf.net/sfu/devconf ___ Nagios-users mailing list Nagios-users@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
Re: [Nagios-users] nagios notification to different email address
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 BlackBerryreg; 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#45;12, 2009. Register now#33; http://p.sf.net/sfu/devconf ___ Nagios-users mailing list Nagios-users@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
Re: [Nagios-users] nagios notification to different email address
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_period24x7 check_interval 15 retry_interval 3 max_check_attempts 3 notification_period extended notification_interval 30 notification_optionsd,r,f notifications_enabled 1 check_command check-host-alive } I have a host escalation definition define hostescalation{ hostgroup_nameX 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 m...@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 BlackBerryreg; 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#45;12, 2009. Register now#33; http://p.sf.net/sfu/devconf ___ Nagios-users mailing list Nagios-users@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 -- Come build with us! The BlackBerryreg; 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#45;12, 2009. Register now#33; http://p.sf.net/sfu/devconf___ Nagios-users mailing list Nagios-users@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
Re: [Nagios-users] nagios notification to different email address
On Tue, Sep 22, 2009 at 2:38 PM, shadih rahman shadhi...@gmail.com wrote: 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 Is there a reason why you can't put contact group D in host A? -Mike -- Come build with us! The BlackBerryreg; 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#45;12, 2009. Register now#33; http://p.sf.net/sfu/devconf___ Nagios-users mailing list Nagios-users@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
Re: [Nagios-users] nagios notification to different email address
On Tue, Sep 22, 2009 at 3:26 PM, shadih rahman shadhi...@gmail.com wrote: D can not be part of the original definition. host definition is generated via script which will only include contact C. However alert needs to go to D without bothering contactgroup C On Tue, Sep 22, 2009 at 5:19 PM, Michael Saldivar mike.saldi...@advocatecreditrepair.com wrote: On Tue, Sep 22, 2009 at 2:38 PM, shadih rahman shadhi...@gmail.comwrote: 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 Is there a reason why you can't put contact group D in host A? -Mike Please use reply-all to keep replies on the list. Unfortunately, I do not know of any way to send notifications to to a group without defining the host to send notifications to that group. I'd lean towards fixing the script so that it writes configurations to contact the correct group, rather than having it write incorrect configs and then tweaking Nagios to compensate. Perhaps you could accomplish this by defining an escalation which skips the first notification to group C, and then sends only one notification to group D. Does your script generate the escalation configs also? -- Mike Saldivar Direct Financial Solutions Information Systems Manager Desk: 435-774-8252 Cell: 435-881-3778 -- Come build with us! The BlackBerryreg; 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#45;12, 2009. Register now#33; http://p.sf.net/sfu/devconf___ Nagios-users mailing list Nagios-users@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