mirror of
https://github.com/librenms/librenms.git
synced 2024-09-21 18:38:25 +00:00
fixed: NTP stratum 16 means unsynchronized (#5436)
~ Changed: Message for the NTP discovery and polling altered. A stratum of 16 is not 'Insane' its actually not in sync as per the RFC 5909 specification. See: https://tools.ietf.org/html/rfc5905#page-21 Fig. 11 for reference.
This commit is contained in:
parent
0ab2f18f7d
commit
46d75fefac
@ -52,7 +52,7 @@ if (is_null($cntpPeersVarEntry)) {
|
|||||||
// Set the status, 16 = Bad
|
// Set the status, 16 = Bad
|
||||||
if ($result['stratum'] == 16) {
|
if ($result['stratum'] == 16) {
|
||||||
$result['status'] = 2;
|
$result['status'] = 2;
|
||||||
$result['error'] = 'NTP Stratum is Insane';
|
$result['error'] = 'NTP is not in sync';
|
||||||
} else {
|
} else {
|
||||||
$result['status'] = 0;
|
$result['status'] = 0;
|
||||||
$result['error'] = '';
|
$result['error'] = '';
|
||||||
|
@ -45,7 +45,7 @@ if (count($components > 0)) {
|
|||||||
// Set the status, 16 = Bad
|
// Set the status, 16 = Bad
|
||||||
if ($array['stratum'] == 16) {
|
if ($array['stratum'] == 16) {
|
||||||
$array['status'] = 2;
|
$array['status'] = 2;
|
||||||
$array['error'] = 'NTP Stratum is Insane';
|
$array['error'] = 'NTP is not in sync';
|
||||||
} else {
|
} else {
|
||||||
$array['status'] = 0;
|
$array['status'] = 0;
|
||||||
$array['error'] = '';
|
$array['error'] = '';
|
||||||
|
Loading…
Reference in New Issue
Block a user