Ad Widget

Collapse

The item is not discovered anymore and will be deleted message when using fail2ban

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • matreshkabalalayka
    Junior Member
    • Feb 2024
    • 3

    #1

    The item is not discovered anymore and will be deleted message when using fail2ban

    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?

    Click image for larger version

Name:	2024-02-21_14-53.png
Views:	463
Size:	58.8 KB
ID:	479382

    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.

Working...