naemon / naemon-livestatus

Naemon - Livestatus Eventbroker Module
GNU General Public License v2.0
26 stars 30 forks source link

Livestatus shows a user twice on the contacts field #90

Closed lamaral closed 3 years ago

lamaral commented 3 years ago

This issue arises when you have a user assigned to two different contact groups and these contact groups assigned to the same host. Livestatus will list the user twice on the contacts column and we ended up with problems when running logcache updates on Thruk side.

Naemon Version naemon-core 1.2.4 naemon-livestatus 1.2.4.1 On Debian Buster

To Reproduce Steps to reproduce the behavior:

  1. Have two different contact groups that contain the same user assigned to the same host.
  2. Query livestatus for the host and verify that the contacts column contains the given username twice.

Expected behavior The username shows up only once in the contacts column.

Additional context I can't really precise when this became an issue, because unfortunately, the failure on Thruk side when running authupdate went under our radar for a while.

Feel free to ask for more details if needed.

Thank you

sni commented 3 years ago

thanks, found the issue. Should be fine with the above patch.

lamaral commented 3 years ago

Thank you very much, Sven :)