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 44c65a6e authored by thl-cmk's avatar thl-cmk :flag_na:
Browse files

update project

parent 6e4c0173
No related branches found
No related tags found
No related merge requests found
...@@ -22,12 +22,10 @@ ...@@ -22,12 +22,10 @@
# #
factory_settings['iferrordetails_defaults'] = { factory_settings['iferrordetails_defaults'] = {
'notFound': 3, 'notFound': 3,
} }
########################################################################### ###########################################################################
# #
# DATA Parser function # DATA Parser function
...@@ -113,6 +111,9 @@ def parse_iferrordetails(info): ...@@ -113,6 +111,9 @@ def parse_iferrordetails(info):
dot3StatsSymbolErrors, dot3StatsDuplexStatus, dot3StatsRateControlAbility, \ dot3StatsSymbolErrors, dot3StatsDuplexStatus, dot3StatsRateControlAbility, \
dot3StatsRateControlStatus = entry dot3StatsRateControlStatus = entry
ifName = 'unknown'
ifOperStatus = '4'
for interface in interfaces: for interface in interfaces:
if ifIndex == interface[0]: if ifIndex == interface[0]:
ifIndex, ifName, ifOperStatus = interface ifIndex, ifName, ifOperStatus = interface
...@@ -122,8 +123,6 @@ def parse_iferrordetails(info): ...@@ -122,8 +123,6 @@ def parse_iferrordetails(info):
else: else:
dot3StatsDuplexStatus = get_dot3StatsDuplexStatus(dot3StatsDuplexStatus) dot3StatsDuplexStatus = get_dot3StatsDuplexStatus(dot3StatsDuplexStatus)
errorsDetails = { errorsDetails = {
'dot3StatsAlignmentErrors': int(dot3StatsAlignmentErrors), 'dot3StatsAlignmentErrors': int(dot3StatsAlignmentErrors),
'dot3StatsFCSErrors': int(dot3StatsFCSErrors), 'dot3StatsFCSErrors': int(dot3StatsFCSErrors),
...@@ -148,7 +147,6 @@ def parse_iferrordetails(info): ...@@ -148,7 +147,6 @@ def parse_iferrordetails(info):
return parsed return parsed
########################################################################### ###########################################################################
# #
# INVENTORY function # INVENTORY function
...@@ -160,7 +158,6 @@ def inventory_iferrordetails(parsed): ...@@ -160,7 +158,6 @@ def inventory_iferrordetails(parsed):
for entry in parsed.keys(): for entry in parsed.keys():
yield entry, {} yield entry, {}
########################################################################### ###########################################################################
# #
# CHECK function # CHECK function
...@@ -201,11 +198,10 @@ def check_iferrordetails(item, params, parsed): ...@@ -201,11 +198,10 @@ def check_iferrordetails(item, params, parsed):
('dot3statssymbolerrors', errorDetails['dot3StatsSymbolErrors']), ('dot3statssymbolerrors', errorDetails['dot3StatsSymbolErrors']),
] ]
yield state, infotext + longoutput, perfdata return state, infotext + longoutput, perfdata
else: else:
yield params['notFound'], 'item missing' return params['notFound'], 'item missing'
########################################################################### ###########################################################################
# #
......
No preview for this file type
...@@ -8,4 +8,4 @@ ...@@ -8,4 +8,4 @@
'title': u'CInterface error details', 'title': u'CInterface error details',
'version': '20200403.v0.0.1', 'version': '20200403.v0.0.1',
'version.min_required': '1.2.8b8', 'version.min_required': '1.2.8b8',
'version.packaged': '1.6.0p8'} 'version.packaged': '1.4.0p38'}
\ No newline at end of file \ No newline at end of file
...@@ -54,18 +54,8 @@ metric_info['iferrordetails_dot3statsfcserrors'] = { ...@@ -54,18 +54,8 @@ metric_info['iferrordetails_dot3statsfcserrors'] = {
'unit' : 'count', 'unit' : 'count',
'color' : '12/a', 'color' : '12/a',
} }
metric_info['iferrordetails_dot3statssinglecollisionframes'] = {
'title' : _('Single collision frames'),
'unit' : 'count',
'color' : '13/a',
}
metric_info['iferrordetails_dot3statsmultiplecollisionframes'] = {
'title' : _('Multiple collision frames'),
'unit' : 'count',
'color' : '14/a',
}
metric_info['iferrordetails_dot3statssqetesterrors'] = { metric_info['iferrordetails_dot3statssqetesterrors'] = {
'title' : _('sqe test errors'), 'title' : _('SQE test errors'),
'unit' : 'count', 'unit' : 'count',
'color' : '15/a', 'color' : '15/a',
} }
...@@ -74,23 +64,18 @@ metric_info['iferrordetails_dot3statsdeferredtransmissions'] = { ...@@ -74,23 +64,18 @@ metric_info['iferrordetails_dot3statsdeferredtransmissions'] = {
'unit' : 'count', 'unit' : 'count',
'color' : '16/a', 'color' : '16/a',
} }
metric_info['iferrordetails_dot3statslatecollisions'] = {
'title' : _('Late collisions'),
'unit' : 'count',
'color' : '21/a',
}
metric_info['iferrordetails_dot3statsexcessivecollisions'] = {
'title' : _('Excessive collisions'),
'unit' : 'count',
'color' : '22/a',
}
metric_info['iferrordetails_dot3statsinternalmactransmiterr'] = { metric_info['iferrordetails_dot3statsinternalmactransmiterr'] = {
'title' : _('internal MAC transmit errors'), 'title' : _('intern. MAC transmit errors'),
'unit' : 'count', 'unit' : 'count',
'color' : '23/a', 'color' : '23/a',
} }
metric_info['iferrordetails_dot3statsinternalmacreceiveerrors'] = {
'title': _('intern. MAC receive errors'),
'unit': 'count',
'color': '26/a',
}
metric_info['iferrordetails_dot3statscarriersenseerrors'] = { metric_info['iferrordetails_dot3statscarriersenseerrors'] = {
'title' : _('Sarrier sense errors'), 'title' : _('Carrier sense errors'),
'unit' : 'count', 'unit' : 'count',
'color' : '24/a', 'color' : '24/a',
} }
...@@ -99,17 +84,32 @@ metric_info['iferrordetails_dot3statsframetoolongs'] = { ...@@ -99,17 +84,32 @@ metric_info['iferrordetails_dot3statsframetoolongs'] = {
'unit' : 'count', 'unit' : 'count',
'color' : '25/a', 'color' : '25/a',
} }
metric_info['iferrordetails_dot3statsinternalmacreceiveerrors'] = {
'title' : _('Internal MAC receive errors'),
'unit' : 'count',
'color' : '26/a',
}
metric_info['iferrordetails_dot3statssymbolerrors'] = { metric_info['iferrordetails_dot3statssymbolerrors'] = {
'title' : _('Symbol errors'), 'title' : _('Symbol errors'),
'unit' : 'count', 'unit' : 'count',
'color' : '31/a', 'color' : '31/a',
} }
metric_info['iferrordetails_dot3statssinglecollisionframes'] = {
'title' : _('Single collisions'),
'unit' : 'count',
'color' : '13/a',
}
metric_info['iferrordetails_dot3statsmultiplecollisionframes'] = {
'title' : _('Multiple collisions'),
'unit' : 'count',
'color' : '23/a',
}
metric_info['iferrordetails_dot3statslatecollisions'] = {
'title': _('Late collisions'),
'unit': 'count',
'color': '33/a',
}
metric_info['iferrordetails_dot3statsexcessivecollisions'] = {
'title': _('Excessive collisions'),
'unit': 'count',
'color': '43/a',
}
###################################################################################################################### ######################################################################################################################
# #
...@@ -121,13 +121,13 @@ graph_info.append({ ...@@ -121,13 +121,13 @@ graph_info.append({
'title': _('Interface error details'), 'title': _('Interface error details'),
'metrics': [ 'metrics': [
('iferrordetails_dot3statsalignmenterrors', 'line'), ('iferrordetails_dot3statsalignmenterrors', 'line'),
('iferrordetails_dot3statsfcserrors', 'line'),
('iferrordetails_dot3statssqetesterrors', 'line'),
('iferrordetails_dot3statsdeferredtransmissions', 'line'),
('iferrordetails_dot3statsinternalmactransmiterr', 'line'),
('iferrordetails_dot3statsinternalmacreceiveerrors', 'line'),
('iferrordetails_dot3statscarriersenseerrors', 'line'), ('iferrordetails_dot3statscarriersenseerrors', 'line'),
('iferrordetails_dot3statsdeferredtransmissions', 'line'),
('iferrordetails_dot3statsfcserrors', 'line'),
('iferrordetails_dot3statsframetoolongs', 'line'), ('iferrordetails_dot3statsframetoolongs', 'line'),
('iferrordetails_dot3statsinternalmacreceiveerrors', 'line'),
('iferrordetails_dot3statsinternalmactransmiterr', 'line'),
('iferrordetails_dot3statssqetesterrors', 'line'),
('iferrordetails_dot3statssymbolerrors', 'line'), ('iferrordetails_dot3statssymbolerrors', 'line'),
], ],
}) })
......
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