Git Product home page Git Product logo

cmk_cisco-dom's People

Contributors

liske avatar philippkilian avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Forkers

liske tmuncks

cmk_cisco-dom's Issues

perf data with spaces appear to cause problems with 1.5.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.

Feature Request: Manually set thresholds

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?

Error processing perfdatastring with Check_MK 1.2.8p12

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.

image

. .
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]

Exception

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)

Local Variables

{'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;;'}

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.