Simple status reporting websites
Each check comes in the form of a python function in the checks folder, the filename may be arbitrary
def check_https(host):
...
Each check must also return a dictionary, containing the keys success and message.
A check may optionally return a history=False in order to turn off the default history recording
return dict(success=True, message='My check properly returns data!', history=False)
All function names starting with __ are ignored
Running objstat requires some knowledge of the checks written.
Command line arguments are parsed directly into the checks themselves, the func parameter tells objstat which check to make use of, 3 checks are available by default, check_nfs, check_http and check_https. All arguments after this initial check specification are parsed as kwargs into the check function itself
For example, to call a method check_https with the parameters host, we would use:
user@host - $ objstat.py func check_https host twitter.com
user@host - $ python -m SimpleHTTPServer
And navigate to http://localhost:8000
Crontab can be used to automatically run checks.
*/30 * * * * objstat.py func check_http host www.reddit.com
*/15 * * * * objstat.py func check_https host twitter.com