You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ambari.apache.org by Artem Ervits <ar...@nyp.org> on 2014/11/20 16:50:43 UTC

configure additional contacts in Nagios

Hello,

I'm trying to add additional contacts to Nagios and I can't seem to find a way to do so. Is that supported?

Artem Ervits
New York Presbyterian


This electronic message is intended to be for the use only of the named recipient, and may contain information that is confidential or privileged.  If you are not the intended recipient, you are hereby notified that any disclosure, copying, distribution or use of the contents of this message is strictly prohibited.  If you have received this message in error or are not the named recipient, please notify us immediately by contacting the sender at the electronic mail address noted above, and delete and destroy all copies of this message.  Thank you.

Re: configure additional contacts in Nagios

Posted by Yusaku Sako <yu...@hortonworks.com>.
This isn't directly supported via the Ambari Web UI, but you can modify the
following template on the Ambari Server host:
/var/lib/ambari-server/resources/stacks/HDP/2.0.6/services/NAGIOS
/package/templates/contacts.cfg.j2

1) Add customized contact
It should look something like:

define contact {
        contact_name    mycontact                                        ;
Short name of user
        use             generic-contact
        ; Inherit default values from generic-contact template (defined
above)
        alias           Nagios Admin
         ; Full name of user
        email          myemail@gmail.com      ; <--- CHANGE THIS TO YOUR
EMAIL ADDRESS
}

define contactgroup {
        contactgroup_name       admins
        alias                   Nagios Administrators
        members                 nagiosadmin,sys_logger,mycontact  <-- ADD
NEWLY DEFINED CONTACT HERE
}

2) Restart ambari-server and restart Nagios from Ambari Web
3) Verify that /etc/nagios/objects/contacts.cfg on the Nagios Server host
has the updated info.

http://nagios.sourceforge.net/docs/3_0/objectdefinitions.html for more info
on configuring contacts.

BTW, upcoming Ambari 2.0 will introduce a flexible alerting system,
including multiple notification targets and a fine-grained control of who
receives what type of alerts for which severities, etc (this is partially
working in trunk, though a lot of it is still WIP).

Thanks,
Yusaku


On Thu, Nov 20, 2014 at 7:50 AM, Artem Ervits <ar...@nyp.org> wrote:

>  Hello,
>
>
>
> I’m trying to add additional contacts to Nagios and I can’t seem to find a
> way to do so. Is that supported?
>
>
>
> Artem Ervits
>
> New York Presbyterian
>
>
>
> This electronic message is intended to be for the use only of the named
> recipient, and may contain information that is confidential or privileged.
> If you are not the intended recipient, you are hereby notified that any
> disclosure, copying, distribution or use of the contents of this message is
> strictly prohibited. If you have received this message in error or are not
> the named recipient, please notify us immediately by contacting the sender
> at the electronic mail address noted above, and delete and destroy all
> copies of this message. Thank you.
>

-- 
CONFIDENTIALITY NOTICE
NOTICE: This message is intended for the use of the individual or entity to 
which it is addressed and may contain information that is confidential, 
privileged and exempt from disclosure under applicable law. If the reader 
of this message is not the intended recipient, you are hereby notified that 
any printing, copying, dissemination, distribution, disclosure or 
forwarding of this communication is strictly prohibited. If you have 
received this communication in error, please contact the sender immediately 
and delete it from your system. Thank You.