Exemple #1
0
def reload_nagios():
    """ Reloads nagios. Returns "Success" on Success """
    daemon = Daemon()
    result = {}
    if daemon.reload() == 0:
        result['status'] = _("success")
        result['message'] = _('Nagios Successfully reloaded')
    else:
        result['status'] = _("error")
        result['message'] = _("Failed to reload nagios (config error?)")
    return result
Exemple #2
0
def reload_nagios():
    """ Reloads nagios. Returns "Success" on Success """
    daemon = Daemon()
    result = {}
    if daemon.reload() == 0:
        result['status'] = _("success")
        result['message'] = _('Nagios Successfully reloaded')
    else:
        result['status'] = _("error")
        result['message'] = _("Failed to reload nagios (config error?)")
    return result