diff --git a/sysSentry-1.0.2/src/python/sentryPlugins/avg_block_io/avg_block_io.py b/sysSentry-1.0.2/src/python/sentryPlugins/avg_block_io/avg_block_io.py index fdad9950138ae0211a8b6a0695bdb4a2a2a74799..f3ade09686a8afc1960ba149338afe0002fe53c1 100644 --- a/sysSentry-1.0.2/src/python/sentryPlugins/avg_block_io/avg_block_io.py +++ b/sysSentry-1.0.2/src/python/sentryPlugins/avg_block_io/avg_block_io.py @@ -45,7 +45,7 @@ def read_config_common(config): stage = [] if stage_name == "default" else stage_name.split(",") except configparser.NoOptionError: stage = [] - logging.warning("Unset common.stage, set to read,write") + logging.warning("Unset common.stage, set to default") if len(disk) > 10: logging.warning("Too many common.disks, record only max 10 disks") @@ -61,7 +61,7 @@ def read_config_common(config): except configparser.NoOptionError: iotype_list = ["read", "write"] - logging.warning("Unset common.iotype, set to default") + logging.warning("Unset common.iotype, set to read,write") try: period_time = int(config.get("common", "period_time")) diff --git a/sysSentry-1.0.2/src/python/sentryPlugins/avg_block_io/utils.py b/sysSentry-1.0.2/src/python/sentryPlugins/avg_block_io/utils.py index cef1eddfb0f00e1fd869992d5cbf23910a5c1f1b..c381c078c1e6de36673392e4d8df5928bd4f672e 100644 --- a/sysSentry-1.0.2/src/python/sentryPlugins/avg_block_io/utils.py +++ b/sysSentry-1.0.2/src/python/sentryPlugins/avg_block_io/utils.py @@ -64,7 +64,7 @@ def get_section_value(section_name, config): report_alarm_fail(f"Invalid {section_name}.{config_key} config.") common_param[config_key] = int(config_sec[config_key]) else: - logging.warning(f"Unset {section_name}.{config_key} in config file, use {DEFAULT_PARAM[section_name][config_key]} as default") + logging.warning(f"Unset {section_name}.{config_key} in config file, use {DEFAULT_PARAM[section_name][config_key]} as default") common_param[config_key] = DEFAULT_PARAM[section_name][config_key] return common_param