mirror of
https://github.com/centreon/centreon-plugins.git
synced 2025-07-28 08:04:36 +02:00
+ Fix ntp protocol plugin mode offset
This commit is contained in:
parent
40f35a2ed8
commit
bcae01833e
@ -77,7 +77,7 @@ sub run {
|
|||||||
}
|
}
|
||||||
|
|
||||||
my $localtime = time();
|
my $localtime = time();
|
||||||
my $offset = ($ntp{'Receive Timestamp'} - $ntp{'Originate Timestamp'}) + ($ntp{'Transmit Timestamp'} - $localtime) / 2);
|
my $offset = (($ntp{'Receive Timestamp'} - $ntp{'Originate Timestamp'}) + ($ntp{'Transmit Timestamp'} - $localtime)) / 2;
|
||||||
|
|
||||||
my $exit = $self->{perfdata}->threshold_check(value => $offset,
|
my $exit = $self->{perfdata}->threshold_check(value => $offset,
|
||||||
threshold => [ { label => 'critical', exit_litteral => 'critical' }, { label => 'warning', exit_litteral => 'warning' } ]);
|
threshold => [ { label => 'critical', exit_litteral => 'critical' }, { label => 'warning', exit_litteral => 'warning' } ]);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user