"Linux Gazette...making Linux just a little more fun!"


BigBen: Network Monitor Utility

By Cesare Pizzi


BigBen is a collection of three Perl scripts useful to monitor a Unix network. The development is not completed, and there are a lot of things to add and improve, but I think that the skeleton of the application is working quite fine. The program was built on a Linux box, but I think it will run fine also on other UNIX environment, with a perl interpreter

BigBen is made of three scripts:

As you can see, the use of this application is quite simple. All the three scripts run as daemons. BigBen and Weber run on the same system, and the LittleBen client can be installed on several systems (all the systems you need to check).

The check logic of Weber is the following:

To avoid problem due to the timings between the client and the server (both wait for a while before check), it's better to start the client before.

Now, we can analyze the scripts in detail.


LittleBen


LittleBen is the client application: it runs as a daemon, and it is configurable through the configuration file (see the LittleBen.conf sample file). In this file you can put the processes you want to monitor, and the Min and Max values you want for these processes; if these values are out of the border you set, the client send an ERROR or a WARNING to the server. See the README file to have a detailed description and an example of this file.


BigBen


This is the server script. Once installed, it listens on a port (default 4455) for the data sent out by the clients. When the packet is received, it saves the data in the proper directory, where the Weber will get the data. See the README file to have a detailed description of the options available.


Weber


The Weber gets the data saved by the BigBen, and creates a couple of HTML pages, so you can check the data with your HTML browser. The HTML file created, is able to auto-reload itself, so you will get the last date in each moment. The Weber and the BigBen will run on the same system.

Weber needs a configuration file. See the README file to have more info about the command line options and the configuration file. The scripts and README are in a gzipped tar file for download purposes.

*** Please report any bug, enhancement request, comment to the author:
*** Cesare Pizzi
*** [email protected]
*** www.geocities.com/SiliconValley/Pines/8305


Copyright © 1998, Casare Pizzi
Published in Issue 28 of Linux Gazette, May 1998


[ TABLE OF CONTENTS ] [ FRONT PAGE ]  Back  Next