-
-
Notifications
You must be signed in to change notification settings - Fork 7
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[BUG] monitoring systemd logs not working #27
Comments
Thanks for opening your first issue here! Be sure to follow the relevant issue templates, or risk having this issue marked as invalid. |
This issue has been automatically marked as stale because it has not had recent activity. This might be due to missing feedback from OP. It will be closed if no further activity occurs. Thank you for your contributions. |
can confirm, same problem for me. |
This issue has been automatically marked as stale because it has not had recent activity. This might be due to missing feedback from OP. It will be closed if no further activity occurs. Thank you for your contributions. |
Same problem for me on Raspberry Pi OS (bookworm). Related issue and possible solution:
|
Is there an existing issue for this?
Current Behavior
If a jail's backend (sshd in my case) set to systemd, the following message appears:
ERROR Backend 'systemd' failed to initialize due to No module named 'systemd'
.The problems appears to be caused by not having
systemd
Python module in the Docker image.Expected Behavior
It should start monitoring sshd systemd logs.
Steps To Reproduce
Create a file
fail.d/sshd.local
with the following content:Restart
fail2ban
Environment
CPU architecture
x86-64
Docker creation
services: fail2ban: image: lscr.io/linuxserver/fail2ban:latest container_name: fail2ban cap_add: - NET_ADMIN - NET_RAW network_mode: host environment: - PUID=1000 - PGID=1000 - TZ=Etc/UTC - VERBOSITY=-vv #optional volumes: - ./config:/config - /var/log:/var/log:ro restart: unless-stopped
Container logs
The text was updated successfully, but these errors were encountered: