Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

perf data with spaces appear to cause problems with 1.5.0 #5

Open
tmuncks opened this issue Jun 24, 2019 · 0 comments
Open

perf data with spaces appear to cause problems with 1.5.0 #5

tmuncks opened this issue Jun 24, 2019 · 0 comments
Labels
Milestone

Comments

@tmuncks
Copy link

tmuncks commented Jun 24, 2019

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.

@liske liske added the bug label Apr 12, 2022
@liske liske added this to the 0.3 milestone Apr 12, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants