Hi Guys I am New to Nagios and I am Working on Service Escalation and it never worked for me.
My Nagios Configuration is,
Host Escalation work Perfect for me. I couldn’t figure out where i went wrong so please help me.
define host{
name net-printer
notifications_enabled 1
event_handler_enabled 1
flap_detection_enabled 1
failure_prediction_enabled 1
process_perf_data 1
retain_status_information 1
retain_nonstatus_information 1
notification_period 24x7
check_period 24x7
check_interval 5
retry_interval 1
max_check_attempts 5
check_command check-host-alive
notification_interval 5
notification_options d,u,r
contact_groups sysadmingrp
host_groups network-printers
register 0
}
define hostgroup{
hostgroup_name network-printers
alias Network Printers
members hplj4350
}
define service{
name generic-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 1
failure_prediction_enabled 1
process_perf_data 1
retain_status_information 1
retain_nonstatus_information 1
is_volatile 0
check_period 24x7
max_check_attempts 5
normal_check_interval 2
retry_check_interval 1
contact_groups sysadmingrp
notification_options c,u,r
notification_interval 2
notification_period 24x7
register 0
}
define host{
use net-printer
host_name hplj4350
alias HP LaserJet 4350
address 192.168.1.23
}
define hostescalation{
host_name hplj4350
first_notification 3
last_notification 0
notification_interval 5
contact_groups verismo-admin
}
define service{
use generic-service
host_name hplj4350
service_description NetworkPrinterHealth
check_command check_hpjd!-C public
}
define service{
use generic-service
host_name hplj4350
service_description pping
check_command check_ping!3000.0,80%!5000.0,100%
}
define serviceescalation{
host_name hplj4350
service_description NetworkPrinterHealth
first_notification 1
last_notification 2
notification_interval 2
contact_groups verismo-admin
}
define serviceescalation{
host_name hplj4350
service_description NetworkPrinterHealth
first_notification 3
last_notification 4
notification_interval 2
contact_groups smsgrp
}