From cf40fec0269ab1b94054a6c69b524f2cad19a5cc Mon Sep 17 00:00:00 2001 From: Jean Paul Galea Date: Tue, 8 Sep 2015 14:19:24 +0200 Subject: [PATCH] Modify ykval-munin-vallatency plugin. - don't auto configure if running a single node cluster. (i.e. no other servers to sync to). --- ykval-munin-vallatency.php | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/ykval-munin-vallatency.php b/ykval-munin-vallatency.php index 51466b5..98408d3 100755 --- a/ykval-munin-vallatency.php +++ b/ykval-munin-vallatency.php @@ -51,7 +51,13 @@ foreach($shortnames as $val) if ($argc == 2 && strcmp($argv[1], "autoconf") == 0) { - print "yes\n"; + if (is_array($urls) && count($urls) > 0) + { + print "yes\n"; + exit(0); + } + + print "no (sync pool not configured)\n"; exit(0); }