From 4e7053d757248f3bbd0b583cec917699ee511f37 Mon Sep 17 00:00:00 2001 From: Peter Palfrader Date: Mon, 23 Mar 2015 11:04:01 +0100 Subject: [PATCH] Check that stunnel4 ekeyd is not going crazy --- config/nagios-master.cfg | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/config/nagios-master.cfg b/config/nagios-master.cfg index e68723c..fd9eb77 100644 --- a/config/nagios-master.cfg +++ b/config/nagios-master.cfg @@ -1896,6 +1896,12 @@ services: nrpe: "/usr/lib/nagios/plugins/check_procs -w 1:6 -c 1: -u stunnel4 -C stunnel4 -a '/usr/bin/stunnel4 /etc/stunnel/puppet-ekeyd.conf'" hostgroups: wheezy, jessie excludehostgroups: freebsd, alioth + - + name: process - stunnel4 - puppet-ekeyd is crazy + nrpe: 'if [ -e /var/run/stunnel4/stunnel-ekeyd.pid ] && [ "$(wc -l < /proc/$(cat /var/run/stunnel4/stunnel-ekeyd.pid)/net/tcp)" -gt 1000 ]; then echo "Crazy number of open FDs."; exit 2; else echo "All seems fine."; exit 0; fi' + #hostgroups: squeeze, wheezy, jessie + #excludehostgroups: freebsd, alioth + hosts: master # }}} # {{{ anti-services - -- 2.20.1