this post was submitted on 27 Jun 2023
12 points (100.0% liked)

Selfhosted

39234 readers
543 users here now

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:

  1. Be civil: we're here to support and learn from one another. Insults won't be tolerated. Flame wars are frowned upon.

  2. No spam posting.

  3. Posts have to be centered around self-hosting. There are other communities for discussing hardware or home computing. If it's not obvious why your post topic revolves around selfhosting, please include details to make it clear.

  4. Don't duplicate the full text of your blog or github here. Just post the link for folks to click.

  5. Submission headline should match the article title (don’t cherry-pick information from the title to fit your agenda).

  6. No trolling.

Resources:

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

Questions? DM the mods!

founded 1 year ago
MODERATORS
 

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

top 9 comments
sorted by: hot top controversial new old
[–] knaak 4 points 1 year 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.

[–] [email protected] 1 points 1 year ago (1 children)
[–] sudneo 1 points 1 year 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.

[–] [email protected] 1 points 1 year ago* (last edited 1 year ago) (1 children)

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.

[–] [email protected] 1 points 1 year ago

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

[–] knaak 1 points 1 year 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.

[–] [email protected] 1 points 1 year ago (1 children)

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...

[–] [email protected] 1 points 1 year ago

Thanks, I'll have a look

[–] KitchenNo2246 1 points 1 year ago

Graylog can likely do this but would require configuration

load more comments
view more: next ›