The charm doesn't support Graylog 4 API and fails to provision Nagios user
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Graylog Charm |
New
|
Undecided
|
Unassigned |
Bug Description
Hi all,
Graylog charm can integrate with nrpe charm via nrpe-external-
However in Graylog 4 (snap channel=4/stable) starting from this commit: [1], also mentioned in this change log item: [2] (since Graylog 4.1.0) "token" property has been removed from GET user tokens API output by replacement the REST objects with TokenSummary object, in order to show the token string only once when it is created for security reasons.
The current version of the charm however still tries to parse token string from that REST resource output: [3]
In addition to that, in Graylog 4 using 'admin' as the username will fail as illustrated in the attached screenshot. The RESTful resource there expects user's UUID which is 'local:admin' for the built-in administrator and an UUID value for any other user. The charm is not aware of that: [4]
Workaround:
Create "nagios" user with the password expected by the charm (check leader settings) manually or using Graylog API, create a token for the user manually and then provide all that input to the charm using leader-set:
$ juju run -a graylog leader-set nagios_
Optionally run update-status to force status update:
$ juju run -u graylog/0 hooks/update-status
[1] https:/
[2] https:/
[3] https:/
[4] https:/
summary: |
- charm doesn't support Graylog 4 API and fails to provision Nagios user + The charm doesn't support Graylog 4 API and fails to provision Nagios + user |
description: | updated |