How do you monitor your servers?

5 days ago by u/lukmly013 💾 (lemmy.sdf.org) to c/selfhosted

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

load all comments
happy_wheels 9 points 5 days 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

path: 0 26238659, hotness: undefined, score: 9, children: 5
Owljfien 1 point 4 days ago

Lol I go to all of my server's specific cockpit addresses, sounds like I'm doing it wrong, I'll need to look at connecting them

path: 0 26238659 26241490, hotness: undefined, score: 1, children: 1
happy_wheels 2 points 4 days ago

So it turns out.... you can't connect them anymore.... The feature is deprecated

https://docs.cockpit-project.org/...

(also, I wanted to just link my response from another user who had asimilar question but for whateVER reasyon, Alx won't let me??)

path: 0 26238659 26241490 26246224, hotness: undefined, score: 2, children: 0
selfhosted
selfhosted

@lemmy.world

login for more options
62920
6790
5408

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