xb95/nagios-api — pull request #3 by bunjiboys (2012-01-11 17:22:25+00:00)
Title: New functionality and a couple of fixes

The following new calls have been added:

acknowledge_problem: Acknowledge either a host or service problem
remove_acknowledgement: Remove an existing acknowledgement from a host or service
add_comment: Adds a comment to a host or service
remove_comment: Removes a comment from a host or service

Fixes:
Changed the shebang to use /usr/bin/env to make it more portable, instead of relying on python in /usr/bin
Fixed the URL_REGEX to allow dashes in the objid matching, for hostnames with dashes in them.
Added "ensure_ascii=False" to the json dumps comment, to allow for non ASCII characters.
Changed the command generation in send_nagios_command to use unicode() instead of str() to allow for non-ASCII characters in the commands.