From 46d75fefac72a347660138ccda5c535f01695a21 Mon Sep 17 00:00:00 2001 From: Ant Kenworthy Date: Sat, 14 Jan 2017 16:52:06 +0000 Subject: [PATCH] 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. --- includes/discovery/ntp/cisco.inc.php | 2 +- includes/polling/ntp/cisco.inc.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/includes/discovery/ntp/cisco.inc.php b/includes/discovery/ntp/cisco.inc.php index ede7ec8c59..9074bb40bb 100644 --- a/includes/discovery/ntp/cisco.inc.php +++ b/includes/discovery/ntp/cisco.inc.php @@ -52,7 +52,7 @@ if (is_null($cntpPeersVarEntry)) { // Set the status, 16 = Bad if ($result['stratum'] == 16) { $result['status'] = 2; - $result['error'] = 'NTP Stratum is Insane'; + $result['error'] = 'NTP is not in sync'; } else { $result['status'] = 0; $result['error'] = ''; diff --git a/includes/polling/ntp/cisco.inc.php b/includes/polling/ntp/cisco.inc.php index f081a77041..e105607c7c 100644 --- a/includes/polling/ntp/cisco.inc.php +++ b/includes/polling/ntp/cisco.inc.php @@ -45,7 +45,7 @@ if (count($components > 0)) { // Set the status, 16 = Bad if ($array['stratum'] == 16) { $array['status'] = 2; - $array['error'] = 'NTP Stratum is Insane'; + $array['error'] = 'NTP is not in sync'; } else { $array['status'] = 0; $array['error'] = '';