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

  • The location of newsmon does not matter. Put it where it is convenient for you.
  • Copy the config.py.dist file to config.py. Do this in Windows Explorer if your platform is Windows.
cp config.py.dist config.py
  • Edit config.py as documented in the file.

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.

 
projects/newsmon.txt · Last modified: 2008/06/01 15:41 by f0rked
admin | login | sitemap
Recent changes RSS feed Creative Commons License Valid XHTML 1.0 Valid CSS Driven by DokuWiki