Skip to content

Instantly share code, notes, and snippets.

@riton
Last active April 8, 2019 09:11
Show Gist options
  • Save riton/f685fc8a245fff2a7ad9176813243726 to your computer and use it in GitHub Desktop.
Save riton/f685fc8a245fff2a7ad9176813243726 to your computer and use it in GitHub Desktop.
Naemon servicedependency using comas - Full configuration at https://github.com/riton/naemon_servicedependencies_irc
define servicedependency {
hostgroup_name httpd_worker,httpd_proxy
service_description check httpd proc
dependent_host_name http-client
dependent_service_description check get http app health,check get http app statistics
execution_failure_criteria w,u,c
notification_failure_criteria w,u,c
}
@riton
Copy link
Author

riton commented Apr 8, 2019

Livestatus query result:

[root@b878445f165c /]# echo -e "GET services\nFilter: description = check get http app health\nColumns: depends_exec, depends_notify\n" | unixcat /var/cache/naemon/live
;http-server-2|check httpd proc

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment