Remix.run Logo
accrual 6 days ago

> I would be interested to also hear from folks using tmux as a process manager / dashboard for server-type environments

Sure! I use tmux on most of my OpenBSD systems and copy the same .tmux.conf file around, but rarely tweak it other than to set a hostname.

My status bar is at the top and looks approximately like this:

   --~ msg auth pf       hostname. Mon Aug 04 15:05
* The first two windows (--) are regular shells.

* The tilde window (~) is where I do stuff as root.

* The message window (msg) tails `/var/log/messages` and `/var/log/daemon`, or `journalctl -f` and `journalctl -k -f` on Linux.

* The auth window (auth) tails `/var/log/authlog` to monitor login attempts and usage of doas and sudo.

* The pf window (pf) runs a script to monitor the packet filter rules (pass, block, match).

* hostname is just the hostname. The period (.) means no mail, it turns to an exclaimation mark (!) when I have mail.

* Simple date/time.

This setup gives me quick access shells, important logs, mail status, date/time, and works the same on every server I manage. I add extra windows to tail other app logs as needed.

quesera 6 days ago | parent [-]

> but rarely tweak it other than to set a hostname

In case helpful: You can use `#h` in a status line string to get the hostname

accrual 5 days ago | parent [-]

Thanks! My .tmux.conf is kinda old, I created it before it was in the base OpenBSD sets. Might need some updates like '#h'. :)