check_ntp produces a warning when ntp is setup to use multicast. ntp over multicast always produces a dispersion of 16. The attached patch should fix that.
Logged In: NO
Looks like my attached patch was lost:
--- netsaint-plugins-1.2.9-4.orig/plugins-scripts/check_ntp.pl Mon Apr 23 19:43:00 2001 +++ netsaint-plugins-1.2.9-4/plugins-scripts/check_ntp.pl Mon Sep 3 14:23:36 2001 @@ -158,7 +158,7 @@ while (<NTPDC>) { print if ($verbose); if (/([^\s]+)\s+([-0-9.]+)\s+([-0-9.]+)\s+([-0-9.]+)\s+([-0-9.]+)\s+([-0-9.]+)\s+([-0-9.]+)\s+([-0-9.]+)/) { - if ($8 > $dispersion_error) { + if ( ($8 > $dispersion_error) && ($1 !~ /ntp.mcast.net|224.0.1.1/i ) ) { $dispersion_error = $8; $lostpeers++ ; }
Log in to post a comment.
Logged In: NO
Looks like my attached patch was lost:
---
netsaint-plugins-1.2.9-4.orig/plugins-scripts/check_ntp.pl
Mon Apr 23 19:43:00 2001
+++
netsaint-plugins-1.2.9-4/plugins-scripts/check_ntp.pl
Mon Sep 3 14:23:36 2001
@@ -158,7 +158,7 @@
while (<NTPDC>) {
print if ($verbose);
if
(/([^\s]+)\s+([-0-9.]+)\s+([-0-9.]+)\s+([-0-9.]+)\s+([-0-9.]+)\s+([-0-9.]+)\s+([-0-9.]+)\s+([-0-9.]+)/)
{
- if ($8 > $dispersion_error) {
+ if ( ($8 > $dispersion_error) && ($1
!~ /ntp.mcast.net|224.0.1.1/i ) ) {
$dispersion_error = $8;
$lostpeers++ ;
}