de-ibh / cmk_cisco-dom Goto Github PK
View Code? Open in Web Editor NEWCheckMK: monitor Cisco Digital-Optical-Monitoring values using SNMP
License: GNU General Public License v2.0
CheckMK: monitor Cisco Digital-Optical-Monitoring values using SNMP
License: GNU General Public License v2.0
The perf string 'power level' appears to cause problems with Check_MK Raw 1.5.0 (p16 and p18 at least):
2019-06-24 10:22:50,077 [40] [cmk.web 125727] Failed to parse perfdata 'power level=-6.2;-9.5:-3.0;-13.5:1.0;; deviation=-0.1;-1.0:1.0;-2.0:2.0;;'
Traceback (most recent call last):
File "/omd/sites/nuki/share/check_mk/web/htdocs/metrics.py", line 562, in parse_perf_data
varname, values = part.split("=", 1)
ValueError: need more than 1 value to unpack
2019-06-24 10:22:53,036 [40] [cmk.web 125579] Failed to parse perfdata 'power level=-6.5;-19.0:-3.0;-23.0:1.0;; deviation=0.0;-1.0:1.0;-2.0:2.0;;'
Traceback (most recent call last):
File "/omd/sites/nuki/share/check_mk/web/htdocs/metrics.py", line 562, in parse_perf_data
varname, values = part.split("=", 1)
ValueError: need more than 1 value to unpack
2019-06-24 10:22:53,040 [40] [cmk.web 125579] Failed to parse perfdata 'power level=-6.2;-9.5:-3.0;-13.5:1.0;; deviation=-0.1;-1.0:1.0;-2.0:2.0;;'
Traceback (most recent call last):
File "/omd/sites/nuki/share/check_mk/web/htdocs/metrics.py", line 562, in parse_perf_data
varname, values = part.split("=", 1)
ValueError: need more than 1 value to unpack
2019-06-24 10:25:29,430 [40] [cmk.web 125727] Failed to parse perfdata 'power level=-0.9;-19.0:-3.0;-23.0:1.0;; deviation=0.1;-1.0:1.0;-2.0:2.0;;'
Traceback (most recent call last):
File "/omd/sites/nuki/share/check_mk/web/htdocs/metrics.py", line 562, in parse_perf_data
varname, values = part.split("=", 1)
ValueError: need more than 1 value to unpack
2019-06-24 10:25:29,439 [40] [cmk.web 125727] Failed to parse perfdata 'power level=0.4;-19.0:-3.0;-23.0:1.0;; deviation=0.1;-1.0:1.0;-2.0:2.0;;'
Traceback (most recent call last):
File "/omd/sites/nuki/share/check_mk/web/htdocs/metrics.py", line 562, in parse_perf_data
varname, values = part.split("=", 1)
ValueError: need more than 1 value to unpack
The result seems to be that devices using the plugin does not graph properly - even for unrelated services it seems.
Hello,
the check dont seem to detect DOM on a Cisco 3850
Thanks,
I'm using this plugin to monitor some interfaces with the X2 converter (cvr-x2-sfp10g ). Specially I'm using some CWDM optics into this converter. The converter is marked as LR so the thresholds are those of a LR optics, but the CWDM optics have different ones. The result is a warning or a critical alarm. Is it possible to add a feature to manually set thresholds?
There seems to be an issue rendering the perf-o-meter due to malformed perf_data_strings
supplied by the cisco_dom
check. I'm using Check_MK 1.2.8p12. I've supplied an image of the error and both the exception and the local variables.
. | . |
---|---|
Crash Type | gui |
Time | 2017-02-28 09:55:26 |
Operating System | trusty |
Check_MK Version | 1.2.8p12 |
Python Version | 2.7.6 (default, Oct 26 2016, 20:33:43) [GCC 4.8.4] |
ValueError (need more than 1 value to unpack)
Traceback
File "/omd/sites/master/share/check_mk/web/htdocs/index.py", line 136, in handler
handler()
File "/omd/sites/master/share/check_mk/web/htdocs/views.py", line 792, in page_view
show_view(view, True, True, True)
File "/omd/sites/master/share/check_mk/web/htdocs/views.py", line 1163, in show_view
browser_reload)
File "/omd/sites/master/share/check_mk/web/htdocs/views.py", line 1270, in render_view
show_checkboxes and not html.do_actions())
File "/omd/sites/master/share/check_mk/web/plugins/views/layouts.py", line 237, in render_grouped_boxes
render_group(header, rows)
File "/omd/sites/master/share/check_mk/web/plugins/views/layouts.py", line 226, in render_group
paint(p, row)
File "/omd/sites/master/share/check_mk/web/htdocs/views.py", line 2088, in paint
tdclass, content = prepare_paint(p, row)
File "/omd/sites/master/share/check_mk/web/htdocs/views.py", line 2125, in prepare_paint
tdclass, content = paint_painter(painter, row)
File "/omd/sites/master/share/check_mk/web/htdocs/views.py", line 2110, in paint_painter
return painter["paint"](row)
File "/omd/sites/master/share/check_mk/web/plugins/views/perfometer.py", line 129, in paint_perfometer
perf_data, check_command = metrics.parse_perf_data(perf_data_string, row["service_check_command"])
File "/omd/sites/master/share/check_mk/web/htdocs/metrics.py", line 344, in parse_perf_data
varname, values = part.split("=", 1)
{'check_command': u'check_mk-cisco_dom',
'isdigit': <function isdigit at 0x7fa7acd90848>,
'part': u'power',
'parts': [u'power',
u'level=-18.6;-15.8:-1.0;-19.8:1.9;;',
u'deviation=0.0;-1.0:1.0;-2.0:2.0;;'],
'perf_data': [],
'perf_data_string': u'power level=-18.6;-15.8:-1.0;-19.8:1.9;; deviation=0.0;-1.0:1.0;-2.0:2.0;;'}
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.