Running services, network usage, memory usage, bandwidth, disk I/O, successful logins, whether the thing is even alive, etc…
So far my only method has been “hope and pray”.

  • testgoofy@infosec.pub
    link
    fedilink
    English
    arrow-up
    0
    ·
    2 months ago

    I use Alloy to collect Metrics of the host (Disk usage, CPU, Ram, etc.) and different logs. With Grafana the data is then displayed as a daschboard. If everything goes south, Alertmanager sends Mails to me

  • owenfromcanada@lemmy.ca
    link
    fedilink
    English
    arrow-up
    0
    ·
    2 months ago

    I have a robust monitoring system for my Jellyfin server, been running for the last few years. Checks in periodically, at least once per 24 hours and notifies me if it’s down. Doesn’t use any electricity, but does consume a good amount of Cheerios and mac & cheese.

  • frongt@lemmy.zip
    link
    fedilink
    English
    arrow-up
    0
    ·
    2 months ago

    I pay a group of schoolchildren to refresh a group of browser tabs and yell if anything isn’t responding.

    There are plenty of previous threads with recent answers if you search.

  • CameronDev@programming.dev
    link
    fedilink
    English
    arrow-up
    0
    ·
    2 months ago

    Uptime Kuma, only really care if it’s up or not. Got about 30 services monitored, sending notifications to Signal.

  • happy_wheels@lemmy.blahaj.zone
    link
    fedilink
    English
    arrow-up
    0
    ·
    2 months ago

    Cockpit. Total gamechanger for me. I don’t have to ssh to my boxes individually to see what’s going on. Instead it’s a web UI AND you can connect basically every server you want to one instance.

    https://github.com/cockpit-project/cockpit

    That said. For individual servers?

    htop/nmon (Get nmon straight from the source! https://nmon.sourceforge.io/pmwiki.php) for a birds-eye sysmon view of things

    ps -ef | grep <whatever you're looking for> for investigating stuck/hung/zombie processes

    dmseg

    tail -f /var/log (or whatever log file you care about)

    netstat for net statistics (i think ntop used to be a thing but idk anymore>…)

    df -h to look at disk usage

    those are all that come to mind right away.

    EDIT: formatting and quick explanation of what each tool does

  • Limeade3425@lemmy.zip
    link
    fedilink
    English
    arrow-up
    0
    ·
    2 months ago

    I started with uptime kuma since it was simple and light on resources. I’ve switched to checkmk community (formerly raw) and really enjoying it. It’s telling me so many things that are wrong that I missed. Like that one time I made a snapshot of a VM then forgot about it for 113 days…

      • Limeade3425@lemmy.zip
        link
        fedilink
        English
        arrow-up
        0
        ·
        2 months ago

        With Uptime Kuma, I just used ping and http sensors so that I knew my stuff was up. When I switched to CheckMK, I installed the agent on all servers and that brought quite a bit more info in, then I added the Proxmox integration and that gave me the snapshot info (as well as more info). I think it automatically pulled in my ZFS info, like zpool status. Then added smart monitoring to my storage so that I can see that my hard drives have been spinning for 13 years and 266 days 😅

      • lIlIlIlIlIlIl@lemmy.world
        link
        fedilink
        English
        arrow-up
        0
        ·
        2 months ago

        Sure! In Uptime Kuma, add a monitor with type Push. It gives you a URL with a unique token, and the monitor goes into “down” state if nothing calls that URL within the heartbeat interval. Then have a cron (or a systemd timer or whatever) run this on the machine with the drive every 5 or 10 minutes:

        use=$(df --output=pcent /mnt/yourdrive | tail -1 | tr -dc ‘0-9’)
        curl -fsS -G “http://your-kuma:3001/api/push/TOKEN --data-urlencode “status=up” --data-urlencode “msg=${use}% used” --data-urlencode “ping=${use}”
        

        Ping is of course meant to be response time, but Kuma will graph any number you toss in, so you get a “filled” chart for the drive. I also send status=down once usage passes a threshold. And if the box itself should fall over for some reason, the missing check-ins trigger the alert too.

        (I typed this quick on my phone, so please double-check and probably don’t blindly copy-paste)

  • phanto@lemmy.ca
    link
    fedilink
    English
    arrow-up
    0
    ·
    2 months ago

    I sync my podcasts hourly with Nextcloud and poddersync, so when my servers go down, my phone beeps at me.

  • Dultas@lemmy.world
    link
    fedilink
    English
    arrow-up
    0
    ·
    2 months ago

    Uptime Kuma for outages, Prometheus for metrics, rsyslog to Loki backend for logs. Grafana for ingesting Prometheus and Loki data.