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

infrastructure

@riton
Copy link
Author

riton commented Apr 8, 2019

misconfigured_service_dependency

@riton
Copy link
Author

riton commented Apr 8, 2019

Software versions:

[root@b878445f165c /]# rpm -qa '*naemon*'
naemon-1.0.10-0.noarch
naemon-livestatus-1.0.10-0.x86_64
naemon-thruk-1.0.10-0.noarch
libnaemon-1.0.10-0.x86_64
naemon-core-1.0.10-0.x86_64
[root@b878445f165c /]# rpm -qa '*thruk*'
thruk-base-2.28-1.x86_64
thruk-2.28-1.x86_64
libthruk-2.26-0.x86_64
thruk-plugin-reporting-2.28-1.x86_64
naemon-thruk-1.0.10-0.noarch

@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