LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   Any Nagios Experts here? Issues with adding additional contacts. (https://www.linuxquestions.org/questions/linux-software-2/any-nagios-experts-here-issues-with-adding-additional-contacts-4175449813/)

Springs 02-12-2013 08:58 AM

Any Nagios Experts here? Issues with adding additional contacts.
 
Hi all,

I have nagios setup on a server and is working fine except for setting additional contacts / groups for certain configs.

I've checked my configs against what others are listing as the correct way in setting it up but it doesn't seem to work.

The following is my Contacts.cfg file
Code:

define contact{
        contact_name                    Person 1
        use                            generic-contact
        alias                          person1
        email                          email@domain.com
        }

define contact{
        contact_name                    Person 2
        service_notification_period    24x7
        host_notification_period        24x7
        service_notification_options    w,u,c,r,f,s
        host_notification_options      d,u,r,f,s
        service_notification_commands  notify-service-by-email
        host_notification_commands      notify-host-by-email
        email                          anotheremail@domain.com
        }

define contactgroup{
        contactgroup_name      admins
        alias                  Nagios Administrators
        members                nagiosadmin, Person 1
        }
#
define contactgroup{
        contactgroup_name      External-people
        alias                  External Group
        members                Person 1, Person 2
        }

And this is part of my Windows server config file
Code:

define host{
        use            windows-server  ; Inherit default values from a template
        host_name      Encoding-2      ; The name we're giving to this host
        alias          Encoding-2      ; A longer name associated with the host
        address        192.168.1.166  ; IP address of the host
        contact_groups  External-people
        }

At the moment only users named in the admins group is received.

Is there something configured somewhere else that i need to change?

Habitual 02-13-2013 10:37 AM

"contacts" and "contact_groups" can be defined anywhere in
Host definitions
Host group definitions
Service definitions
Service group definitions
Contact definitions
Contact group definitions

This discusses Object Inheritance in Nagios

They can be overridden so reading that really is a good idea.

Please let us know...


All times are GMT -5. The time now is 01:50 PM.