diff options
author | Mathieu Arnold <mat@FreeBSD.org> | 2014-05-09 17:53:39 +0000 |
---|---|---|
committer | Mathieu Arnold <mat@FreeBSD.org> | 2014-05-09 17:53:39 +0000 |
commit | 88c5e8e9d24540e6494787e144b7ee9a6751b28c (patch) | |
tree | b2afe23e1e3cc560ee9f8ee965611f389fc05bf8 /net-mgmt/monitoring-plugins/files/patch-plugins-scripts__check_ntp.pl | |
parent | Fix the behavior of sys_lgetxattr() so that it mimics that of Linux where a (diff) |
Add monitoring-plugins, a fork of nagios-plugins.
For now, use a snapshot from github until they release 1.6.
Sponsored by: Absolight
Diffstat (limited to 'net-mgmt/monitoring-plugins/files/patch-plugins-scripts__check_ntp.pl')
-rw-r--r-- | net-mgmt/monitoring-plugins/files/patch-plugins-scripts__check_ntp.pl | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/net-mgmt/monitoring-plugins/files/patch-plugins-scripts__check_ntp.pl b/net-mgmt/monitoring-plugins/files/patch-plugins-scripts__check_ntp.pl new file mode 100644 index 000000000000..f3d08657ca5f --- /dev/null +++ b/net-mgmt/monitoring-plugins/files/patch-plugins-scripts__check_ntp.pl @@ -0,0 +1,19 @@ +--- ./plugins-scripts/check_ntp.pl.orig 2014-03-04 20:21:36.000000000 +0100 ++++ ./plugins-scripts/check_ntp.pl 2014-04-14 10:22:50.000000000 +0200 +@@ -313,7 +313,6 @@ + } + } else { + print "No match!\n" if $verbose; +- $jitter = '(not parsed)'; + } + + } +@@ -427,7 +426,7 @@ + foreach my $key (keys %ERRORS) { + if ($state==$ERRORS{$key}) { + # print ("NTP $key: $answer"); +- print ("NTP $key: $answer|offset=$offset, jitter=" . $jitter/1000 . ",peer_stratum=$stratum\n"); ++ print ("NTP $key: $answer|offset=$offset, jitter=" . ($jitter || 0)/1000 . ",peer_stratum=$stratum\n"); + last; + } + } |