lib and cli interface to nagios status.cgi