Posts Tagged ‘libraries’

Python’s BaseHTTPServer a Nagios Replacement

November 5th, 2008

I’ve only just noticed this and I’ve been coding Python for a couple of years now.  I’m talking about BaseHTTPServer.  Now why I’m mentioning Nagios too is this: the library works on all OS’s (the ones that matter) and it can perform system commands before returning the output to the user as a simple HTTP response.

Imagine the endless possibilities (except the security risks)!!!  You can get full blown system information for a central monitoring server – much like Nagios.  But it won’t be really unfriendly and rubbish – like Nagios.  It’ll be all nice and Python-y.  Just like Python.

So thats my idea – Using BaseHTTPServer to create mini servers on satalite servers/PCs that report back to a central server.

Aren’t I a genius.

Please don’t steal my idea.  It’s mine.  In fact if I find anyone has built this I will sue.  Even if you built it before this post was made – I’ll sue.  Because I can and it’ll make me feel special.

Nagios here I come!!!

[I found out about BaseHTTPServer from the Python Cookbook - which I've yet to finish]