this post was submitted on 13 Jan 2025
15 points (89.5% liked)

Selfhosted

41009 readers
499 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 2 years ago
MODERATORS
 

Hi all!

i have a nice setup with some containers (podman rootless) and bare metal services (anything i can install bare metal, goes bare metal usually).

I used Monit, in the past, to keep an eye on my services and automatically restart something that for any reason goes down. I stopped using Monit because doesnt scale well on mobile browser and it's frankly clumsy to configure.

I could go back to Monit i guess, but i am wondering if there is anything better out there to try.

A few requirements (not necessarily mandatory, but preferable):

  • Open Source (ideally: true open source, not just commercial sulutions with dumbed down free verisons)
  • Not limited, or focuesd, on containers (no Watchtower and similar)
  • For containers, it can just support "works" or "restart"
  • For containers, if it goes above the minimum "works" and "restart" must support podman
  • Must support bare metal services (status, start, stop)
  • Must send email or other kind of notifications (ok IM notifications, but email preferred)
  • Should additionally monitor external machines (es other servers on the LAN), or generic IP addresses
  • Should detect if a web service is alive but blocked
  • No need for fancy GUIs or a Web GUI (it's a pro point, but not required)
  • No need for data reporting, graphics and such aminities. They are a plus, but 100% not required.

What do you guys use?

you are viewing a single comment's thread
view the rest of the comments
[–] [email protected] 4 points 2 days ago* (last edited 2 days ago) (2 children)

For Podman you don't need anything else other than Podman to monitor and restart failed containers:

podman-compose --podman-run-args='--health-on-failure=restart' up -d

For anything else I use https://healthchecks.io/

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

If youre using podman quadlets, this config in the systemd service file does the same:

[Service]

Restart=always

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

Thanks for the podman restart suggestion!

healthchecks.io seems not free or at least, very not open?

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

It's just what I use, as I'm specifically looking for something which only notifies when things aren't able to report due to failure. Free for 20 checks which is more than enough for me.

If I were hosting it myself I wouldn't know if my own notification system had failed (since it wouldn't be able to report due to failure.)