From 0b6423f9c99d9edf8c96fefd0f6c453859395aa1 Mon Sep 17 00:00:00 2001 From: Holger Weiss Date: Mon, 30 Sep 2013 00:03:24 +0200 Subject: Import Nagios Plugins site Import the Nagios Plugins web site, Cronjobs, infrastructure scripts, and configuration files. --- .../426873-check_ide_smart-fix-threshold.patch | 30 ++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 web/attachments/426873-check_ide_smart-fix-threshold.patch (limited to 'web/attachments/426873-check_ide_smart-fix-threshold.patch') diff --git a/web/attachments/426873-check_ide_smart-fix-threshold.patch b/web/attachments/426873-check_ide_smart-fix-threshold.patch new file mode 100644 index 0000000..422ead1 --- /dev/null +++ b/web/attachments/426873-check_ide_smart-fix-threshold.patch @@ -0,0 +1,30 @@ +diff -r -u nagiosplug-2011-10-26/plugins/check_ide_smart.c nagiosplug/plugins/check_ide_smart.c +--- nagiosplug-2011-10-26/plugins/check_ide_smart.c 2011-10-25 10:56:37.534927918 +0200 ++++ nagiosplug/plugins/check_ide_smart.c 2011-10-25 11:01:51.867256194 +0200 +@@ -311,7 +311,7 @@ + int i; + for (i = 0; i < NR_ATTRIBUTES; i++) { + if (value->id && threshold->id && value->id == threshold->id) { +- if (value->value <= threshold->threshold) { ++ if (value->value < threshold->threshold) { + ++failed; + } + else { +@@ -340,7 +340,7 @@ + int i; + for (i = 0; i < NR_ATTRIBUTES; i++) { + if (value->id && threshold->id && value->id == threshold->id) { +- if (value->value <= threshold->threshold) { ++ if (value->value < threshold->threshold) { + ++failed; + if (value->status & 1) { + status = PREFAILURE; +@@ -397,7 +397,7 @@ + printf ("Id=%3d, Status=%2d {%s , %s}, Value=%3d, Threshold=%3d, %s\n", + p->id, p->status, p->status & 1 ? "PreFailure" : "Advisory ", + p->status & 2 ? "OnLine " : "OffLine", p->value, t->threshold, +- p->value > t->threshold ? "Passed" : "Failed"); ++ p->value >= t->threshold ? "Passed" : "Failed"); + } + + -- cgit v1.2.3-74-g34f1