Porting my Nagios Plugins to Python
Binary Talks | (1)
I've just started to rewrite my sh written Nagios Plugins in Python, mainly to get a feeling for writing Python code. First steps with writing object-orientated code were... "not so good, Al!" as Weezer would have said to this. Therefore I've began with some lines of functional programming. That'll do the job for now.
Below you'll see a rudimentary plugin to check the Apache's server-status page. Note that it will never go critical at this time. I was just playing around with retrieving a file, putting the content into a dictionary and then transforming it to a proper output which Nagios ...