aboutsummaryrefslogtreecommitdiff
path: root/plugins/check_ide_smart.c
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/check_ide_smart.c')
-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 59cd8a34..55faacce 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)
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 {
@@ -378,7 +378,7 @@ nagios (values_t * p, thresholds_t * t)
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;
@@ -435,7 +435,7 @@ print_value (value_t * p, threshold_t * t)
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");
}