SOURCES: munin-plugins.patch - more ntpq

baggins baggins at pld-linux.org
Mon Nov 13 15:07:56 CET 2006


Author: baggins                      Date: Mon Nov 13 14:07:56 2006 GMT
Module: SOURCES                       Tag: HEAD
---- Log message:
- more ntpq

---- Files affected:
SOURCES:
   munin-plugins.patch (1.12 -> 1.13) 

---- Diffs:

================================================================
Index: SOURCES/munin-plugins.patch
diff -u SOURCES/munin-plugins.patch:1.12 SOURCES/munin-plugins.patch:1.13
--- SOURCES/munin-plugins.patch:1.12	Mon Nov 13 15:06:14 2006
+++ SOURCES/munin-plugins.patch	Mon Nov 13 15:07:51 2006
@@ -676,3 +676,44 @@
  foreach (@lines) {
  	next unless /^.(\d+\.\d+\.\d+\.\d+)/;
  	next if /^.224\.0\.1\.1/;
+--- munin-1.3.3/node/node.d/ntp_states.in~	2006-11-10 13:39:13.000000000 +0100
++++ munin-1.3.3/node/node.d/ntp_states.in	2006-11-13 15:07:26.000000000 +0100
+@@ -35,9 +35,9 @@
+                );
+ 
+ if ($ARGV[0] and $ARGV[0] eq "autoconf") {
+-	`ntpq -c help >/dev/null 2>/dev/null`;
++	`/usr/sbin/ntpq -c help >/dev/null 2>/dev/null`;
+ 	if ($? eq "0") {
+-		if (`ntpq -c "hostnames no" -c peers | wc -l` > 0) {
++		if (`/usr/sbin/ntpq -c "hostnames no" -c peers | wc -l` > 0) {
+ 			print "yes\n";
+ 			exit 0;
+ 		} else {
+@@ -45,7 +45,7 @@
+ 			exit 0;
+ 		}
+ 	} else {
+-		print "no (ntpq not found)\n";
++		print "no (/usr/sbin/ntpq not found)\n";
+ 		exit 1;
+ 	}
+ }
+@@ -54,7 +54,7 @@
+         print "graph_title NTP states\n";
+ 	print "graph_args --base 1000 --vertical-label msec --lower-limit 0\n";
+ 	print "graph_category time\n";
+-	foreach (`ntpq -c "hostnames no" -c peers`) {
++	foreach (`/usr/sbin/ntpq -c "hostnames no" -c peers`) {
+ 		next unless /^.(\d+\.\d+\.\d+\.\d+)/;
+ 		next if /^.224\.0\.1\.1/;
+ 		my $addr = $1;
+@@ -69,7 +69,7 @@
+         exit 0;
+ }
+ 
+-foreach (`ntpq -c "hostnames no" -c peers`) {
++foreach (`/usr/sbin/ntpq -c "hostnames no" -c peers`) {
+ 	next unless /^(.)(\d+\.\d+\.\d+\.\d+)/;
+ 	next if /^.224\.0\.1\.1/;
+ 	my $state = $1;
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/SOURCES/munin-plugins.patch?r1=1.12&r2=1.13&f=u



More information about the pld-cvs-commit mailing list