remove host

This commit is contained in:
qgarnier 2018-01-02 15:29:19 +01:00
parent c6552113c0
commit 3676ac499b
1 changed files with 2 additions and 5 deletions

View File

@ -272,8 +272,8 @@ sub run {
push @exits, $exit;
$output = sprintf("Packets In Dropped : %.2f %% (%d/%d packets), Packets Out Dropped : %.2f %% (%d/%d packets)",
$dropped_in_prct, $dropped_in, $packets_in,
$dropped_out_prct, $dropped_out, $packets_out);
$dropped_in_prct, $dropped_in, $packets_in,
$dropped_out_prct, $dropped_out, $packets_out);
$long_msg .= $long_msg_append . $output;
$long_msg_append = ', ';
if (!$self->{manager}->{output}->is_status(value => $exit, compare => 'ok', litteral => 1) || ($multiple == 0 && $number_nic == 1)) {
@ -281,9 +281,6 @@ sub run {
$short_msg_append = ', ';
}
$extra_label = '';
$extra_label .= '_' . $_ if ($number_nic > 1);
$extra_label .= '_' . $entity_view->{name} if ($multiple == 1);
$self->{manager}->{output}->perfdata_add(label => 'packets_dropped_in' . $extra_label, unit => '%',
value => sprintf("%.2f", $dropped_in_prct),
warning => $self->{manager}->{perfdata}->get_perfdata_for_output(label => 'warning-dropped-in'),