Problem:Memberserver - univention-run-diagnostic-checks

Problem

You are not able to use the univention-run-diagnostic-checks on the memberserver / managed node via the shell and you get this traceback:

Traceback (most recent call last):
  File "/usr/bin/univention-run-diagnostic-checks", line 168, in <module>
    sys.exit(CLIClient.main())
  File "/usr/bin/univention-run-diagnostic-checks", line 78, in main
    plugins = {plugin['id'] for plugin in client.umc_command('diagnostic/query').result}
  File "/usr/lib/python3/dist-packages/univention/lib/umc.py", line 484, in umc_command
    return self.request('POST', 'command/%s' % (path,), data, headers)
  File "/usr/lib/python3/dist-packages/univention/lib/umc.py", line 578, in request
    return self.send(request)
  File "/usr/lib/python3/dist-packages/univention/lib/umc.py", line 607, in send
    raise HTTPError(request, umc_response, self.hostname)
univention.lib.umc.Forbidden: 403 on ucs5member.univention.intranet (command/diagnostic/query): {'status': 403, 'message': 'Es wurde kein Modul für diese Anfrage gefunden.', 'traceback': None,
'location': 'https://ucs5member.univention.intranet/univention/command/diagnostic'}

Solution

On the memberserver / managed node you have to use the command with and Domain Admins user and the credentials for.

univention-run-diagnostic-checks --username --bindpwdfile

Mastodon