We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 68a28f2 commit 97e2ff6Copy full SHA for 97e2ff6
scripts/check_pnp_rrds.pl.in
@@ -174,14 +174,14 @@ if ( $XML_COUNT == 0 ) {
174
exit 3;
175
}
176
177
-if ( $RRD_ERRORS >= $opt_c || $XML_COUNT_AGE >= $opt_c ) {
178
- $RC = 2;
179
- $OUT = "CRITICAL: ";
180
-}
181
if ( $RRD_ERRORS >= $opt_w || $XML_COUNT_AGE >= $opt_w ) {
182
$RC = 1;
183
$OUT = "WARNING: ";
184
+if ( $RRD_ERRORS >= $opt_c || $XML_COUNT_AGE >= $opt_c ) {
+ $RC = 2;
+ $OUT = "CRITICAL: ";
+}
185
186
$OUT .= "$XML_COUNT XML Files checked. $RRD_ERRORS RRD Errors found. $XML_COUNT_AGE old XML Files found";
187
$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