check_mk-check-nfsiostat/web/plugins/wato/check_parameters_nfsiostat.py

114 lines
4.2 KiB
Python
Raw Normal View History

2018-09-05 23:52:16 +03:00
register_check_parameters(
subgroup_storage,
"nfsiostats",
_("NFS IO Statistics"),
Dictionary(
title=_("NFS IO Statistics"),
optional_keys=True,
elements=[
("op_s",
Tuple(
title=_("Operations"),
elements=[
2018-09-14 18:27:05 +03:00
Float(title=_("Warning at"), default_value=None, unit="1/s"),
Float(title=_("Critical at"), default_value=None, unit="1/s"),
2018-09-05 23:52:16 +03:00
])),
("rpc_backlog",
Tuple(
title=_("RPC Backlog"),
elements=[
2018-09-14 18:27:05 +03:00
Float(title=_("Warning below"), default_value=None, unit="queue"),
Float(title=_("Critical below"), default_value=None, unit="queue"),
2018-09-05 23:52:16 +03:00
])),
("read_ops",
Tuple(
2018-09-14 18:27:05 +03:00
title=_("Read Operations /s"),
2018-09-05 23:52:16 +03:00
elements=[
2018-09-14 18:27:05 +03:00
Float(title=_("Warning at"), default_value=None, unit="1/s"),
Float(title=_("Critical at"), default_value=None, unit="1/s"),
2018-09-05 23:52:16 +03:00
])),
("read_b_s",
Tuple(
2018-09-14 18:27:05 +03:00
title=_("Reads size /s"),
2018-09-05 23:52:16 +03:00
elements=[
2018-09-14 18:27:05 +03:00
Float(title=_("Warning at"), default_value=None, unit="bytes/s"),
Float(title=_("Critical at"), default_value=None, unit="bytes/s"),
2018-09-05 23:52:16 +03:00
])),
("read_b_op",
Tuple(
2018-09-14 18:27:05 +03:00
title=_("Read bytes per operation"),
2018-09-05 23:52:16 +03:00
elements=[
2018-09-14 18:27:05 +03:00
Float(title=_("Warning at"), default_value=None, unit="bytes/op"),
Float(title=_("Critical at"), default_value=None, unit="bytes/op"),
2018-09-05 23:52:16 +03:00
])),
("read_retrans",
Tuple(
title=_("Read Retransmissions"),
elements=[
2018-09-14 18:27:05 +03:00
Percentage(title=_("Warning at"), default_value=None),
Percentage(title=_("Critical at"), default_value=None),
2018-09-05 23:52:16 +03:00
])),
("read_avg_rtt_ms",
Tuple(
title=_("Read Average RTT (ms)"),
elements=[
2018-09-14 18:27:05 +03:00
Float(title=_("Warning at"), default_value=None, unit="ms"),
Float(title=_("Critical at"), default_value=None, unit="ms"),
2018-09-05 23:52:16 +03:00
])),
("read_avg_exe_ms",
Tuple(
title=_("Read Average Executions (ms)"),
elements=[
2018-09-14 18:27:05 +03:00
Float(title=_("Warning at"), default_value=None, unit="ms"),
Float(title=_("Critical at"), default_value=None, unit="ms"),
2018-09-05 23:52:16 +03:00
])),
("write_ops_s",
Tuple(
title=_("Write Operations/s"),
elements=[
2018-09-14 18:27:05 +03:00
Float(title=_("Warning at"), default_value=None, unit="1/s"),
Float(title=_("Critical at"), default_value=None, unit="1/s"),
2018-09-05 23:52:16 +03:00
])),
("write_b_s",
Tuple(
2018-09-14 18:27:05 +03:00
title=_("Write size /s"),
2018-09-05 23:52:16 +03:00
elements=[
2018-09-14 18:36:46 +03:00
Float(title=_("Warning at"), default_value=None, unit="bytes/s"),
Float(title=_("Critical at"), default_value=None, unit="bytes/s"),
2018-09-05 23:52:16 +03:00
])),
("write_b_op",
Tuple(
2018-09-14 18:27:05 +03:00
title=_("Write bytes per operation"),
2018-09-05 23:52:16 +03:00
elements=[
2018-09-14 18:36:46 +03:00
Float(title=_("Warning at"), default_value=None, unit="bytes/s"),
Float(title=_("Critical at"), default_value=None, unit="bytes/s"),
2018-09-05 23:52:16 +03:00
])),
("write_retrans",
Tuple(
title=_("Write Retransmissions"),
elements=[
2018-09-14 18:36:46 +03:00
Percentage(title=_("Warning at"), default_value=None),
Percentage(title=_("Critical at"), default_value=None),
2018-09-05 23:52:16 +03:00
])),
("write_avg_rtt_ms",
Tuple(
title=_("Write Avg RTT (ms)"),
elements=[
2018-09-14 18:36:46 +03:00
Float(title=_("Warning at"), default_value=None, unit="ms"),
Float(title=_("Critical at"), default_value=None, unit="ms"),
2018-09-05 23:52:16 +03:00
])),
("write_avg_exe_ms",
Tuple(
title=_("Write Avg exe (ms)"),
elements=[
2018-09-14 18:36:46 +03:00
Float(title=_("Warning at"), default_value=None, unit="ms"),
Float(title=_("Critical at"), default_value=None, unit="ms"),
2018-09-05 23:52:16 +03:00
])),
]
),
TextAscii(
title=_("NFS IO Statistics"),
),
match_type="dict",
)