def report_check_errors_in_glusterd_log(ctx): process_log_file("/var/log/glusterfs/glusterd.log", callback_check_errors) if num_errors > 0: ctx.warning("Errors in Glusterd log file", num_errors=num_errors) if num_warning > 0: ctx.warning("Warnings in Glusterd log file", num_warning=num_warning)
def report_check_worker_restarts(ctx): process_log_file(GSYNCD_LOG_FILE, callback_worker_restarts, filter_worker_restarts) for k, v in worker_restarts_data.items(): if v <= 1: ctx.ok("No Gsyncd worker restart", brick=k) else: ctx.warning("Gsyncd worker restarted more than once", brick=k, num_restarts=v)
def report_check_version_or_cksum_errors_in_glusterd_log(ctx): process_log_file("/var/log/glusterfs/glusterd.log", callback_check_errors) if num_errors > 0: ctx.warning("version or cksum mismatch detected in Glusterd log file", num_errors=num_errors)