Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
server:monitoring
icinga
icinga-1.14.2_-_fix_duration_after_passing_from...
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File icinga-1.14.2_-_fix_duration_after_passing_from_soft_to_hard.patch of Package icinga
From d309c336d11524386eb11e0d3a3c91b85327de8c Mon Sep 17 00:00:00 2001 From: NotAFile <nota@notafile.com> Date: Mon, 24 Sep 2018 18:00:02 +0200 Subject: [PATCH] fix duration after passing from soft to hard --- base/checks.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/base/checks.c b/base/checks.c index adf946894..29469fb08 100644 --- a/base/checks.c +++ b/base/checks.c @@ -4397,9 +4397,10 @@ int handle_host_state(host *hst) { if (state_change == TRUE || hard_state_change == TRUE) { /* update last state change times */ - hst->last_state_change = current_time; + if (hst->last_state != hst->current_state) + hst->last_state_change = hst->last_check; if (hst->state_type == HARD_STATE) - hst->last_hard_state_change = current_time; + hst->last_hard_state_change = hst->last_check; /* update the event id */ hst->last_event_id = hst->current_event_id;
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor