sni / lmd

Livestatus Multitool Daemon - Create livestatus federation from multiple sources
https://labs.consol.de/omd/packages/lmd/
GNU General Public License v3.0
42 stars 31 forks source link

Feature Request: Add Filter per Connection #125

Closed Bu-Ble closed 1 year ago

Bu-Ble commented 2 years ago

Hi, it would be nice to have a filter per backend connection to restrict which data is retrieved for example by host name, service name or custom variables. This could help to reduce data volume, implement access restrictions, avoid duplicate data from "overlapping" backends.

sni commented 2 years ago

When using Thruk as Backends with API Keys this is already possible. For livestatus connections this could be implemented using the auth user header. Using filters is probably too complicated. You would have to configure a different filter/query for each table.

Bu-Ble commented 2 years ago

Thanks for the hint. I didn't find that in the docs. So I would have to setup an intermediate Thruk as "middleware" like this? Thruk UI <-> LMD <-> Thruk as Backend <-> LMD <-> Icinga2

sni commented 2 years ago

yes, that would work.