Add users to contact group

Kumar, Ashish xml.devel at gmail.com
Mon Mar 30 10:04:06 CEST 2009


> I would like to add my Active Directory users to nagios contact group.
> I have edited /etc/nagios/objects/contacts.cfg file and added:
>
> define contactgroup{
>        contactgroup_name       ad
>        alias                      ad
>        members                 user1, user2
>        }

first you have to define user1 and user2 in your
/etc/nagios/objects/contacts.cfg

define contact{
       contact_name     user1
       use                     generic-contact
       alias                    user1
       email                   user1 at example.com
}

define contact{
       contact_name            user2
       use                     generic-contact
       alias                   user2
       email                   user2 at example.com
}


> On the same file I defined contact:
>
> define contact{
>        contact_name            ad
>        use                     generic-contact
>        alias                   ad
>        email                   email
> }


then define the contactgroup

define contactgroup{
       contactgroup_name       ad
       alias                   ad
       members                 user1, user2
       }

------------------------------------------------------------------------------
_______________________________________________
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