summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--plugins/check_ide_smart.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/plugins/check_ide_smart.c b/plugins/check_ide_smart.c
index 59cd8a3..55faacc 100644
--- a/plugins/check_ide_smart.c
+++ b/plugins/check_ide_smart.c
@@ -349,7 +349,7 @@ values_not_passed (values_t * p, thresholds_t * t)
349 int i; 349 int i;
350 for (i = 0; i < NR_ATTRIBUTES; i++) { 350 for (i = 0; i < NR_ATTRIBUTES; i++) {
351 if (value->id && threshold->id && value->id == threshold->id) { 351 if (value->id && threshold->id && value->id == threshold->id) {
352 if (value->value <= threshold->threshold) { 352 if (value->value < threshold->threshold) {
353 ++failed; 353 ++failed;
354 } 354 }
355 else { 355 else {
@@ -378,7 +378,7 @@ nagios (values_t * p, thresholds_t * t)
378 int i; 378 int i;
379 for (i = 0; i < NR_ATTRIBUTES; i++) { 379 for (i = 0; i < NR_ATTRIBUTES; i++) {
380 if (value->id && threshold->id && value->id == threshold->id) { 380 if (value->id && threshold->id && value->id == threshold->id) {
381 if (value->value <= threshold->threshold) { 381 if (value->value < threshold->threshold) {
382 ++failed; 382 ++failed;
383 if (value->status & 1) { 383 if (value->status & 1) {
384 status = PREFAILURE; 384 status = PREFAILURE;
@@ -435,7 +435,7 @@ print_value (value_t * p, threshold_t * t)
435 printf ("Id=%3d, Status=%2d {%s , %s}, Value=%3d, Threshold=%3d, %s\n", 435 printf ("Id=%3d, Status=%2d {%s , %s}, Value=%3d, Threshold=%3d, %s\n",
436 p->id, p->status, p->status & 1 ? "PreFailure" : "Advisory ", 436 p->id, p->status, p->status & 1 ? "PreFailure" : "Advisory ",
437 p->status & 2 ? "OnLine " : "OffLine", p->value, t->threshold, 437 p->status & 2 ? "OnLine " : "OffLine", p->value, t->threshold,
438 p->value > t->threshold ? "Passed" : "Failed"); 438 p->value >= t->threshold ? "Passed" : "Failed");
439} 439}
440 440
441 441