Comments (11)
Are you reading howto? You skip step 1. Your zabbix agent dont have configuration... Please read howto carefully!
I humbly appologise, I have skipped a line and now it works like a charm. 😵 However, the install guide does need update because all the routes and filenames are not relevant on Ubuntu 22.04 for me and I've not modified the system in depts enought to be so much different than a standard install. Here are the modifications for my system:
1; Set configuration file
Zabbix Agent
wget https://raw.githubusercontent.com/hermanekt/zabbix-fail2ban-discovery-/master/fail2ban.conf -O /etc/zabbix/zabbix_agentd.conf.d/fail2ban.conf
2; Grant access to Fail2Ban
systemctl restart zabbix-agent
3; Test Zabbix Agent setting
Zabbix Agent
root@server:~# sudo -u zabbix zabbix_agentd -c /etc/zabbix/zabbix_agentd.conf -t fail2ban.discovery
fail2ban.discovery [t|{"data":[{"{#JAIL}":"nginx-404"}, {"{#JAIL}":"nginx-499"}, {"{#JAIL}":"sshd"}]}]
root@server:~# sudo -u zabbix zabbix_agentd -c /etc/zabbix/zabbix_agentd.conf -t fail2ban.status['sshd']
fail2ban.status[sshd] [t|0]
I again say sorry for my mistake and I hope my details will have positive effect on your work. 👍 If not in the readme, then maybe somebody comes by Google and finds this.
from zabbix-fail2ban-discovery-.
Hi,
please use template for Ubuntu from this GIT repository. This is problem with os differences.
https://github.com/hermanekt/zabbix-fail2ban-discovery-
Tom
from zabbix-fail2ban-discovery-.
I tried all of the templates in the repository that you listed. But i can't seem to get it working.
from zabbix-fail2ban-discovery-.
Hello !
Same here, I have Zabbix 5.4 and no template works for me.
from zabbix-fail2ban-discovery-.
More info would be great I imagine, so :
Its a debian 10.10 server
Zabbix is in last stable version of 5.4
Agent are in :
zabbix_agentd (daemon) (Zabbix) 5.4.4
Revision 1765c4f1bc 30 August 2021, compilation time: Jul 22 2021 12:17:45
Copyright (C) 2021 Zabbix SIA
License GPLv2+: GNU GPL version 2 or later http://gnu.org/licenses/gpl.html.
This is free software: you are free to change and redistribute it according to
the license. There is NO WARRANTY, to the extent permitted by law.
This product includes software developed by the OpenSSL Project
for use in the OpenSSL Toolkit (http://www.openssl.org/).
Compiled with OpenSSL 1.1.1d 10 Sep 2019
Running with OpenSSL 1.1.1d 10 Sep 2019
from zabbix-fail2ban-discovery-.
and no template works for me.
Can you add an error message from the items, autodiscovery or template import? I am not sure on where are you facing the issue
from zabbix-fail2ban-discovery-.
I am using Template-Fail2ban50-UBUNTU20.xml, zabbix_agentd (daemon) (Zabbix) 4.0.17
with Ubuntu 20.04.4 LTS and Zabbix 5.4.12.
I also get
from zabbix-fail2ban-discovery-.
Unsupported item key = zabbix agent dont have correct configuration. Do you copy correct *.conf file and restart zabbix agent?
from zabbix-fail2ban-discovery-.
from zabbix-fail2ban-discovery-.
The command from https://github.com/hermanekt/zabbix-fail2ban-discovery-#3-test-zabbix-agent-setting namely sudo -u zabbix zabbix_agent -c /etc/zabbix/zabbix_agent.conf -t fail2ban.discovery
is invalid on Ubuntu 22.04. The following works only at least for me: sudo -u zabbix zabbix_agentd -c /etc/zabbix/zabbix_agentd.conf -t fail2ban.discovery
and the output is:
root@web-1:~# sudo -u zabbix zabbix_agentd -c /etc/zabbix/zabbix_agent.conf -t fail2ban.discovery
fail2ban.discovery [m|ZBX_NOTSUPPORTED] [Unsupported item key.]
Notice that there is a D at the end of the agent binarys name and in the config files name.
from zabbix-fail2ban-discovery-.
Are you reading howto? You skip step 1. Your zabbix agent dont have configuration... Please read howto carefully!
from zabbix-fail2ban-discovery-.
Related Issues (18)
- Error when installing template Version 4.0: unsupported version number HOT 1
- Simplified setup HOT 2
- Detect malformed fail2ban database HOT 2
- 40-ubuntu template does not import in zabbix 4
- Several XML-errors on import of Template-Fail2ban50-UBUNTU20.xml HOT 1
- Template improove
- Fail2ban server is Down HOT 6
- Not work (Zabbix 4.0) HOT 13
- New Trigger / Alerts on problems
- delete
- Ubuntu 22.04 and Zabbix 6 are not reporting correct f2b status HOT 7
- Use without root HOT 1
- Persist socket permission changes HOT 3
- Error during import of template file on Zabbix 4.2 HOT 3
- fail2ban.discovery sed not working for non root user HOT 15
- Zabbix 5.0 HOT 1
- proc.num[fail2ban-server] returns 0 on Ubuntu 20.04.1 LTS HOT 7
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from zabbix-fail2ban-discovery-.