This commit is contained in:
Quentin Garnier 2013-01-15 12:49:14 +01:00
parent effcc67fd0
commit cc64345817
1 changed files with 2 additions and 2 deletions

View File

@ -356,7 +356,7 @@ foreach my $key ( keys %$resultat) {
}
if ( $num_int == 0) {
print "No process ",(defined ($o_noreg)) ? "named " : "matching ", $o_descr, " found : CRITICAL\n";
print "No process ",(defined ($o_noreg)) ? "named " : "matching ", join(" or ",split(/\|/,$o_descr)), " found : CRITICAL\n";
exit $ERRORS{"CRITICAL"};
}
@ -501,7 +501,7 @@ if (defined ($o_cpu) ) {
}
print $num_int_ok, " process ", (defined ($o_noreg)) ? "named " : "matching ", $o_descr, " ";
print $num_int_ok, " process ", (defined ($o_noreg)) ? "named " : "matching ", join(" or ",split(/\|/,$o_descr)), " ";
#### Check for min and max number of process
if ( $num_int_ok <= $o_critL[0] ) {