Table of Contents

newsmon

Newsmon is a simple daemon program that monitors TCP connections and looks for ones to a specified IP address. The number of said connections along with a configured nickname (think: IRC handle) are periodically sent to an XML RPC server. Newsmon is particularly useful for service-sharing.

Newsmon works on Windows and Unix platforms. Most Unix systems may ship with Python installed or have a package for it. Windows users can download the installer from python.org.

Downloading

git clone http://quadpoint.org/git/newsmon

or download a snapshot.

Installing

cp config.py.dist config.py

Running

Passing -v as an argument to newsmon.py will turn on verbose mode.

Unix

Run in the foreground:

./newsmon.py

from the directory containing newsmon.

Append an ampersand (&) to put newsmon into the background. Hangup signals are ignored appropriately.

Windows

Run in the foreground:

python newsmon.py

Run in the background:

python bgproc.py C:\path\to\python.exe newsmon.py

Updating

Use the git revision control program to pull updates.

Run

git pull

from the newsmon directory.