@@ -0,0 +1,1519 @@
+#!/usr/bin/python%0Aimport httplib, urllib%0Aimport socket%0A%0Aclass OpsviewServer(object):%0A    def __init__(self, domain, path='/', port=httplib.HTTPS_PORT):%0A        self.domain = domain%0A        self.path = path%0A        self.port = port%0A%0A    def _connect(self):%0A        pass%0A%0A    def getStatusAll(self):%0A        pass%0A%0A    def getStatusService(self, host, service):%0A        pass%0A%0A    def getStatusHost(self, host):%0A        pass%0A%0A    def getStatusHostgroup(self, hostgroup):%0A        pass%0A%0A    def acknowledgeService(self, host, service, comment, notify=True, auto_remove_comment=True):%0A        pass%0A%0A    def acknowledgeHost(self, host, comment, notify=True, auto_remove_comment=True):%0A        pass%0A%0A    def acknowledgeAll(self, comment, notify=True, auto_remove_comment=True):%0A        pass%0A%0A    def createHost(self, new_host_name):%0A        pass%0A%0A    def cloneHost(self, new_host_name, old_host_name):%0A        pass%0A%0A    def createHost(self, host):%0A        pass%0A%0A    def reload(self):%0A        pass%0A%0Aclass OpsviewHost(object):%0A    def __init__(self, name, services=None):%0A        self.name = name%0A        self.services = services or %5B%5D%0A%0A    def __str__(self):%0A        return self.name%0A%0A    def __repr__(self):%0A        return 'Host %25s (%25s)' & (self.name, self.services)%0A%0Aclass OpsviewService(object):%0A    def __init__(self, host, name):%0A        self.name = name%0A%0A    def __str__(self):%0A        return self.name%0A%0A    def __repr__(self):%0A        return 'Service %25s' %25 self.name%0A%0Aif __name__ == '__main__':%0A    #tests go here%0A    pass

structure stuff