Lq host/service stats - numbers do not match livestatus overview

@DanielNunesFerreira
Yes it’s the default dashboard. Nothing changed here. The values in the view “Main overview” are aswell exactly the same.

@ricardoftribeiro
Good hint - we have a 2 node setup, but on the slave there are not that much hosts that this would correct the difference to 388 up hosts.:slight_smile:

The values of the EventConsole are correct, just the LQ output seems wrong. So this must be something different :frowning:

OMD[slave]:~$ lq “GET hosts\nStats: state = 0\nStats: state = 1\nStats: state = 2\nStats: state = 3\nOutputFormat: json”
[[12,0,0,0]]
OMD[slave]:~$ lq “GET services\nStats: state = 0\nStats: state = 1\nStats: state = 2\nStats: state = 3\nOutputFormat: json”
[[47,5,0,0]]

OMD[site]:~$ lq “GET hosts\nStats: state = 0\nStats: state = 1\nStats: state = 2\nStats: state = 3\nOutputFormat: json”
[[485,322,0,0]]
OMD[site]:~$ lq “GET services\nStats: state = 0\nStats: state = 1\nStats: state = 2\nStats: state = 3\nStats: state = 4\nStats: state = 5\nOutputFormat: json”
[[13243,58,105,375,0,0]]
image