Issue with Contacts and Notifications

Beau Walker bwalker at sharefax.org
Tue Apr 29 16:05:37 CEST 2008


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                           bwalker at sharefax.local  ;
<<***** CHANGE THIS TO YOUR EMAIL ADDRESS ******
        }

define contact{
        contact_name                    beau-cell
        use                             generic-contact
        alias                           Beau's Cingular Cell
        email                           EMAIL at gmail.com
}

define contact{
        contact_name                    itdeptemail
		use                             generic-contact
        alias                           IT Department Email Only
        email                           EMAIL at sharefax.local
}

########################################################################
#######
########################################################################
#######
#
# 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: nagios-users-bounces at lists.sourceforge.net
[mailto:nagios-users-bounces at lists.sourceforge.net] On Behalf Of Matthew
Macdonald-Wallace
Sent: Tuesday, April 29, 2008 9:45 AM
To: nagios-users at lists.sourceforge.net
Subject: Re: [Nagios-users] Issue with Contacts and Notifications

On Tue, 29 Apr 2008 09:36:42 -0400
"Beau Walker" <bwalker at sharefax.org> 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
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

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