Commit af9b06a8 authored by Adam Wujek's avatar Adam Wujek 💬

[BUG:#1] userspace/snmp: fix syslog message when dot-config contains errors

when query OID wrsBootConfigStatus
from:
SNMP: Error wrsBootSuccessful: Unable to read status file for wrsBootConfigStatus
to:
SNMP: Config file is not valid or too short (less than 200 characters)
Signed-off-by: Adam Wujek's avatarAdam Wujek <adam.wujek@cern.ch>
parent 21df5230
......@@ -114,7 +114,7 @@ time_t wrsOSStatus_data_fill(void)
}
if (b->wrsBootConfigStatus == WRS_CONFIG_STATUS_CHECK_ERROR) {
o->wrsBootSuccessful = WRS_BOOT_SUCCESSFUL_ERROR;
snmp_log(LOG_ERR, "SNMP: " SL_ER " %s: Unable to read status file for wrsBootConfigStatus\n",
snmp_log(LOG_ERR, "SNMP: " SL_ER " %s: Config file is not valid or too short (less than 200 characters)\n",
slog_obj_name);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment