def main(): client = Client("cream_serviceInfo", "1.0") client.createParser("FALSE") client.readOptions() try: client.checkProxy() data = client.serviceInfo() datv = data.split("\n") client.nagiosExit(client.OK, "OK: " + datv[1]) except Exception as ex: client.nagiosExit(client.UNKNOWN, ex)