check if fail2ban is running where it should
authorPeter Palfrader <peter@palfrader.org>
Wed, 10 Oct 2018 12:18:22 +0000 (14:18 +0200)
committerPeter Palfrader <peter@palfrader.org>
Wed, 10 Oct 2018 12:18:22 +0000 (14:18 +0200)
config/nagios-master.cfg

index a677482..9ca32f8 100644 (file)
@@ -2062,6 +2062,15 @@ services:
     name: mail queue
     nrpe: "/usr/lib/nagios/plugins/check_mailq -M exim -w 1000 -c 2000"
     hostgroups: heavy-exim
+  -
+    name: process - fail2ban
+    nrpe: "/usr/lib/nagios/plugins/check_procs -w 1:1 -C fail2ban-server"
+    hostgroups: heavy-exim
+  -
+    name: unwanted process - fail2ban
+    nrpe: "/usr/lib/nagios/plugins/check_procs -w 0:0 -C fail2ban-server"
+    hostgroups: computers
+    excludehostgroups: heavy-exim
   # }}}
   # {{{ clamav
   -