From faf7ba49d9444cead121c3ee7384413e3f827d27 Mon Sep 17 00:00:00 2001 From: Kevin Fenzi Date: Tue, 11 Feb 2014 19:42:51 +0000 Subject: [PATCH] Add checks for unbound instances --- roles/nagios_client/tasks/main.yml | 2 ++ roles/nagios_client/templates/check_openvpn_link.cfg.j2 | 1 + roles/nagios_client/templates/check_unbound_proc.cfg.j2 | 1 + 3 files changed, 4 insertions(+) create mode 100644 roles/nagios_client/templates/check_openvpn_link.cfg.j2 create mode 100644 roles/nagios_client/templates/check_unbound_proc.cfg.j2 diff --git a/roles/nagios_client/tasks/main.yml b/roles/nagios_client/tasks/main.yml index 40d0e164f5..d6c965a995 100644 --- a/roles/nagios_client/tasks/main.yml +++ b/roles/nagios_client/tasks/main.yml @@ -57,6 +57,8 @@ - check_postfix_queue.cfg - check_lock.cfg - check_fedmsg_hub_proc.cfg + - check_openvpn_link.cfg + - check_unbound_proc.cfg notify: - restart nrpe tags: diff --git a/roles/nagios_client/templates/check_openvpn_link.cfg.j2 b/roles/nagios_client/templates/check_openvpn_link.cfg.j2 new file mode 100644 index 0000000000..a584a972e4 --- /dev/null +++ b/roles/nagios_client/templates/check_openvpn_link.cfg.j2 @@ -0,0 +1 @@ +command[check_openvpn_link]={{ libdir }}/nagios/plugins/check_ping -H 192.168.1.58 -w 375.0,20% -c 500,60% diff --git a/roles/nagios_client/templates/check_unbound_proc.cfg.j2 b/roles/nagios_client/templates/check_unbound_proc.cfg.j2 new file mode 100644 index 0000000000..cbae839cfd --- /dev/null +++ b/roles/nagios_client/templates/check_unbound_proc.cfg.j2 @@ -0,0 +1 @@ +command[check_unbound_proc]={{ libdir }}/nagios/plugins/check_procs -c 1:1 -C 'unbound' -u unbound