Below is an example:
Code: Select all
define service{
name chk-bkgnd-jobs
service_description check-background-jobs
check_command check_nrpe_arg!run_check!check_background_jobs
check_interval 30
retry_interval 5
contacts alerts-critical
register 0
}
Code: Select all
# Application Service Definition - Template
define service{
name App-service
use distributed-service
notifications_enabled 1 ; Service notifications are DISABLED
# notification_options w,u,c,r ; Send notifications about warning, unknown, critical, and recovery events
notification_interval 30 ; Re-notify about service problems every hour
# notification_period 24x7
register 0
}
Code: Select all
define service{
name location-check-service
use BASE-location-service
normal_check_interval 5
retry_check_interval 5
check_period locationTime
notification_period locationTime
notification_options c,r
contacts OperationsLocation
# contact_groups Location-Live,Location-chk
register 0
}
Code: Select all
define service{
use App-service, location-check-service,chk-bkgnd-jobs
host_name HOST01
}
The App-Serivice definition, ensures that the the checks are reported to the central nagios server.
The location-check-serivce specifies the location, and type of check (front end, back end, database)
The chk-bkgnd-jobs is the actual service check definition.
The Problem
Notification contacts are specified in location-check-service, and for the specific service check definition.
The notifications are only sent to the contacts, specified in the location-check-service
Can anybody help me here?
Thanks,
Mitchell