From: Peter Palfrader Date: Mon, 23 Mar 2015 12:37:49 +0000 (+0100) Subject: Use new dsa-check-stunnel-sanity check X-Git-Url: https://wiki.adam-barratt.org.uk/gitweb/?a=commitdiff_plain;h=0d0a7e21db1133cbba804ac5a0f58411a5e9676d;p=mirror%2Fdsa-nagios.git Use new dsa-check-stunnel-sanity check --- diff --git a/config/nagios-master.cfg b/config/nagios-master.cfg index 9178635..0a9c343 100644 --- a/config/nagios-master.cfg +++ b/config/nagios-master.cfg @@ -1898,7 +1898,7 @@ services: excludehostgroups: freebsd, alioth - name: process - stunnel4 - puppet-ekeyd is crazy - nrpe: 'n="0"; if [ -e /var/run/stunnel4/stunnel-ekeyd.pid ]; then n="$(wc -l < /proc/$(cat /var/run/stunnel4/stunnel-ekeyd.pid)/net/tcp)"; fi; if [ "$n" -gt 100 ]; then echo "Crazy number of open TCP sockets ($n)."; exit 2; else echo "All seems fine."; exit 0; fi' + nrpe: "sudo /usr/lib/nagios/plugins/dsa-check-stunnel-sanity" hostgroups: computers excludehostgroups: freebsd, alioth excludehosts: czerny, grnet-node01, storace