From: Peter Palfrader Date: Mon, 23 Mar 2015 10:04:01 +0000 (+0100) Subject: Check that stunnel4 ekeyd is not going crazy X-Git-Url: https://wiki.adam-barratt.org.uk/gitweb/?a=commitdiff_plain;h=4e7053d757248f3bbd0b583cec917699ee511f37;p=mirror%2Fdsa-nagios.git Check that stunnel4 ekeyd is not going crazy --- 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 -