hermanekt / zabbix-fail2ban-discovery-

51 stars 27 forks source link

Fail2ban server is Down #19

Closed SteepNet closed 2 years ago

SteepNet commented 3 years ago

hi, all the data about the banned ip is received successfully, but the system always sends that Fail2ban server is Down CentOS 7 Zabbix 5.2

altmas5 commented 3 years ago

Hi @SteepNet Can you share the output of the following commands executed from the monitored host?

zabbix_agentd -t proc.num[python3,,,fail2ban-server]
zabbix_agentd -t proc.num[fail2ban-server]
SteepNet commented 3 years ago

zabbix_agentd -t proc.num[python3,,,fail2ban-server] proc.num[python3,,,fail2ban-server] [u|0]

zabbix_agentd -t proc.num[fail2ban-server] proc.num[fail2ban-server] [u|0]

altmas5 commented 3 years ago

Strange, it returns zero, please test with

zabbix_agentd -t proc.num[,,,fail2ban-server
SteepNet commented 3 years ago

zabbix_agentd -t proc.num[,,,fail2ban-server] proc.num[,,,fail2ban-server] [u|2]

if I use in the template then the template import error occurs proc.num[,,,fail2ban-server]

altmas5 commented 3 years ago

I can see the expression zabbix_agentd -t proc.num[,,,fail2ban-server] works on your environment, that should be the one used on the item and trigger, it is strange that it causes a import error. If you modify the template remember to update the item and the trigger with the same expression, both should match.

Can you share the specific error while importing it?

hermanekt commented 2 years ago

Environment specific setup.