summaryrefslogtreecommitdiff
path: root/net/nagios-plugins/patches/patch-913085
diff options
context:
space:
mode:
Diffstat (limited to 'net/nagios-plugins/patches/patch-913085')
-rw-r--r--net/nagios-plugins/patches/patch-91308540
1 files changed, 40 insertions, 0 deletions
diff --git a/net/nagios-plugins/patches/patch-913085 b/net/nagios-plugins/patches/patch-913085
new file mode 100644
index 00000000000..48796885e04
--- /dev/null
+++ b/net/nagios-plugins/patches/patch-913085
@@ -0,0 +1,40 @@
+$NetBSD: patch-913085,v 1.1 2013/08/28 12:14:49 manu Exp $
+
+Bugfix from upstream: do not send error when value is just on limit
+https://bugzilla.redhat.com/show_bug.cgi?id=913085
+
+--- plugins/check_ide_smart.c.orig 2013-08-28 14:05:08.000000000 +0200
++++ plugins/check_ide_smart.c 2013-08-28 14:05:15.000000000 +0200
+@@ -361,9 +361,9 @@
+ int passed = 0;
+ 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 {
+ ++passed;
+@@ -390,9 +390,9 @@
+ int total = 0;
+ 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;
+ ++prefailure;
+@@ -447,9 +447,9 @@
+ {
+ 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");
+ }
+
+
+