What do you use as a system monitor - Servers Administration, Networking, & Virtualization
Users browsing this thread: 4 Guest(s)
|
|||
Hello nixers,
Here's a simple thread: What do you use as a system monitor and do you have recommendations. I normally go for htop and top but I'm looking to broaden my horizons. Be sure to mention the OS it runs on (if only a particular one), and provide a link. |
|||
|
|||
I use htop. as far as "finding out when shit is whack", I monitor--
- temp and battery in a systemd user service: https://github.com/neeasade/dotfiles/blo...nsor_alert - disk space via a section on my panel that pops up: https://github.com/neeasade/dotfiles/blo...isc#L4-L20 I guess it might also be nice to be alerted when there's high IO or cpu usage or something (over some time period/non-bursty) |
|||
|
|||
htop here, too. It can usually answer all of my questions.
One of the things it can't do is show network usage. For my Linux desktop/laptop, I just have a widget in my status bar (along with CPU usage and such). It's surprisingly rare that I need to show network usage on a server in real time (we have long-term statistics using influx/telegraf). When I do, I usually went for iftop. I just found bmon which has a slightly nicer UI and doesn't need root. (10-02-2022, 10:08 PM)neeasade Wrote: temp That's interesting. Why do you need an alert when CPU temp goes up? Cooling issues? |
|||
|
|||
> Why do you need an alert when CPU temp goes up? Cooling issues?
It was for an old thin thinkpad I had that probably needed thermal paste re-applied -- Positioning and a cooler could matter a lot, and so I needed something to nudge me to keep that in mind edit: I was also QUITE mobile at the time for context. coffee shops, conference rooms, a friends living room, different every day. |
|||
|
|||
On my OpenBSD desktop, I configured apmd to log every minute at /var/log. I also configured sensorsd.conf to set a high temperature value that, when passed, a message should be logged.
Then, I run an awk script at X login that reads apmd log (from tail -f) and writes a notification to xnotify's fifo when a interesting line is read. It currently only greps for lines reporting low battery and high temperature (see the image below, at top right). For my dock/bar I use WindowMaker-style dockapps, in particular wmbubble, which compiles some CPU and memory info as a duck swimming on a pool of bubbling water. When a mouse is over it, wmbubble shows the load average graph. |
|||
|
|||
On that note, I also forgot I have a script for battery status that pops up at certain intervals.
It's running as a systemd user timer (~/.config/systemd/user/timers.target.wants). The timer unit Code: [Unit] Code: [Unit] And the actual script that gets called check-batt, which is very similar to what neeasade is doing but with threshold values: Code: #!/usr/bin/env bash |
|||
|
|||
(12-02-2022, 09:36 PM)seninha Wrote: On my OpenBSD desktop Man, I love your desktop. Everytime I see it I'm intrigued. I wish you would just fork a distro or release a pre-configured live image. It's so polished and consistant. Harmonious even. Anyway, I keep saying I'm going to use shod once I have a desktop setup (with a mouse). Eventually! Back to the topic at hand, I quite like nmon as a system monitor. |
|||
|
|||
(13-02-2022, 05:49 AM)venam Wrote: On that note, I also forgot I have a script for battery status that pops up at certain intervals. I do have one too on NetBSD, and the concept is somehow similar: Code: #!/bin/sh It relies on envsys(4) (Environmental Systems framework), which was written by the creator of Void's XBPS and can print a lot of useful info from monitor devices and sensors in quite a fancy and human-readable fashion. Usually I bind this to something like Mod4 + b in CTWM. Similarly, I bind Mod4 + v to: Code: #!/bin/sh In my ~/.profile I have this little function to monitor power-management related events. I usually have a sticky term running it in foreground. Code: pwrd() As a pseudo graphical resource monitor, I really love systat; the interface might look a bit ugly by modern standards, as it relies on the native curses library, which is more limited compared to ncurses, but it does its job and does it well. systat can display various statistics at the same time including cpu load, virtual memory, processes, swap usage, disk i/o, open sockets, established connections, network traffic...for example `systat iostat` looks like that: To quickly display the number of total used buffers in megabytes, I also use this script; useful on server and public access BSD systems like SDF or GREX. Code: #!/bin/sh As for graphical tools, I really like a tool ported from old versions of SPARC32 Solaris and called xmeter. I was unable to find a description to link here, but, from the man page: Quote: Xmeter displays a periodically updating histogram of the system rstat is a daemon capable of returning performance statistics obtained from the kernel. These can be read using the rup(1) command. rstat is a Sun RPC protocol, and I suppose that's why I was unable to find a port of xmeter for Linux. |
|||
|
|||
I use the same battery script as venam, and I also use htop(1).
Another tool that I quite like is glances. |
|||
|
|||
I’m perfectly fine with the built-in tools. I noticed that the additional overhead is just not worth it.
-- <mort> choosing a terrible license just to be spiteful towards others is possibly the most tux0r thing I've ever seen |
|||
|
|||
Hi,
On OpenBSD, I use this little script to output in tmux status or dwm's bar various info : mpd current song, battery remaining, audio volume, date. There are also functions for disk usage, cpu and ram that I actually don't use (top/vmstat/systat are good for this) Code: fs_perc() |
|||
|
|||
I'm usually using htop and relying on conky for the rest, which is mainly CPU load, RAM usage, assigned IP address, battery charge[*], uptime[*] and date/time[*]
Code: _ _ , |
|||
|
|||
I use Btop, it is an awesome TUI utility with a good UI. I also made an Everforest theme for it, which is already inside of Btop.
|
|||
|
|||
(12-02-2022, 09:36 PM)seninha Wrote: On my OpenBSD desktop, I configured apmd to log every minute at /var/log. I also configured sensorsd.conf to set a high temperature value that, when passed, a message should be logged. This for everything. When the current state is nominal, nothing should be displayed. Getting everyone to agree on a message bus is not easy. eg. battery low/high goes to X11 display, while the daily security report goes to email. Code: #!/usr/bin/awk -f |
|||