Notification Alerts
Posted: Mon Mar 30, 2015 1:06 pm
Hello,
I' setting up a different notification alert setting for my dev servers to only aletr during business hours. I have the host configured to only alert on a work hour time period and service checks with disabled notification alerts, however we are still getting alerts outside of the host notification alerts settings.
- Can you see any incorrect setting?
- Is it required to have 2 contacts? (1 for 24/7 and another for desired time)
HOST:
define host {
host_name host1
address xxx.xx.xx.xx
max_check_attempts 5
check_interval 5
retry_interval 1
check_period workhours_linux
contacts nagiosadmin
contact_groups linuxadmin
notification_interval 60
notification_period workhours_linux
first_notification_delay 0
notification_options d,r,s,
notifications_enabled 1
icon_image hp_ux.png
statusmap_image hp_ux.png
_xiwizard linuxsnmp
register 1
}
Checks: notification alert is off in Alert settings tab)
define service {
service_description tmp Disk Usage
hostgroup_name hostgroup1 (host1 is a member of this group)
check_command check_nrpe!check_tmp!!!!!!!
max_check_attempts 3
check_interval 3
retry_interval 1
check_period 24x7
notification_interval 30
first_notification_delay 0
notifications_enabled 0
_xiwizard nrpe
register 1
}
CONTACt:
define contact {
contact_name linuxadmin
alias admin1
host_notifications_enabled 1
service_notifications_enabled 1
host_notification_period 24/7
service_notification_period 24/7
host_notification_options d,u,r,f,s,
service_notification_options c,r,s,
can_submit_commands 1
email email_address
use xi_contact_generic (service notifiaction is skipped on this template)
}
I' setting up a different notification alert setting for my dev servers to only aletr during business hours. I have the host configured to only alert on a work hour time period and service checks with disabled notification alerts, however we are still getting alerts outside of the host notification alerts settings.
- Can you see any incorrect setting?
- Is it required to have 2 contacts? (1 for 24/7 and another for desired time)
HOST:
define host {
host_name host1
address xxx.xx.xx.xx
max_check_attempts 5
check_interval 5
retry_interval 1
check_period workhours_linux
contacts nagiosadmin
contact_groups linuxadmin
notification_interval 60
notification_period workhours_linux
first_notification_delay 0
notification_options d,r,s,
notifications_enabled 1
icon_image hp_ux.png
statusmap_image hp_ux.png
_xiwizard linuxsnmp
register 1
}
Checks: notification alert is off in Alert settings tab)
define service {
service_description tmp Disk Usage
hostgroup_name hostgroup1 (host1 is a member of this group)
check_command check_nrpe!check_tmp!!!!!!!
max_check_attempts 3
check_interval 3
retry_interval 1
check_period 24x7
notification_interval 30
first_notification_delay 0
notifications_enabled 0
_xiwizard nrpe
register 1
}
CONTACt:
define contact {
contact_name linuxadmin
alias admin1
host_notifications_enabled 1
service_notifications_enabled 1
host_notification_period 24/7
service_notification_period 24/7
host_notification_options d,u,r,f,s,
service_notification_options c,r,s,
can_submit_commands 1
email email_address
use xi_contact_generic (service notifiaction is skipped on this template)
}