nagios only alerting 1 contact
Stephen Patterson
steve at patter.mine.nu
Tue Oct 5 13:15:43 CEST 2004
I have nagios (with postgres) set up with several defined contacts and
contactgroups, and have (until recently) for testing had it configured
to alert everything to nagiosadmin, and though I have changed it to
alert everything to several hostgroups it still continues to alert
evrything to nagiosadmin.
The notifications log lists all notifications for notify-by-email and
host-notify-by-email as having been only sent to nagiosadmin.
I've checked over the config several times, and each hostgroup and
service is set to alert several contactgroups.
The configuration that I'm using is as follows, so any ideas?
# standard host template
define host {
name default
notifications_enabled 1
event_handler_enabled 1
flap_detection_enabled 0
process_perf_data 1
retain_status_information 1
retain_nonstatus_information 1
max_check_attempts 5
notification_interval 0 # don't send reminders
notification_period 24x7
notification_options d,u,r
check_command check-host-alive
register 0
}
# sample host
define host {
host_name CNE-ROUTER1
use default
address 192.168.253.1
alias CNE Router 1
parents CNE-12-CS2
}
# service template
define service{
; The 'name' of this service template, referenced in other service definitions
name generic-service
active_checks_enabled 1
passive_checks_enabled 1
parallelize_check 1
check_freshness 1
notifications_enabled 1
event_handler_enabled 1
flap_detection_enabled 0
process_perf_data 1
retain_status_information 1
retain_nonstatus_information 1
max_check_attempts 5
normal_check_interval 5
retry_check_interval 1
check_period 24x7
contact_groups itservicedesk
notification_interval 0
notification_period 24x7
notification_options w,c,r
notification_period 24x7
notification_options w,c,r
register 0
}
# sample service
define service {
name generic-ping
use generic-service
check_command check-host-alive
register 0
}
define service{
use generic-ping
host_name CNE-ROUTER1
service_description PING
}
# hostgroup definition for this host
define hostgroup {
hostgroup_name switches_cne
alias Ciscos - CNE
contact_groups network-admins,itservicedesk
members
CNE-ROUTER1
}
--
Stephen Patterson http://patter.mine.nu/
steveSPAM at .patter.mine.nu remove SPAM to reply
Linux Counter No: 142831 GPG Public key: 252B8B37
Caution: breathing may be hazardous to your health.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
URL: <https://www.monitoring-lists.org/archive/users/attachments/20041005/8d2a056c/attachment.sig>
More information about the Users
mailing list