sysmon

Usage

sysmon

Description

This is an extremely low-tech text-based multiple-system monitor running in a terminal window. The idea is to display some indication of health for a number of systems (specifically: 37 systems, although that changes from time to time) in a minimum of screen area. It also displays read-me notices for a number of mailboxes and Usenet news.

I'm not making any great claims to generality here. If there were 370 systems instead of 37, we'd have to think about something else. But (generally speaking) people tend to underestimate the amount of useful information that can be expressed in a simple terminal window.

The program runs continuously. Monitored systems are obtained from the file $HOME/.sysmonlist. Every so often, ssh is used to a remote system to run the uptime command; the results (assuming there are any) are parsed and displayed. Specifically, in the current implementation, the number of logged-in users, the system's uptime in days, the 20-minute load average, and the time it took for the system to respond are displayed. This is used as a semi-reliable proxy of overall system behavior.

Here's a screenshot:

[Screenshot]

There's a clock up in the corner, isn't that cool? Why? Well, because it fit.

Color is used tastefully to draw attention to unusual situations. Load averages over 1.0 are displayed in yellow, over 2.0 in red. Similarly, a response time over 15 seconds is displayed in yellow, over 20 seconds in red. Unresponsive systems get a big fat NO RESPONSE in eye-catching black-on-red.

The script also monitors multiple mailboxes and Usenet news semi-intelligently on lines 2 and 3 of the screen:

Features:


Source

Back to Hacks


Last modified: June 20 2003 09:12 EDT

Paul A. Sand, pas@unh.edu