hi everyone, i have a problem with service &host dependencies.I configure these dependencies as per the nagios documentation,but it is not still working.
here is my configuration file:
host that runs nagios:192.168.x.x
client host:202.153.y.y -named as dev
router:192.168.i.i -named as Router
gateway:202.153.q.q -named as Gateway
host_dependencies.cfg:
define hostdependency {
dependent_host_name dev
host_name Router
execution_failure_criteria d,u,p
notification_failure_criteria d,u,p
}
define hostdependency {
dependent_host_name Gateway
host_name Router
execution_failure_criteria d,u,p
notification_failure_criteria d,u,p
}
service_dependency.cfg
define servicedependency {
dependent_service_description DNS
dependent_host_name dev
host_name Router
use generic-dependency
}
define servicedependency {
dependent_service_description FTP
dependent_host_name dev
host_name Router
use generic-dependency
}
define servicedependency {
dependent_service_description MYSQL
dependent_host_name dev
host_name Router
use generic-dependency
}
define servicedependency {
dependent_service_description PING
dependent_host_name dev
host_name Router
use generic-dependency
}
define servicedependency {
dependent_service_description PING
dependent_host_name Gateway
host_name Router
use generic-dependency
}
service_dependency_template.cfg
define servicedependency {
name generic-dependency
service_description PING
execution_failure_criteria w,u,c
notification_failure_criteria w,u,c
register 0
}
here nagios server monitoring services like dns,ftp,mysql etc on dev that is remote host.when the router b/w them goes down,nagios shows dev and Gateway in down state and also services related them in critical state eventhough they are working properly.
please ,help me someone
thanks in advance for any help