Thruk icon indicating copy to clipboard operation
Thruk copied to clipboard

sorting by custom variable is wrong

Open mho21 opened this issue 3 years ago • 12 comments

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):

  • tested on Firefox and Chrome

mho21 avatar Aug 12 '20 12:08 mho21

2020-08-12 13_40_59-Cisco Webex Meetings

mho21 avatar Aug 12 '20 12:08 mho21

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

ntokos avatar Sep 03 '20 07:09 ntokos

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

sni avatar Sep 04 '20 15:09 sni

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

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

mho21 avatar Sep 04 '20 15:09 mho21

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.

ntokos avatar Sep 05 '20 07:09 ntokos

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.

sni avatar Sep 07 '20 09:09 sni

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

mho21 avatar Sep 08 '20 12:09 mho21

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 avatar Sep 09 '20 13:09 mho21

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.

mho21 avatar Sep 09 '20 13:09 mho21

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

jbeaujour avatar Dec 05 '20 01:12 jbeaujour

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

sni avatar Dec 16 '20 16:12 sni

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

DdraigDrwg avatar Feb 14 '23 11:02 DdraigDrwg