Compiling NMON 13g under Slackware 13.0

NMON is a nice system monitor, created by IBM. One of its nicer point is its interactive mode, which lets you monitor any system from a simple SSH connection, and also its non-interactive mode, which allows you to "follow" a machine for a given time, to analyze its statistics more in depth.

IBM even supplies an Excel spreadsheet in order to dump the NMON stats into and produce pretty graphs... Very useful for pointy-haired bosses!

Anyway, to compile NMON under Slackware, download the source file, named lmon13g.c and the Makefile (named, you guessed it: makefile!) and follow the instructions below:

1. Create a symbolic link:

The simple command below is enough:

$ ln -v --symbolic ./lmon13g.c ./lmon.c

2. Compile with make:

Here is the tricky part - the makefile contains a lot of Linux versions (Ubuntu, Red Hat, Suse), but none for Slackware. I have found the compilation works if you use the configuration for Red Hat Linux Enterprise Server version 4. Therefore, the following command should build NMON for Slackware:

$ make nmon_x86_rhel4

The compilation is extremely fast, and you should find yourself with a binary named nmon_x86_rhel4 in no time.

Once again, this illustrates, in my opinion, the reason why Slackware is pretty much superior to anything available out there: Slackware is Linux, and you can be pretty much certain that anything that can be compiled under Linux will compile "out-of-the-box" under Slackware! On the other hand, the reverse is not always true: Red Hat, in particular, is very heavily customized, separates libraries into two categories (devel and plain binaries) and puts all kind of hurdles in your way to make sure you only use approved RPM and binaries. But that's just me.

3. Install NMON

A simple command, such as the following, allows you to have a working copy of NMON available for all users:

$ sudo cp -v ./nmon_x86_rhel4 /usr/local/bin/nmon

And... That's it! Simple, isn't it?

4. Enjoy NMON

With the gratuitous screenshot of NMON 13g running under Slackware 13:


See Also: