zabbix / community-templates

Zabbix Community Templates repository
https://share.zabbix.com
MIT License
1.25k stars 1.77k forks source link

Fail2Ban in 2023 #311

Open bertalanimre opened 7 months ago

bertalanimre commented 7 months ago

The Fail2Ban template (https://github.com/zabbix/community-templates/blob/main/Applications/Firewall/template_fail2ban/6.0/README.md) is very out of date at the moment and does not work for the latest version of Zabbix.

With one small fix, I was able to fix at least the service status report, so the templace is good to see if Fail2Ban is alive or dead.

Line: 54 and 66 proc.num[f2b/server] to proc.num[python3,,,fail2ban-server]'

However, discovery of jails and listing of banned IP-s is still an issue. Zabbix responds with Unsupported item key.. If anyone can help, it would be amaizing.

Thanks !