loadmeter/ 40755 1720 2424 0 6600324402 10415 5ustar bbziploadmeter/Makefile100644 1720 2424 1713 6600324376 12166 0ustar bbzip# Makefile for loadmeter # Edit the lines below to reflect your setup/preferences CC = gcc CFLAGS = -O2 -Wall $(DEFINES) $(INCLUDES) BINDIR = /usr/local/bin/ INSTALL = install MANDIR = /usr/local/man/man1/ OBJS = loadmeter.o getinfo.o popup.o all: @(SYSTYPE=`uname` ; \ case $$SYSTYPE in \ Linux) \ echo Making loadmeter for Linux ; \ $(MAKE) LIBS="-L/usr/X11R6/lib -lX11" DEFINES=-DLINUX \ loadmeter ;;\ SunOS) \ echo Making loadmeter for Solaris ; \ $(MAKE) LIBS="-L/usr/openwin/lib -lX11 -lkvm -lelf" \ DEFINES=-DSOLARIS INCLUDES=-I/usr/openwin/include \ loadmeter ; \ echo '\nPlease help debug the Solaris version! Read README.\n' ;; \ esac \ ) loadmeter: $(OBJS) $(CC) $(CFLAGS) -o $@ $(OBJS) $(LIBS) loadmeter.o: loadmeter.h getinfo.o: loadmeter.h popup.o: loadmeter.h clean: rm -f *.o core loadmeter install: loadmeter ${INSTALL} loadmeter ${BINDIR} cp loadmeter.1 ${MANDIR} loadmeter/README100644 1720 2424 13221 6577735037 11440 0ustar bbzipLoadmeter v1.20 ============== This is a useful little system monitoring utility I've hacked up to keep track of various system stats. It monitors: - Load average - Uptime - Disk usage - Memory usage In its normal state it displays a window with a coloured bar graph showing the load average for the past minute. This is also shown in digits at the top of the window. both are updated every second. A red 'notch' marks the maximum load since it was started, and can be reset by pressing button2 or hidden with button3. The blue notch shows the 5 minute load average. By clicking with button1, a pop-up window appears showing the uptime, the capacity of each filesystem, and memory/swap usage. More detailed info on each filesystem is available by highlighting the corresponding one. The way this window pops down is intentional, just to make it interesting. :) Any filesystems with higher usage than specified by the -warn option (default 90%) are shown with a (default)green background. The '-disk' option can also be used as an 'instant warn' feature. Press Escape in the top level window to exit. Loadmeter also has the ability to override window managers. Giving the option '-override' causes the top-level window to have the override_redirect bit set. This is useful for window managers that insist upon decorating standard clients (eg Enlightenment, at least up to DR0.9). If you've given this option, then you can still resize and move the window. During moving and resizing, the cursor displays the geometry. Ctrl-button1 lowers the window. Ctrl-button2 raises and moves the window. Ctrl-button3 raises and resizes the window. A SIGUSR1 sent to the process will also raise the top level window. There is also a '-parent' switch, which can be used to specify another window (in decimal or hex form) to use as the parent for the toplevel one (default is the root). This is useful for banking several together inside another window for easy positioning, etc. The 'lower' function doesnt work if -parent is specified. Also note that you can't use both -override and -parent at the same time. Command-line options: -disp Specify which X server to connect to -geom <+x+y> Specify position on the screen -sync Call sync() when checking disk usage -numfont Use for the load digits -labelfont Use for the hostname label -popupfont Use for the cursor and popup window -popupbg Use for the popup background -popupfg Use for the foreground of the popup -warnbg Use for the high disk usage warning colour -meter Use for the disk usage meter bar -warn Min percent capacity reqd to highlight a filesystem -label