Alignak-monitoring-contrib/alignak-backend

Livesynthesis with negative values ...

Opened this issue · 2 comments

I had two hosts in my backend (one UP and the second DOWN) and I deleted those hosts.

After deletion, the livesynthesis is now containing negative values ... see hereunder:

  • "hosts_down_hard" : -1
  • "hosts_up_hard" : 1

It looks like only the DOWN HARD hosts got decremented on host deletion ...

{ "_id" : ObjectId("59e9fe27e8a50764857508d6"), "services_acknowledged" : 0, "services_unreachable_soft" : 0, "hosts_up_soft" : 0, "services_warning_hard" : 0, "services_flapping" : 0, "_realm" : ObjectId("59e9fdf7e8a50763fa92e2e8"), "hosts_down_soft" : 0, "services_warning_soft" : 0, "hosts_acknowledged" : 0, "hosts_down_hard" : -1, "hosts_flapping" : 0, "services_total" : 0, "hosts_in_downtime" : 0, "hosts_business_impact" : 0, "services_unreachable_hard" : 0, "services_ok_hard" : 0, "hosts_unreachable_hard" : 0, "services_critical_soft" : 0, "services_business_impact" : 0, "hosts_unreachable_soft" : 0, "services_critical_hard" : 0, "hosts_up_hard" : 1, "hosts_total" : 0, "services_unknown_soft" : 0, "services_ok_soft" : 0, "services_unknown_hard" : 0, "services_in_downtime" : 0 }

Maybe link to #437 ?

Sure @algorys ... I did not remember #437 😉