[Nagios-users] Notifications to unknown user for services with disabled notify

2009-01-16 Thread Markus Schreier
Hello all,

i'm new to the list even though i'm not new to nagios. I've taken over an 
installation on an ubuntu -linux  and made local emails (to root or to nagios) 
being forwarded to some administration account. This made me realize some 
enormous email-traffic:

My nagios-service sends notify-mails to the Mailadresse $ on the local host.  
This happens even for services with disabled notifications. 
Host and service-notifications are affected.

All configured contacts have mailadresses and get notified as configured. At 
least i did not see anything else.

I've updated from nagios 3.0.3 to nagios 3.0.6 to get rid of this nasty 
behavior. But the problem still exists.

The following contacts are configured:
ServiceCenter, governikusadmins, mschreier , nagiosadmin, neumann, nowatzki, 
owinkelmann, reiher, reuleke, thegovadm
All contacts have mailaddresses.

And the following contact-groups:

ServiceCenter: neumann , reuleke , ServiceCenter
governikus-admins: governikusadmins
iuk: owinkelmann , reiher
nagios-admins: mschreier
ocs-admins: nowatzki
ziv-admins: thegovadm


The problem happens with at least 8 different Services.
Most of them have passive checks enabled, one is an active check. - This does 
not seem relevant.
I've the impression, notifications to $ are only send out, in 
notification-disabled state. 
Most of the services have notifications disabled. One has notifications enabled 
but the service-time is disabling notifications on night time.

My notify-by-email command looks like this:
notify-service-by-email /bin/sh $USER1$/service_notification.template | 
/usr/bin/mail -s $NOTIFICATIONTYPE$ Service Alert: $SERVICEDESC$ is 
$SERVICESTATE$ on $HOSTALIAS$ $CONTACTEMAIL$

notify-host-by-email /usr/bin/printf %b * Nagios 
*\n\nNotification Type: $NOTIFICATIONTYPE$\nHost: $HOSTALIAS$ 
($HOSTNAME$)\nState: $HOSTSTATE$ (vorher $LASTHOSTSTATE$)\nAddress: 
$HOSTADDRESS$\nInfo: $HOSTOUTPUT$\n\nDate/Time: $LONGDATETIME$\n | 
/usr/bin/mail -s $NOTIFICATIONTYPE$ Host Alert: $HOSTALIAS$ 
($HOSTDISPLAYNAME$) is $HOSTSTATE$ $CONTACTEMAIL$



Why are there notifications being send if disabled for this service?
Where does the mailadress $ come from?

thanks in advance,

Markus


@list-moderator: I've posted a similar email yesterday, but my account was not 
ready jet. Sorry for being impatient.
-- 
Markus Schreier
Erfurt, Germany
-- 
Pt! Schon vom neuen GMX MultiMessenger gehört? Der kann`s mit allen: 
http://www.gmx.net/de/go/multimessenger

-- 
Pt! Schon vom neuen GMX MultiMessenger gehört? Der kann`s mit allen: 
http://www.gmx.net/de/go/multimessenger

--
This SF.net email is sponsored by:
SourcForge Community
SourceForge wants to tell your story.
http://p.sf.net/sfu/sf-spreadtheword
___
Nagios-users mailing list
Nagios-users@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


Re: [Nagios-users] Notifications to unknown user for services with disabled notify

2009-01-16 Thread Markus Schreier
Hello Marc,
thanks for your reply. 
yes you are wright. My notify-commands are put in as event-handler for all 
hosts and all services. I will just remove the event_handler line. I also set 
event_handler_enabled to 0 and all should be fine.

Again, thank you

best regards,
Markus

I put in a host and a service definition, just to be complete:
define  host {
host_name   hostname.domain.de
alias   Serviceportal VIP
address x.y.z
parents kp-sp-proxy
check_command   check_http_proxy_ping
max_check_attempts  3
active_checks_enabled   1
passive_checks_enabled  0
check_period24x7
obsess_over_host1
check_freshness 1
event_handler   notify-host-by-email
event_handler_enabled   1
flap_detection_enabled  1
failure_prediction_enabled  1
process_perf_data   0
retain_status_information   1
retain_nonstatus_information1
contact_groups  nagios-admins,ServiceCenter,ziv-admins
notification_interval   60
notification_period arbeitszeitrufbereit
notification_optionsd,u,r,f
notifications_enabled   1
register1
}

define  service {
host_name   hostname.domain.de
service_description Serviceportal Login VIP
servicegroups   webbased
is_volatile 0
check_command   
check_serviceplattform!serviceplattform_eprtlogin.conf
max_check_attempts  3
normal_check_interval   5
retry_check_interval2
active_checks_enabled   1
passive_checks_enabled  0
check_period24x7
parallelize_check   1
obsess_over_service 1
check_freshness 0
event_handler   notify-service-by-email
event_handler_enabled   1
flap_detection_enabled  1
failure_prediction_enabled  1
process_perf_data   1
retain_status_information   1
retain_nonstatus_information1
contact_groups  nagios-admins,ServiceCenter,ziv-admins
notification_interval   60
notification_period arbeitszeitrufbereit
notification_optionsw,u,c,r,f
notifications_enabled   1
register1
}


 Original-Nachricht 
 Datum: Fri, 16 Jan 2009 07:21:28 -0600
 Von: Marc Powell m...@ena.com
 An: nagios-users Mailinglist nagios-users@lists.sourceforge.net
 Betreff: Re: [Nagios-users] Notifications to unknown user for services with   
 disabled notify

 
 On Jan 16, 2009, at 3:46 AM, Markus Schreier wrote:
 
  Hello all,
 
  i'm new to the list even though i'm not new to nagios. I've taken  
  over an installation on an ubuntu -linux  and made local emails (to  
  root or to nagios) being forwarded to some administration account.  
  This made me realize some enormous email-traffic:
 
 Hello and welcome. =)
 
 
  My nagios-service sends notify-mails to the Mailadresse $ on the  
  local host.  This happens even for services with disabled  
  notifications.
  Host and service-notifications are affected.
 
 
  Why are there notifications being send if disabled for this service?
  Where does the mailadress $ come from?
 
 A complete example host and service definition would be helpful. My  
 guess is that you have your notification commands specified as an  
 event_handler.
 
 http://thread.gmane.org/gmane.network.nagios.user/58877
 
 --
 Marc
 
 --
 This SF.net email is sponsored by:
 SourcForge Community
 SourceForge wants to tell your story.
 http://p.sf.net/sfu/sf-spreadtheword
 ___
 Nagios-users mailing list
 Nagios-users@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

-- 
Sensationsangebot verlängert: GMX FreeDSL - Telefonanschluss + DSL 
für nur 16,37 Euro/mtl.!* http://dsl.gmx.de/?ac=OM.AD.PD003K1308T4569a

--
This SF.net email is sponsored by:
SourcForge Community
SourceForge wants to tell your story.
http://p.sf.net/sfu/sf-spreadtheword