One site in distributed monitoring fails with 'site_id' is missing

Hello all,

In cmk_raw 2.0.0p15 on all my sites, I have one main monitoring site which connects to 3 other ones.

  • 1 of them doesn’t use replication, and is OK
  • 1 of the uses replication, and is OK
  • The other uses also replication, but fails at synchronisation with a “site_id” is missing.

I’ve tried twice to rename the distant site or to recreate the site from scratch, to no avail.

The site ID and alias are both given by my configuration.

Here is the trace :

Started at: 16:23:59. Finished at: 16:23:59.
Got invalid data:
Internal automation error: The parameter "site_id" is missing.
Traceback (most recent call last):
  File "/omd/sites/outscalecloud/lib/python3/cmk/gui/wato/pages/automation.py", line 170, in _execute_automation_command
    html.write(repr(automation.execute(automation.get_request())))
  File "/omd/sites/outscalecloud/lib/python3/cmk/gui/watolib/activate_changes.py", line 2264, in get_request
    site_id = SiteId(_request.get_ascii_input_mandatory("site_id"))
  File "/omd/sites/outscalecloud/lib/python3/cmk/gui/http.py", line 280, in get_ascii_input_mandatory
    return mandatory_parameter(varname, self.get_ascii_input(varname, deflt))
  File "/omd/sites/outscalecloud/lib/python3/cmk/gui/http.py", line 232, in mandatory_parameter
    raise MKUserError(varname, _("The parameter \"%s\" is missing.") % varname)
cmk.gui.exceptions.MKUserError: The parameter "site_id" is missing.

Thanks in advance for your return, and have a nice day !

Philippe

Maybe this helps: 1.6.0p27.cre: site rename still have old site name - #2 by kdeutsch
Be careful on the command line though.

1 Like

Hello Robin.

This doesn’t seem to be related, as the values in sites.mk are OK.
If I delete the connection, the connection disappears fine in the UI and in the sites.mk file.

BTW, the error is raised on the client side : in the web.log, I can find these error lines on each synchronization attempt :

2021-11-25 09:52:07,217 [40] [cmk.web 32751] http://192.168.2.104:5000/outscalecloud/check_mk/automation.py/outscalecloud/check_mk/automation.py?command=receive-config-sync&debug=&secret=XXXXXXXXXX error executing automation command
Traceback (most recent call last):
File “/omd/sites/outscalecloud/lib/python3/cmk/gui/wato/pages/automation.py”, line 170, in _execute_automation_command
html.write(repr(automation.execute(automation.get_request())))
File “/omd/sites/outscalecloud/lib/python3/cmk/gui/watolib/activate_changes.py”, line 2264, in get_request
site_id = SiteId(_request.get_ascii_input_mandatory(“site_id”))
File “/omd/sites/outscalecloud/lib/python3/cmk/gui/http.py”, line 280, in get_ascii_input_mandatory
return mandatory_parameter(varname, self.get_ascii_input(varname, deflt))
File “/omd/sites/outscalecloud/lib/python3/cmk/gui/http.py”, line 232, in mandatory_parameter
raise MKUserError(varname, _(“The parameter "%s" is missing.”) % varname)
cmk.gui.exceptions.MKUserError: The parameter “site_id” is missing.

We’ve found the problem. The website was accessed through 1 Nginx redirecting to an Apache redirecting to the OMD Apache. We’ve removed the extra Apache and everything works OK now.

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed. Contact an admin if you think this should be re-opened.