Skip to content

rcrowley/pagerunit

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

34 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PagerUnit

A simple Nagios alternative made to look like unit tests.

This is probably a bad idea but I wanted to get something on paper (as it were) so I could get back to real work.

Usage

Configure PagerUnit so it can send email in /etc/pagerunit.cfg or ~/.pagerunit.cfg:

[mail]
address = recipient@example.com

[smtp]
password = password
port = 587
server = smtp.gmail.com
username = sender@gmail.com

Define some tests a la Nose:

def foo():
    """
    Docstring for foo.
    """
    assert False, 'Assertion for foo.'

Run them every 10 seconds:

pagerunit --loop example.py

Installation

Prerequisites:

  • Python >= 2.6

From source

git clone git://github.com/rcrowley/pagerunit.git
cd pagerunit && make && sudo make install

From DevStructure's Debian archive

echo "deb http://packages.devstructure.com release main" | sudo tee /etc/apt/sources.list.d/devstructure.list
sudo wget -O /etc/apt/trusted.gpg.d/devstructure.gpg http://packages.devstructure.com/keyring.gpg
sudo apt-get update
sudo apt-get -y install pagerunit

Replace release with "lenny", "squeeze", "lucid", "maverick", or "natty" as your situation requires.

From PyPI

pip install pagerunit

About

A simple Nagios alternative made to look like unit tests.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages