It's pretty simple, and I've also never gotten the "Send custom service
notification" to work either.

# CONTACTS
#
########################################################################
#######
########################################################################
#######

# Just one contact defined by default - the Nagios admin (that's you)
# This contact definition inherits a lot of default values from the
'generic-contact'
# template which is defined elsewhere.

define contact{
        contact_name                    nagiosadmin             ; Short
name of user
        use                             generic-contact         ;
Inherit default values from generic-contact template (defined above)
        alias                           Beau Walker             ; Full
name of user
        email                           [EMAIL PROTECTED]  ;
<<***** CHANGE THIS TO YOUR EMAIL ADDRESS ******
        }

define contact{
        contact_name                    beau-cell
        use                             generic-contact
        alias                           Beau's Cingular Cell
        email                           [EMAIL PROTECTED]
}

define contact{
        contact_name                    itdeptemail
                use                             generic-contact
        alias                           IT Department Email Only
        email                           [EMAIL PROTECTED]
}

########################################################################
#######
########################################################################
#######
#
# CONTACT GROUPS
#
########################################################################
#######
########################################################################
#######

# We only have one contact in this simple configuration file, so there
is
# no need to create more than one contact group.

define contactgroup{
        contactgroup_name       admins
        alias                   Nagios Administrators
        members                 nagiosadmin
        }

define contactgroup{
        contactgroup_name       itdept
        alias                   IT Department Email Only
        members                 beau-cell,nagiosadmin



-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Matthew
Macdonald-Wallace
Sent: Tuesday, April 29, 2008 9:45 AM
To: [email protected]
Subject: Re: [Nagios-users] Issue with Contacts and Notifications

On Tue, 29 Apr 2008 09:36:42 -0400
"Beau Walker" <[EMAIL PROTECTED]> wrote:

> I cannot for the life of me get nagios to send notifications to anyone
> that's NOT in the 'admins' group.  Also, in the web interface, it
> lists every contact twice, even nagiosadmin.
> 
>  
> 
> I've gone into templates.cfg and replaced 'admins' with 'itdept' and
> it still sends to 'admins' and nothing else.  I've run the check with
> no errors and bounced the process.  
> 
>  
> 
> Under the notifications section of the web interface, it only lists
> 'admins' as well, so I don't believe it's an email issue, especially
> since if I put members from 'itdept' in 'admins', they receive the
> notificationsnotifications.

Sounds silly, but have you restarted Nagios after you've made the
changes? I've noticed on some of our test boxes that sometimes you need
to stop Nagios, then check that it truly has stopped (ps ax | grep
nagios should only return the "grep" command) and then restart it.

If you have already done this, can you post your nagios config files
for notifications?

Cheers,

M
-- 
|Matthew Macdonald-Wallace
|Tiger Computing Ltd
|"The Linux Specialists"
|
|Tel: 0330 088 1511
|Web: http://www.tiger-computing.co.uk
|
|Registered in England. Company number: 3389961
|Registered address: Wyastone Business Park,
| Wyastone Leys, Monmouth, NP25 3SR

------------------------------------------------------------------------
-
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference 
Don't miss this year's exciting event. There's still time to save $100. 
Use priority code J8TL2D2. 
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/j
avaone
_______________________________________________
Nagios-users mailing list
[email protected]
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

-------------------------------------------------------------------------
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference 
Don't miss this year's exciting event. There's still time to save $100. 
Use priority code J8TL2D2. 
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
_______________________________________________
Nagios-users mailing list
[email protected]
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

Reply via email to