Exemplo n.º 1
0
def schedule_recheck_host_services(host_name):
    """ Given a host_name schedule a recheck of all of the services.
    """
    action.schedule_service_check(host_name, service_name)
    return jsonify( {'host_name': host_name,
        'message': 'All services on host %(host_name)s have been scheduled for a recheck as soon as possible' % locals()})
Exemplo n.º 2
0
def schedule_recheck_service(host_name, service_name):
    """ Given a host_name and service_name schedule a recheck of the sevice.
    """
    action.schedule_service_check(host_name, service_name)
    return jsonify( {'host_name': host_name, 'service_name': service_name,
        'message': 'Check %(service_name)s on %(host_name)s has been scheduled for a recheck as soon as possible' % locals() })