LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 02-12-2013, 08:58 AM   #1
Springs
Member
 
Registered: Apr 2008
Posts: 73

Rep: Reputation: 0
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?
 
Old 02-13-2013, 10:37 AM   #2
Habitual
LQ Veteran
 
Registered: Jan 2011
Location: Abingdon, VA
Distribution: Catalina
Posts: 9,374
Blog Entries: 37

Rep: Reputation: Disabled
"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...
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] What is the effect of adding a user to my contacts? stf92 LQ Suggestions & Feedback 4 12-11-2010 11:19 AM
Pidgin issues (omega.contacts.msn.com) Mentallydull Linux - Software 4 11-25-2010 05:46 PM
Grub2 with Ubuntu 10.04 adding additional OS's mtooze Linux - Newbie 6 09-11-2010 03:52 PM
Adding additional repository uwa45 Linux - Distributions 1 06-05-2010 11:36 AM
Adding Additional Network Cards CRF Linux - Networking 4 06-05-2001 02:52 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 12:17 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration