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.
git clone http://quadpoint.org/git/newsmon
or download a snapshot.
newsmon does not matter. Put it where it is convenient for you.config.py.dist file to config.py. Do this in Windows Explorer if your platform is Windows.cp config.py.dist config.py
config.py as documented in the file.
Passing -v as an argument to newsmon.py will turn on verbose mode.
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.
Run in the foreground:
python newsmon.py
Run in the background:
python bgproc.py C:\path\to\python.exe newsmon.py
Use the git revision control program to pull updates.
Run
git pull
from the newsmon directory.