1
0
mirror of https://github.com/Yubico/yubikey-val.git synced 2025-02-01 10:52:18 +01:00

Modify ykval-munin-vallatency plugin.

- don't auto configure if running a single node cluster.
	(i.e. no other servers to sync to).
This commit is contained in:
Jean Paul Galea 2015-09-08 14:19:24 +02:00
parent f2604e751a
commit cf40fec026

View File

@ -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);
}