sni / Thruk

Thruk is a multibackend monitoring webinterface for Naemon, Nagios, Icinga and Shinken using the Livestatus API.
http://www.thruk.org
Other
408 stars 148 forks source link

sorting by custom variable is wrong #1036

Open mho21 opened 4 years ago

mho21 commented 4 years ago

Describe the bug When sorting service-detail view ascending (or descending) by custom host variable the returned list has wrong line/items.

Thruk Version Version 2.34-3

To Reproduce define host variables to min 3. hosts (2x a, 1x b) open service-detail list show custom variable in list sort by list

Expected behavior correct alphanumerical sorting

Screenshots attached

Desktop (please complete the following information):

mho21 commented 4 years ago

2020-08-12 13_40_59-Cisco Webex Meetings

ntokos commented 4 years ago

Hello, this problem also occurs in host-detail view. It also affects filtering based on a custom variable, no results are displayed (no rows) after I apply a filter.

I'm running Thruk 2.34-2 as part of OMD labs 3.30

sni commented 4 years ago

Which backend is that, and is LMD involved or plain backend connection?

mho21 commented 4 years ago

Which backend is that, and is LMD involved or plain backend connection?

In our environment, we encounter that when LMD is involved...

ntokos commented 4 years ago

Whether using or not LMD the sorting problem is the same. For me also, as I commented in #1025, the filtering also doesn't work. Thank you.

sni commented 4 years ago

Cannot reproduce that with the latest LMD (OMD nightlly). Using LMD, both filterung and sorting works. Using plain Naemon only filtering works, but sorting seems not to work. But that would be a issue for the naemon-livestatus project.

mho21 commented 4 years ago

We have LMD commit 0af4dedd82e8b62b728683ed5dc4755aef623764 ... I just build 1.9.0 (2e8cd2bdd447c47da4c4ed66e5a9d18ccca33c64) and will give you feedback after deployment in a few days.

mho21 commented 4 years ago

we just deployed a recent LMD build commit:2e8cd2bdd447c47da4c4ed66e5a9d18ccca33c64 an tested sorting -> issue is still there

Next, will' try to disable LMD on that server just to see whether it is an LMD or Thruk Issue

mho21 commented 4 years ago

right now we disabled LMD so Thruk (v2.34-3) directly connected to other Thruks (different version) via HTTP Backends resulting in the described issue, sorry.

jbeaujour commented 3 years ago

Hello, i have the same issue with NAGIOS 4.4.5: sort only; Filtering is OK I use integer value Thruk 2.38-2 and livestatus 1.5

sni commented 3 years ago

I tried with latest LMD and that works, but i can confirm it's broken with plain livestatus, for example on latest naemon.

DdraigDrwg commented 1 year ago

Still an issue for me with the sort. Running: OMD 5.00-labs-edition Thruk 3.00 Naemon Core 1.4.0