Negative number in livesynthesis
Closed this issue · 0 comments
algorys commented
When request on livesynthesis
endpoint, backend return sometimes negative number that we can see in WebUI or App.
Here is an example:
{'services_unknown_soft': 0, 'services_flapping': 0, 'hosts_down_hard': 1, 'services_acknowledged': 4, 'services_business_impact': 0, 'hosts_up_hard': 0, '_updated': 'Thu, 01 Jan 1970 00:00:00 GMT', 'hosts_up_soft': 0, 'services_critical_hard': 0, 'hosts_flapping': 0, 'hosts_in_downtime': 0, 'services_unknown_hard': 1, 'services_critical_soft': 0, 'services_ok_soft': 0, '_links': {'self': {'title': 'Livesynthesi', 'href': 'livesynthesis/59c4e40635d17b8e0c6accaf'}}, 'hosts_business_impact': 0, 'hosts_down_soft': 0, '_id': '59c4e40635d17b8e0c6accaf', '_created': 'Thu, 01 Jan 1970 00:00:00 GMT', '_realm': '59c4e40435d17b8e0c6acc60', 'hosts_unreachable_soft': 0, 'services_total': 14, 'hosts_unreachable_hard': 0, 'services_in_downtime': 0, '_etag': '809a1cf43eaf858de1ef48df38ced9bb5875a3c8', 'hosts_acknowledged': 1, 'services_unreachable_soft': 0, 'hosts_total': 2, 'services_warning_soft': 0, 'services_unreachable_hard': 8, 'services_warning_hard': 0, 'services_ok_hard': 1}
{'services_unknown_soft': 0, 'services_flapping': 0, 'hosts_down_hard': -7, 'services_acknowledged': 40, 'services_business_impact': 0, 'hosts_up_hard': 38, '_updated': 'Fri, 22 Sep 2017 10:20:54 GMT', 'hosts_up_soft': 0, 'services_critical_hard': 31, 'hosts_flapping': 0, 'hosts_in_downtime': 0, 'services_unknown_hard': 32, 'services_critical_soft': 0, 'services_ok_soft': 0, '_links': {'self': {'title': 'Livesynthesi', 'href': 'livesynthesis/59c4e40635d17b8e0c6accb0'}}, 'hosts_business_impact': 0, 'hosts_down_soft': 0, '_id': '59c4e40635d17b8e0c6accb0', '_created': 'Thu, 01 Jan 1970 00:00:00 GMT', '_realm': '59c4e38535d17b8dcb0bed42', 'hosts_unreachable_soft': 0, 'services_total': 403, 'hosts_unreachable_hard': 1, 'services_in_downtime': 0, '_etag': '6999aaa6d1b8ebe867f2f6d55c01a7dc71330f73', 'hosts_acknowledged': 1, 'services_unreachable_soft': 0, 'hosts_total': 33, 'services_warning_soft': 0, 'services_unreachable_hard': 88, 'services_warning_hard': 1, 'services_ok_hard': 211}
{'services_unknown_soft': 0, 'services_flapping': 0, 'hosts_down_hard': 1, 'services_acknowledged': 0, 'services_business_impact': 0, 'hosts_up_hard': 0, '_updated': 'Thu, 01 Jan 1970 00:00:00 GMT', 'hosts_up_soft': 0, 'services_critical_hard': 0, 'hosts_flapping': 0, 'hosts_in_downtime': 0, 'services_unknown_hard': 0, 'services_critical_soft': 0, 'services_ok_soft': 0, '_links': {'self': {'title': 'Livesynthesi', 'href': 'livesynthesis/59c4e40635d17b8e0c6accb1'}}, 'hosts_business_impact': 0, 'hosts_down_soft': 0, '_id': '59c4e40635d17b8e0c6accb1', '_created': 'Thu, 01 Jan 1970 00:00:00 GMT', '_realm': '59c4e40435d17b8e096acc60', 'hosts_unreachable_soft': 0, 'services_total': 14, 'hosts_unreachable_hard': 1, 'services_in_downtime': 0, '_etag': 'a375e893ed8d57793d8a9f2c5950577b93580572', 'hosts_acknowledged': 0, 'services_unreachable_soft': 0, 'hosts_total': 2, 'services_warning_soft': 0, 'services_unreachable_hard': 11, 'services_warning_hard': 0, 'services_ok_hard': 3}
{'services_unknown_soft': 0, 'services_flapping': 0, 'hosts_down_hard': 0, 'services_acknowledged': 0, 'services_business_impact': 0, 'hosts_up_hard': 0, '_updated': 'Thu, 01 Jan 1970 00:00:00 GMT', 'hosts_up_soft': 0, 'services_critical_hard': 0, 'hosts_flapping': 0, 'hosts_in_downtime': 0, 'services_unknown_hard': 0, 'services_critical_soft': 0, 'services_ok_soft': 0, '_links': {'self': {'title': 'Livesynthesi', 'href': 'livesynthesis/59c4e40635d17b8e0c6accb2'}}, 'hosts_business_impact': 0, 'hosts_down_soft': 2, '_id': '59c4e40635d17b8e0c6accb2', '_created': 'Thu, 01 Jan 1970 00:00:00 GMT', '_realm': '59c4e40435d17b8e0c6acc61', 'hosts_unreachable_soft': 0, 'services_total': 62, 'hosts_unreachable_hard': 0, 'services_in_downtime': 0, '_etag': '5cb0f58ed03cb7143ae99ef53dfd38789b099335', 'hosts_acknowledged': 0, 'services_unreachable_soft': 62, 'hosts_total': 2, 'services_warning_soft': 0, 'services_unreachable_hard': 0, 'services_warning_hard': 0, 'services_ok_hard': 0}
Second data display hosts_down_hard: -7
.