summaryrefslogtreecommitdiffstats
path: root/web/attachments/426873-check_ide_smart-fix-threshold.patch
diff options
context:
space:
mode:
authorHolger Weiss <holger@zedat.fu-berlin.de>2013-09-29 22:03:24 (GMT)
committerHolger Weiss <holger@zedat.fu-berlin.de>2013-09-29 22:03:24 (GMT)
commit0b6423f9c99d9edf8c96fefd0f6c453859395aa1 (patch)
tree1c2b6b21704a294940f87c7892676998d8371707 /web/attachments/426873-check_ide_smart-fix-threshold.patch
downloadsite-0b6423f9c99d9edf8c96fefd0f6c453859395aa1.tar.gz
Import Nagios Plugins site
Import the Nagios Plugins web site, Cronjobs, infrastructure scripts, and configuration files.
Diffstat (limited to 'web/attachments/426873-check_ide_smart-fix-threshold.patch')
-rw-r--r--web/attachments/426873-check_ide_smart-fix-threshold.patch30
1 files changed, 30 insertions, 0 deletions
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 @@
1diff -r -u nagiosplug-2011-10-26/plugins/check_ide_smart.c nagiosplug/plugins/check_ide_smart.c
2--- nagiosplug-2011-10-26/plugins/check_ide_smart.c 2011-10-25 10:56:37.534927918 +0200
3+++ nagiosplug/plugins/check_ide_smart.c 2011-10-25 11:01:51.867256194 +0200
4@@ -311,7 +311,7 @@
5 int i;
6 for (i = 0; i < NR_ATTRIBUTES; i++) {
7 if (value->id && threshold->id && value->id == threshold->id) {
8- if (value->value <= threshold->threshold) {
9+ if (value->value < threshold->threshold) {
10 ++failed;
11 }
12 else {
13@@ -340,7 +340,7 @@
14 int i;
15 for (i = 0; i < NR_ATTRIBUTES; i++) {
16 if (value->id && threshold->id && value->id == threshold->id) {
17- if (value->value <= threshold->threshold) {
18+ if (value->value < threshold->threshold) {
19 ++failed;
20 if (value->status & 1) {
21 status = PREFAILURE;
22@@ -397,7 +397,7 @@
23 printf ("Id=%3d, Status=%2d {%s , %s}, Value=%3d, Threshold=%3d, %s\n",
24 p->id, p->status, p->status & 1 ? "PreFailure" : "Advisory ",
25 p->status & 2 ? "OnLine " : "OffLine", p->value, t->threshold,
26- p->value > t->threshold ? "Passed" : "Failed");
27+ p->value >= t->threshold ? "Passed" : "Failed");
28 }
29
30