[PATCH 2/2] base/checks: Add latency data to check_result struct

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
Locked
Guest

[PATCH 2/2] base/checks: Add latency data to check_result struct

Post by Guest »

This is a multi-part message in MIME format.
--------------050206080309000308020708
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 7bit

Patch attached this time!
--
Open Source Consultant, Transitiv Technologies Ltd.

Business Critical Support and Services for Open Source Software.

T: 0203 384 7207
E: adam.james@transitiv.co.uk
W: http://www.transitiv.co.uk/

--------------050206080309000308020708
Content-Type: text/x-patch;
name="0002-base-checks-Add-latency-data-to-check_result-struct.patch"
Content-Transfer-Encoding: 7bit
Content-Disposition: attachment;
filename*0="0002-base-checks-Add-latency-data-to-check_result-struct.pat";
filename*1="ch"

From a01b1db0edbc59582f695d37c41b61b549640f27 Mon Sep 17 00:00:00 2001
From: Adam James
Date: Mon, 7 Jan 2013 16:32:10 +0000
Subject: [PATCH 2/2] base/checks: Add latency data to check_result struct

This trivial patches fixes an issue where service check latency is
always reset to zero after scheduled checks.
---
base/checks.c | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/base/checks.c b/base/checks.c
index af9e6ba..1705c5f 100644
--- a/base/checks.c
+++ b/base/checks.c
@@ -257,6 +257,7 @@ int run_async_service_check(service *svc, int check_options, double latency, int
cr->check_options = check_options;
cr->scheduled_check = scheduled_check;
cr->reschedule_check = reschedule_check;
+ cr->latency = latency;
cr->start_time = start_time;
cr->finish_time = start_time;
cr->early_timeout = FALSE;
--
1.7.1


--------------050206080309000308020708--





This post was automatically imported from historical nagios-devel mailing list archives
Original poster: adam.james@transitiv.co.uk
Locked