this is my host file config
Code: Select all
define host {
host_name test-condor-site
alias test-condor-site
address 172.16.37.44
check_command check-host-alive
max_check_attempts 5
check_interval 3
retry_interval 3
active_checks_enabled 1
check_period 24x7
contact_groups admins, admins-phone, first-call
notification_interval 3
notification_period 24x7
notification_options d
notifications_enabled 0
event_handler asteriks-host-phone-call
event_handler_enabled 0
}
define service {
host_name test-condor-site
service_description check-host-alive-or-not
check_command check-host-alive
max_check_attempts 5
check_interval 3
retry_interval 3
active_checks_enabled 1
check_period 24x7
contact_groups admins, admins-phone, first-call
notification_interval 3
notification_period 24x7
notification_options w,c
notifications_enabled 1
event_handler asteriks-service-phone-call
event_handler_enabled 1
}
what else should I check?
I was expected according to my service definition - after 4 SOFT states only the 5-th should be HARD
as you can see host definition has the same options and notifications work just fine
log file
Code: Select all
May 8 14:38:27 callme-crt-billing nagios: Finished daemonizing... (New PID=41761)
May 8 14:38:57 callme-crt-billing nagios: HOST ALERT: test-condor-site;DOWN;SOFT;1;PING CRITICAL - Packet loss = 100%
May 8 14:40:07 callme-crt-billing nagios: SERVICE ALERT: test-condor-site;check-host-alive-or-not;CRITICAL;HARD;1;PING CRITICAL - Packet loss = 100%
May 8 14:40:07 callme-crt-billing nagios: SERVICE EVENT HANDLER: test-condor-site;check-host-alive-or-not;CRITICAL;HARD;1;asteriks-service-phone-call