Dependancy service definition
Posted: Mon May 20, 2013 7:01 am
Hi All,
I would like to configure a dependacy service for another service. below is my configuration and it is not working properly. Please suggest am I missing anything?
define command{
command_name Site1_Status
command_line $USER1$/check_http -I 172.20.32.35 -u http://sample1.example.com
}
define command{
command_name HTTP_Status
command_line $USER1$/check_http -H 172.20.32.35
}
define service{
use generic-service
host_name Station1
service_description website_status
check_command Site1_Status
}
define service{
use generic-service
host_name Station1
service_description HTTP Status
check_command HTTP_Status
}
define servicedependency{
host_name Station1
service_description website_status
dependent_host_name Station1
dependent_service_description HTTP Status
}
Here if I stop httpd service then the Nagios should not check for website_status. This is my intension. Please suggest.
Thanks & Regards
Kalyan Pasupuleti
I would like to configure a dependacy service for another service. below is my configuration and it is not working properly. Please suggest am I missing anything?
define command{
command_name Site1_Status
command_line $USER1$/check_http -I 172.20.32.35 -u http://sample1.example.com
}
define command{
command_name HTTP_Status
command_line $USER1$/check_http -H 172.20.32.35
}
define service{
use generic-service
host_name Station1
service_description website_status
check_command Site1_Status
}
define service{
use generic-service
host_name Station1
service_description HTTP Status
check_command HTTP_Status
}
define servicedependency{
host_name Station1
service_description website_status
dependent_host_name Station1
dependent_service_description HTTP Status
}
Here if I stop httpd service then the Nagios should not check for website_status. This is my intension. Please suggest.
Thanks & Regards
Kalyan Pasupuleti