def get():
    """ Get all nagios status information from a local nagios instance
    """
    livestatus = mk_livestatus()
    hosts = livestatus.get_hosts()
    services = livestatus.get_services()
    result = {}
    result['hosts'] = hosts
    result['services'] = services
    return result
def get ( ) : livestatus = mk_livestatus ( ) hosts = livestatus . get_hosts ( ) services = livestatus . get_services ( ) result = { } result [ 'hosts' ] = hosts result [ 'services' ] = services return result
Get all nagios status information from a local nagios instance