Collection of CheckMK checks (see https://checkmk.com/). All checks and plugins are provided as is. Absolutely no warranty. Send any comments to thl-cmk[at]outlook[dot]com

Skip to content
Snippets Groups Projects
Commit 87abfac3 authored by thl-cmk's avatar thl-cmk :flag_na:
Browse files

Delete checkpoint_asg_path_distribution.py

parent a4a18aed
No related branches found
No related tags found
No related merge requests found
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
#
#
from cmk.gui.i18n import _
from cmk.gui.valuespec import (
Dictionary,
TextAscii,
Tuple,
Integer,
)
from cmk.gui.plugins.wato import (
CheckParameterRulespecWithItem,
rulespec_registry,
RulespecGroupCheckParametersNetworking,
)
def _parameter_valuespec_checkpoint_asg_path_distribution():
return Dictionary(elements=[
('levels_upper_acceleration',
Tuple(
title=_('Maximum Acceleration path counter'),
elements=[
Integer(title=_('Warning at'), minvalue=0,),
Integer(title=_('Critical at'), minvalue=0,),
])),
('levels_lower_acceleration',
Tuple(
title=_('Minimum Acceleration path counter'),
elements=[
Integer(title=_('Warning blow'), minvalue=0, ),
Integer(title=_('Critical below'), minvalue=0,),
])),
('levels_upper_medium',
Tuple(
title=_('Maximum Medium path counter'),
elements=[
Integer(title=_('Warning at'), minvalue=0, ),
Integer(title=_('Critical at'), minvalue=0, ),
])),
('levels_lower_medium',
Tuple(
title=_('Minimum Medium path counter'),
elements=[
Integer(title=_('Warning blow'), minvalue=0, ),
Integer(title=_('Critical below'), minvalue=0, ),
])),
('levels_upper_firewall',
Tuple(
title=_('Maximum Firewall path counter'),
elements=[
Integer(title=_('Warning at'), minvalue=0, ),
Integer(title=_('Critical at'), minvalue=0, ),
])),
('levels_lower_firewall',
Tuple(
title=_('Minimum Firewall path counter'),
elements=[
Integer(title=_('Warning blow'), minvalue=0, ),
Integer(title=_('Critical below'), minvalue=0, ),
])),
('levels_upper_dropped',
Tuple(
title=_('Maximum Dropped counter'),
elements=[
Integer(title=_('Warning at'), minvalue=0, ),
Integer(title=_('Critical at'), minvalue=0, ),
])),
('levels_lower_dropped',
Tuple(
title=_('Minimum Dropped counter'),
elements=[
Integer(title=_('Warning blow'), minvalue=0, ),
Integer(title=_('Critical below'), minvalue=0, ),
])),
])
rulespec_registry.register(
CheckParameterRulespecWithItem(
check_group_name='checkpoint_asg_path_distribution',
group=RulespecGroupCheckParametersNetworking,
match_type='dict',
parameter_valuespec=_parameter_valuespec_checkpoint_asg_path_distribution,
title=lambda: _('Check Point ASG path distribution'),
item_spec=lambda: TextAscii(title=_('Counter name'), ),
))
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment