Updating old install

Hi,

First time poster :slight_smile:
So I’m trying to update a 1.2 install to 1.6 (I know) and I’m having two issues that I’m hoping people have come across.

1st) WAYS TO CALL, Exception no closing quotation
Following the update to 1.6, the Check_MK Discovery service now warns and says “Ways to call” and when you click on it, it says something about no closing quotations.

I have installed a brand new 1.6.0p6 install and when i add a new host, it still happens so i’m not sure if this is a bug.

I also updated 1.2 to 1.5 and the same happened.

2nd) Regardless of that, I’ve updated the 1.2 slave to 1.6 and when adding it to distributed monitoring with a 1.2 master (again, I know) the master syncs with the slave on discovery and then tries to copy all of its nodes onto the new slave!

Not sure if this is because it sees it as an update.

Any tips appreciated

Hi @Sheepykins and welcome to the checkmk Community.

Have you updated your agents to the new version too? The problem soundls like the new checkmk have problems understanding the output of your agents. Can you check, afterwards we would go further to find the problem.

Migrating from 1.2 to 1.6 is a hugh jump.

hi Tosch, Yep aware of the huge leap.
Yep, this happens witrh a 1.2 agent and the latest agent from the 1.6 install.

My colleague with has a 1.5 to 1.6 install, with 1.5 agents, and on his install the service reports fine, but when we add the same host to my 1.6 slave, the discovery service goes yellow again.

Are there any custom checks inside, any plugins which can cause the problem?

Can you provide some screenshots or more informations on the errors your are getting? Please censor sensible informations like IPs or hostnames.

Hi,

No custom plugins or checks. Agent came right from the installs default agent location, so no weird plugins baked in or anything (raw though anyway)

As for the screenshot, that will be difficult as the box is on a local network.

on the host view, the “exception no closing quotation” is under the perf-o-meter column.
If i click on it the service a big red banner saying “INTERNAL ERROR NO CLOSING QUOTATION” comes up at the top.

There is then a crash report on the service regarding several .PY files:

index.wsgi: line 101, 218
pages.py,lines 152, 46, 128,
views.py, lines 1260, 1438, 446
layouts.py, 130
utils.py, 1951, 1872, 1945
painters.py, 583
metrics.py, 262
and finally shlex.py, lines 279, 269, 96 and 172.

Appreciate thats a lot of line numbers. Could it be related to perfstats? We dont generally track perfstats on the discovery service - i did try and disable it via a Ruleset against this service but it made no difference

Okay remote-remote troubleshooting, interesting. :slight_smile:

Your backtrace looks like there is just a problem with generation of the page (and maybe perf-o-meters too). Your inventory should work anyway.

Can you run the inventory at the command line and see if it’s working without any error?

cmk -I -nvv <hostname>

Says: “Hostname or tag specification ‘nvv’ does not match any host”

Then try it combined, like so: cmk -Invv <hostname>

Same message comes out

Running “cmk --check-discovery hostname” brings back the results fine btw.
it tells me how many services im monitoring and how many i should be, so it should be green.

Updated the box fully today as well, no change.

No changes say there is no problem with the discovery function and it’s only a problem on drawing the page (perf-o-meters and so on).

I would need the full backtrace (copy’n’paste) to check where the problem resides, it’s difficult with just the line numbers you provi8ded.

I’ll try my best. Even if i have to write it out by hand :smiley:

Its just odd, the service doesnt look like it should be doing what it is supposed to.
So its yellow, in the “Status detail” it says “Ways to call” and then lists the CMK commands that can be used, suggesting its not using the right command. And then in the perf box it says exception: no closing quotations.

Do you really have no change to copy and paste it? Or take a picture of?

written by hand, a small labour of love <3

File “/omd/sites/SITE1/share/check_mk/web/app/index.wsgi”, line 101, in _process_request
self._handle_request()
File “/omd/sites/SITE1/share/check_mk/web/app/index.wsgi”, line 218, in _handle_request
handler()
File "/omd/sites/SITE1/lib/python/cmk/gui/pages.py, line 152, in
return lambda: handle_class().handle_page()
File "/omd/sites/SITE1/lib/python/cmk/gui/pages.py, line 46, in handle_page
self.page()
File "/omd/sites/SITE1/lib/python/cmk/gui/pages.py, line 128, in
“page”: lambda self: self._wrapped_callable0
File "/omd/sites/SITE1/lib/python/cmk/gui/views.py, line 1260, in page_view
show_view(view, view_renderer)
File "/omd/sites/SITE1/lib/python/cmk/gui/views.py, line 1438, in show_view
show_filters, unfiltered_amount_of_rows)
File "/omd/sites/SITE1/lib/python/cmk/gui/views.py, line 446, in render
not html.do_actions())
File "/omd/sites/SITE1/lib/python/cmk/gui/plugins/views/layouts.py, line 130, in render
cell.paint(row)
File "/omd/sites/SITE1/lib/python/cmk/gui/plugins/views/utils.py, line 1951, in paint
tdclass, content = self.render(row)
File "/omd/sites/SITE1/lib/python/cmk/gui/plugins/views/utils.py, line 1872, in render
tdclass, content = self.render_content(row)
File "/omd/sites/SITE1/lib/python/cmk/gui/plugins/views/utils.py, line 1945, in render_content
result = painter.render(row, self)
File "/omd/sites/SITE1/lib/python/cmk/gui/plugins/views/painters.py, line 583, in render
row[“service_check_command”])
File "/omd/sites/SITE1/lib/python/cmk/gui/metrics.py, line 262, in translate_perf_data
perf_data, check_command = parse_perf_data(perf_data_string, check_command)
File "/omd/sites/SITE1/lib/python/cmk/gui/metrics/utils.py, line 223, in parse_perf_data
parts = _split_perf_data(perf_data_string)
File "/omd/sites/SITE1/lib/python/cmk/gui/metrics/utils.py, line 272, in _split_perf_data
return shlex.split(perf_data_string)
File "/omd/sites/SITE1/lib/python2.7/shlex.py, line 279, in split
return list(lex)
File "/omd/sites/SITE1/lib/python2.7/shlex.py, line 269, in next
token = self.get_token()
File "/omd/sites/SITE1/lib/python2.7/shlex.py, line 96, in get_token
raw - self.read_token()
File "/omd/sites/SITE1/lib/python2.7/shlex.py, line 172, in read_token
raise ValueError, “no closing quotation”

There is something wrong with the performance data which causes the problem. Which check and which performance data I can’t see from the backtrace. But there you can start further investigation.

I’ve tried turning performance data off completely for that check and its still yellow.
And for the entire installation :smiley: and its still yellow.

Odd that it happens with a fresh install of check-mk-raw 1.6 as well

Parking that -
the other issue is that when I add the slave back in (same name, same ports, same URL identical slave config) the master tries to replicate all of its own nodes onto the new slave

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.