A dashboard / widget to monitor fail2ban jails?

3 years ago by SuperFola to c/selfhosted

Hi all,

I'm looking for a dashboard or widget for homepage to be able to monitor quickly my fail2ban jails.

Does it even exist? How do you people monitor your jails? I don't want to go through the hassle of setting up a mail server and send report daily/weekly

knaak 4 points 3 years ago

I wrote some scripts to extract logs and write them to PostgreSQL, then I have scripts that download hostnames, geographic info, and then I run an nmap to look back at them. Finally superset dashboard against the postgres database.

It's a bit overkill but I wanted a project to improve my Python skills.

path: 0 572729, hotness: undefined, score: 4, children: 0
Wingy 1 point 3 years ago

Prometheus+Grafana maybe?

path: 0 571506, hotness: undefined, score: 1, children: 1
sudneo 1 point 3 years ago

This would probably my go-to. I use node-exporter on every server anyway. It's enough to write a script that will query the info you want via bash, and dump a text file inside the node-exporter watched directory.

path: 0 571506 572132, hotness: undefined, score: 1, children: 0
richneptune 1 point 3 years ago

Apologies: Answered too quickly and missed out the homepage requirement. I'll leave my answer up anyhow.

Webmin has a fail2ban status page, it's also pretty useful for creating/maintaining your existing jails.

path: 0 571583, hotness: undefined, score: 1, children: 1
SuperFola 1 point 3 years ago

I can probably work with that, I will see if that fits my workflow, thanks!

path: 0 571583 579143, hotness: undefined, score: 1, children: 0
knaak 1 point 3 years ago

I wrote some scripts to extract logs and write them to PostgreSQL, then I have scripts that download hostnames, geographic info, and then I run an nmap to look back at them. Finally superset dashboard against the postgres database.

It's a bit overkill but I wanted a project to improve my Python skills.

path: 0 572737, hotness: undefined, score: 1, children: 0
KitchenNo2246 1 point 3 years ago

Graylog can likely do this but would require configuration

path: 0 571322, hotness: undefined, score: 1, children: 0
Letus 1 point 3 years ago

I don't use the tool you mentioned above. but I can recommend graylog for this. For emails just use the Mailserver form proton or Google. Setting one up is a loot of work and even then gets probably banned by all major ones...

path: 0 576937, hotness: undefined, score: 1, children: 1
SuperFola 1 point 3 years ago

Thanks, I'll have a look

path: 0 576937 579147, hotness: undefined, score: 1, children: 0
selfhosted
selfhosted

@lemmy.world

login for more options
62959
6794
5683

A place to share alternatives to popular online services that can be self-hosted without giving up privacy or locking you into a service you don't control.

Rules:

Detailed Rules Post

  1. Be civil.

  2. No spam.

  3. Posts are to be related to self-hosting.

  4. Don't duplicate the full text of your blog or readme if you're providing a link.

  5. Submission headline should match the article title.

  6. No trolling.

  7. Promotion posts require active participation, with an account that is at least 30 days old. F/LOSS without a paywall has exceptions, with requirements. See the rules link for details. Tags [CBH] or [AIP] are required, see the links in Rule 8 for details.

  8. AI-related discussions and AI-involved promotional posts have additional requirements for tagging, as noted in Rule 7 and the AI & Promotional Post Expanded Rules post, and find example disclosures here.

Resources:

Any issues on the community? Report it using the report flag.

Questions? DM the mods!

go to feed...