Simplemonitor

A Python-based network and host monitor

Download as .zip Download as .tar.gz View on GitHub

SimpleMonitor is a Python script which monitors hosts and network connectivity. It is designed to be quick and easy to set up and lacks complex features that can make things like Nagios, OpenNMS and Zenoss overkill for a small business or home network. Remote monitor instances can send their results back to a central location.

SimpleMonitor supports:

Adding more monitor types is quite simple if you are able to code in Python.

Logging and alerting options are:

Again, adding more logging/alerting methods is simply a case of writing some Python.

SimpleMonitor also features:

Getting started

Running SimpleMonitor

That was easy.

For help on command line options, run python monitor.py -h, or see below.

SimpleMonitor does not fork.

On non-Windows, SimpleMonitor runs very nicely under daemontools. You just need a run file a bit like this:

#!/bin/sh

cd /usr/local/monitor && exec /usr/local/bin/python monitor.py -q

On Windows hosts, you’ll have to leave it running in a Command Prompt for now; I haven’t gotten round to making it run as a service.

In the scripts folder you can find startup scripts for various systems. You will need to adjust paths, usernames and options before using them!

Command line options

Configuration

Testing

These options exist mainly for automated testing and validation.

Output

SimpleMonitor currently outputs everything to stdout.

Licence

SimpleMonitor is released under the BSD licence.

Fork me on GitHub