diff --git a/centreon-plugins/src/check_centreon_ping b/centreon-plugins/src/check_centreon_ping index 76a3b6cb3..2f48a8180 100644 --- a/centreon-plugins/src/check_centreon_ping +++ b/centreon-plugins/src/check_centreon_ping @@ -190,7 +190,7 @@ if( $rta == -1 ) { } elsif ( ($pl >= $pl_critical) || ($rta >= $rta_critical) ) { $ping_result_array[@ping_result_array -1 ] =~ s/\%/percent/g; my @tab = split(/,/,$ping_result_array[@ping_result_array -1 ]); - print "PING CRITICAL - ". $tab[0] ."|time=".$time_answer."ms;$pl_warning;$pl_critical;0; ok=1\n"; + print "PING CRITICAL - ". $tab[0] ."|time=".$time_answer."ms;$pl_warning;$pl_critical;0; ok=0\n"; exit $ERRORS{'CRITICAL'}; } elsif ( ($pl >= $pl_warning) || ($rta >= $rta_warning) ) { $ping_result_array[@ping_result_array -1 ] =~ s/\%/percent/g;