diff --git a/sysSentry-1.0.2/src/c/catcli/catlib/cat_structs.h b/sysSentry-1.0.2/src/c/catcli/catlib/cat_structs.h index a7bc5d03decd6afabd07d54d2d5b5f697855cb3b..b653d49e153f93d8aa0a9de5120070f1379a91a8 100644 --- a/sysSentry-1.0.2/src/c/catcli/catlib/cat_structs.h +++ b/sysSentry-1.0.2/src/c/catcli/catlib/cat_structs.h @@ -14,7 +14,7 @@ typedef enum { CAT_NOT_SUPPORTED = 102, // The feature is not supported CAT_GENERIC_ERROR = 103, // A generic, unspecified error CAT_LOAD_LIBRARY_FAIL = 104, // Load library fail - CAT_ALREADY_RUNNING = 105, // AN instance is already running + CAT_ALREADY_RUNNING = 105, // An instance is already running CAT_INVALID_PARAMETER = 106, // Invalid parameter } cat_return_t; // 巡检模块 diff --git a/sysSentry-1.0.2/src/python/syssentry/global_values.py b/sysSentry-1.0.2/src/python/syssentry/global_values.py index b123b2dcb7bcf8f94a30b43339f8f21dae5a038f..c6ebec97ad59f7d2f0d07a7a78a9d6aa671a98d0 100644 --- a/sysSentry-1.0.2/src/python/syssentry/global_values.py +++ b/sysSentry-1.0.2/src/python/syssentry/global_values.py @@ -129,7 +129,7 @@ class InspectTask: if self.heartbeat_interval > 0: self.last_heartbeat = time.perf_counter() return True, "start task success" - return True, "task is running, please wait finish" + return True, "task is running, please wait to finish" def stop(self): """stop""" diff --git a/sysSentry-1.0.2/src/python/syssentry/result.py b/sysSentry-1.0.2/src/python/syssentry/result.py index 61e8404a32a610845317f601265f8a2128fc1a0e..62ea22e95a7763110480dc0351778ae423060aa8 100644 --- a/sysSentry-1.0.2/src/python/syssentry/result.py +++ b/sysSentry-1.0.2/src/python/syssentry/result.py @@ -40,7 +40,7 @@ RESULT_INFO_MAX_LEN = 4096 RESULT_LEVEL_ERR_MSG_DICT = { ResultLevel.PASS.name : "", - ResultLevel.SKIP.name : "not supported.maybe some rpm package not be installed.", + ResultLevel.SKIP.name : "not supported. maybe some rpm package not be installed.", ResultLevel.FAIL.name : "FAILED. config may be incorrect or the command may be invalid/killed!", ResultLevel.MINOR_ALM.name : "the command output shows that the status is 'INFO' or 'GENERAL_WARN'.", ResultLevel.MAJOR_ALM.name : "the command output shows that the status is 'WARN' or 'IMPORTANT_WARN'.", diff --git a/sysSentry-1.0.2/src/python/syssentry/syssentry.py b/sysSentry-1.0.2/src/python/syssentry/syssentry.py index 26e11919ef56d91dc8b3912101f301dda644b8af..92bc0865b191f7489fd5ee31de7f02963a3be436 100644 --- a/sysSentry-1.0.2/src/python/syssentry/syssentry.py +++ b/sysSentry-1.0.2/src/python/syssentry/syssentry.py @@ -162,7 +162,7 @@ def process_and_update_task_result(result_msg_data: dict) -> bool: task = TasksMap.get_task_by_name(data_struct['task_name']) if not task: - logging.error("task '%s' do not exists!!", data_struct['task_name']) + logging.error("task '%s' does not exist!!", data_struct['task_name']) return False result_data = data_struct.get("result_data", {})