Esempio n. 1
0
def show_server_ver(user, password, url, cgibin):
    mon = MonitoringAPI(url, user, password, cgibin)
    client = mon.get_client()

    print "Got a client for %s%d (%s) connected to %s %s at %s" % (
        client.system_name, client.system_major_version, client.classname,
        client.system_name, client.system_full_version, client.base_url)
Esempio n. 2
0
def show_service_status(host, service, user, password, url, cgibin):
    mon = MonitoringAPI(url, user, password, cgibin)
    client = mon.get_client()

    status = client.get_service_information(host, service)
    pprint.pprint(status)