Hello,
I currently have Nagios setup to notify us every 5 minutes on critical for services until the issue is resolved. What I would like to do and find out is if it is possible to create an additional service that is setup for warnings in which the warning is only sent once. I’ve tried setting up two services, one for critical and one for warnings, then creating a separate service which references the two but it doesn’t seem to work. I would appreciate any help on how to get this working.
Thanks
Here is what I have setup:
define host{
name server1-host
check_command check-host-alive
max_check_attempts 3
notification_interval 5
notification_period 24x7
notification_options d,u,r
register 0
}
define service{
name server1-service
active_checks_enabled 1
passive_checks_enabled 1
parallelize_check 1
obsess_over_service 1
check_freshness 0
notifications_enabled 1
event_handler_enabled 1
flap_detection_enabled 0
process_perf_data 1
retain_status_information 1
retain_nonstatus_information 1
is_volatile 0
check_period 24x7
max_check_attempts 3
normal_check_interval 5
retry_check_interval 1
contact_groups sysadmins
notification_interval 5
notification_period 24x7
notification_options c,r
register 0
}
define service{
name server1-warning
active_checks_enabled 1
passive_checks_enabled 1
parallelize_check 1
obsess_over_service 1
check_freshness 0
notifications_enabled 1
event_handler_enabled 1
flap_detection_enabled 0
process_perf_data 1
retain_status_information 1
retain_nonstatus_information 1
is_volatile 0
check_period 24x7
max_check_attempts 1
normal_check_interval 5
retry_check_interval 1
contact_groups sysadmins
notification_interval 0
notification_period 24x7
notification_options w,r
register 0
}
#HOSTGROUP
define hostgroup{
hostgroup_name server1
alias server1
members server1.site.com
}
#HOSTS
define host{
use server1-host
contact_groups sysadmins
host_name server1.site.com
alias server1.site.com
check_command check-host-alive-ssh
}
#SERVICES
define service{
use server1-service,server1-warning
host_name server1.site.com
contact_groups sysadmins
service_description Check Disk Space
check_command check_nrpe!check_disk
}