Hello!
I have zabbix 6.0.22 server and CentOS 8 client with zabbix_agent2 client. I want to monitor how many IPs was blocked by fail2ban.
I installed conf on client and template on server by this instruction: https://github.com/hermanekt/zabbix-fail2ban-discovery-
Test:
# sudo -u zabbix zabbix_agent2 -c /etc/zabbix/zabbix_agent2.conf -t fail2ban.discovery
fail2ban.discovery [s|{"data":[{"{#JAIL}":"dovecot"}, {"{#JAIL}":"nginx-http-auth"}, {"{#JAIL}":"postfix"}, {"{#JAIL}":"pregreet"}, {"{#JAIL}":"roundcube"}, {"{#JAIL}":"sshd"}]}]
# sudo -u zabbix zabbix_agent2 -c /etc/zabbix/zabbix_agent2.conf -t fail2ban.status['sshd']
fail2ban.status[sshd] [s|0]
I see, that Fail2ban discovery items appeared in my host. But I see this info near all Fail2ban discovery items: The item is not discovered anymore and will be deleted in 29d 1h 27m. Why?

There is no interesting in server or client log file.
I go to Fail2ban discovery and click Test, and after that Get value and test and get: {"data":[{"{#JAIL}":"dovecot"}, {"{#JAIL}":"nginx-http-auth"}, {"{#JAIL}":"postfix"}, {"{#JAIL}":"pregreet"}, {"{#JAIL}":"roundcube"}, {"{#JAIL}":"sshd"}]}
So I think, it worked fine.
Why does this message "The item is not discovered anymore and will be deleted in" appear?
Thanks.
I have zabbix 6.0.22 server and CentOS 8 client with zabbix_agent2 client. I want to monitor how many IPs was blocked by fail2ban.
I installed conf on client and template on server by this instruction: https://github.com/hermanekt/zabbix-fail2ban-discovery-
Test:
# sudo -u zabbix zabbix_agent2 -c /etc/zabbix/zabbix_agent2.conf -t fail2ban.discovery
fail2ban.discovery [s|{"data":[{"{#JAIL}":"dovecot"}, {"{#JAIL}":"nginx-http-auth"}, {"{#JAIL}":"postfix"}, {"{#JAIL}":"pregreet"}, {"{#JAIL}":"roundcube"}, {"{#JAIL}":"sshd"}]}]
# sudo -u zabbix zabbix_agent2 -c /etc/zabbix/zabbix_agent2.conf -t fail2ban.status['sshd']
fail2ban.status[sshd] [s|0]
I see, that Fail2ban discovery items appeared in my host. But I see this info near all Fail2ban discovery items: The item is not discovered anymore and will be deleted in 29d 1h 27m. Why?
There is no interesting in server or client log file.
I go to Fail2ban discovery and click Test, and after that Get value and test and get: {"data":[{"{#JAIL}":"dovecot"}, {"{#JAIL}":"nginx-http-auth"}, {"{#JAIL}":"postfix"}, {"{#JAIL}":"pregreet"}, {"{#JAIL}":"roundcube"}, {"{#JAIL}":"sshd"}]}
So I think, it worked fine.
Why does this message "The item is not discovered anymore and will be deleted in" appear?
Thanks.