Notifications when I don't want them

Ian Davidson mav at juniper.net
Fri Jun 20 19:21:22 CEST 2003


Hi All,

I've got a problem whereby although it appears (to me) that I've
disabled notifications for a particular service, I'm still getting
notification emails about it!
Maybe I've done something wrong...

I run a distributed monitoring system and manage all the config files
for all the remote servers on the central server (and rdist them out
when changes are made). On the central server I'ce created individual
remote-server files, eg>

Remote-server1-hosts.cfg, remote-server1-services.cfg
Remote-server2-hosts.cfg, remote-server2-services.cfg  and so on.

I call these files from the main nagios.cfg file.
cfg_file=/usr/local/nagios/etc/contactgroups.cfg
cfg_file=/usr/local/nagios/etc/contacts.cfg
cfg_file=/usr/local/nagios/etc/hostgroups.cfg
cfg_file=/usr/local/nagios/etc/global-services.cfg
cfg_file=/usr/local/nagios/etc/timeperiods.cfg

#CONFIG FILES RDIST'D  DISTRIBUTED SERVERS ########
cfg_file=/usr/local/nagios/etc/andretti-hosts.cfg
cfg_file=/usr/local/nagios/etc/andretti-services.cfg
cfg_file=/usr/local/nagios/etc/alesi-hosts.cfg
cfg_file=/usr/local/nagios/etc/alesi-services.cfg

I also have a   global-services.cfg  file which all servers get. In this
file I've setup a ping service and attributed all hosts to it using the
'*' wildcard. It's this ping notification that's driving me nuts. Below
is the  global-services.cfg file I'm using. I believe I've disabled all
the bits that would generate a notification...but I still get 'em. Any
ideas?

Cheers,

Ian

[root at schumi etc]# more global-services.cfg
########################################################################
########
# SERVICE DEFINITIONS
# SYNTAX:
########################################################################
########

# Generic service definition template
define service{
name                            
check_period                    24x7
max_check_attempts              3
normal_check_interval           3
retry_check_interval            1
notification_interval           120
notification_period             workhours
#notification_options            c,r
notification_options            n
active_checks_enabled           1
passive_checks_enabled          1
parallelize_check               1
obsess_over_service             1
check_freshness                 0
notifications_enabled           0
event_handler_enabled           0
flap_detection_enabled          1
process_perf_data               1
retain_status_information       1
retain_nonstatus_information    1
register                        0
}


# SERVICE DEFINITION FOR EMEA PING REQUESTS
define service{
service_description     check-ping
check_command           check_ping
use                     generic-service
contact_groups          null
host_name               *
}

--
Ian Davidson
IT Networking EMEA
Tel: +44-1372-385653
GSM: +44-7952-173703
Internal: 35653


-------------------------------------------------------
This SF.Net email is sponsored by: INetU
Attention Web Developers & Consultants: Become An INetU Hosting Partner.
Refer Dedicated Servers. We Manage Them. You Get 10% Monthly Commission!
INetU Dedicated Managed Hosting http://www.inetu.net/partner/index.php
_______________________________________________
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