Hi all! I’ve been looking for a selfhosted system that can monitor one or more email accounts and check if a certain email with a particular subject arrives every day (or every x hours) and alert me if it doesn’t (or if the subject is different). I need this to check if backups from different PC have run or not. The best thing would be to integrate it with Uptime Kuma. Any idea? Thanks!

Edit: I’m switching all my backup software to Restic (Autorestic on Linux machines) so I can send a ping to Uptime Kuma when every single backup successfully ends.

  • doeknius_gloek@discuss.tchncs.de
    cake
    link
    fedilink
    English
    arrow-up
    3
    ·
    9 months ago

    Does it have to be by monitoring emails or do you have control over the backup script? I’m using Uptime Kuma to monitor my backups via push monitors. My backup scripts call a webhook to indicate success or failure. If the webhook isn’t called for X hours, the backup is also marked as failed. Works really well.

    • peregus@lemmy.worldOP
      link
      fedilink
      English
      arrow-up
      1
      ·
      9 months ago

      It has to be email monitoring. I’m already using Uptime Kuma for other notification (with ntfy) and I hope to find something that can check email to integra in Uptime Kuma.

  • zinderic@programming.dev
    link
    fedilink
    English
    arrow-up
    3
    ·
    9 months ago

    I would put a simple “grep <whafever> mail.log || curl ntfy.sh” or something like that. Ntfy can send you alert on the phone if some check failed or passed. For pass just use && :) Simple and it works.

    • adr1an@programming.dev
      link
      fedilink
      English
      arrow-up
      1
      ·
      9 months ago

      Depending on how much infra you want to put up, there’s also mailinabox that can do all (email aliases, etc.)

  • johntash@eviltoast.org
    link
    fedilink
    English
    arrow-up
    2
    ·
    9 months ago

    Not built in, but maybe a tool like windmill, nodered, or n8n? I think they all support imap and can run on a timer

    • peregus@lemmy.worldOP
      link
      fedilink
      English
      arrow-up
      1
      ·
      edit-2
      9 months ago

      I’ve tried doing it with Node Red some time ago, but the Email node could only read the last email (if I’m not wrong, I can’t remember).

      Edit: I’ve tried installing n8n some times ago, but it seemed too complicated, I’ve never tried Windmill, I’ll have a look at it

  • Moonrise2473@feddit.it
    link
    fedilink
    English
    arrow-up
    3
    arrow-down
    1
    ·
    9 months ago

    i always tell myself to write something like this but then i never have the time or the willing to do so…

    i’m interested too if there’s this