ENH: Nagios filter

added typical configuration settings for the nagios filter
pull/603/head
Ivo Truxa 2014-02-03 21:51:49 +01:00
parent c91fda8619
commit dac4dd465e
1 changed files with 12 additions and 0 deletions

View File

@ -758,3 +758,15 @@ action = iptables[name=SSH, port=ssh, protocol=tcp]
blocklist_de[email="fail2ban@example.com", apikey="xxxxxx", service=%(filter)s]
logpath = /var/log/sshd.log
maxretry = 20
# consider low maxretry and a long bantime
# nobody except your own Nagios server should ever probe nrpe
[nagios]
enabled = false
filter = nagios
action = iptables[name=Nagios, port=5666, protocol=tcp]
sendmail-whois[name=Nagios, dest=you@example.com, sender=fail2ban@example.com, sendername="Fail2Ban"]
logpath = /var/log/messages ; nrpe.cfg may define a different log_facility
ignoreip = 123.12.123.12 ; your Nagios server
maxretry = 1