Skip to content

Commit 97e2ff6

Browse files
author
Joerg Linge
committed
fixed check_pnp_rrds.pl warning and critical handling (Norman)
1 parent 68a28f2 commit 97e2ff6

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

scripts/check_pnp_rrds.pl.in

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -174,14 +174,14 @@ if ( $XML_COUNT == 0 ) {
174174
exit 3;
175175
}
176176

177-
if ( $RRD_ERRORS >= $opt_c || $XML_COUNT_AGE >= $opt_c ) {
178-
$RC = 2;
179-
$OUT = "CRITICAL: ";
180-
}
181177
if ( $RRD_ERRORS >= $opt_w || $XML_COUNT_AGE >= $opt_w ) {
182178
$RC = 1;
183179
$OUT = "WARNING: ";
184180
}
181+
if ( $RRD_ERRORS >= $opt_c || $XML_COUNT_AGE >= $opt_c ) {
182+
$RC = 2;
183+
$OUT = "CRITICAL: ";
184+
}
185185

186186
$OUT .= "$XML_COUNT XML Files checked. $RRD_ERRORS RRD Errors found. $XML_COUNT_AGE old XML Files found";
187187
$PERF = " | total=$XML_COUNT errors=$RRD_ERRORS;$opt_w;$opt_c;0;$XML_COUNT old=$XML_COUNT_AGE;$opt_w;$opt_c;0;$XML_COUNT\n";

0 commit comments

Comments
 (0)