summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xhosts-state2
1 files changed, 1 insertions, 1 deletions
diff --git a/hosts-state b/hosts-state
index e410654..80f0a64 100755
--- a/hosts-state
+++ b/hosts-state
@@ -60,7 +60,7 @@ while(<$reports>) {
print("$short_host\tBcfg2\t$status\t$msg | $perf\n\x17");
}
-if ($summary->{bad} > 0 or $summary->stale > 0) {
+if ($summary->{bad} > 0 or $summary->{stale} > 0) {
$summary->{msg} = 'CRITICAL';
$summary->{status} = 2;
}