+complete long output ...

This commit is contained in:
Sims24 2015-10-12 14:50:56 +02:00
parent bf3c4995d1
commit 69b47cece2
1 changed files with 1 additions and 1 deletions

View File

@ -83,7 +83,7 @@ sub run {
threshold => [ { label => 'critical', 'exit_litteral' => 'critical' }, { label => 'warning', exit_litteral => 'warning' } ]);
$self->{output}->output_add(severity => $exit,
short_msg => sprintf("Offset: %.3fs", $offset));
$self->{output}->output_add(long_msg => sprintf("Host has %.5fs with its time server reference %s", $offset, $self->{option_results}->{ntp_host}));
$self->{output}->output_add(long_msg => sprintf("Host has an offset of %.5fs with its time server reference %s", $offset, $self->{option_results}->{ntp_host}));
$self->{output}->perfdata_add(label => "time",
value => sprintf('%.3f', $offset),