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

Modify ykval-munin-queuelength plugin.

- don't auto configure if running a single node cluster.
	(i.e. no queues for sync requests to other servers).
This commit is contained in:
Jean Paul Galea 2015-09-08 14:32:47 +02:00
parent c80f9adacb
commit 3896a7a72b

View File

@ -53,8 +53,14 @@ $shortnames = array_map("url2shortname", $urls);
if ($argc == 2 && strcmp($argv[1], "autoconf") == 0) if ($argc == 2 && strcmp($argv[1], "autoconf") == 0)
{ {
print "yes\n"; if (is_array($urls) && count($urls) > 0)
exit(0); {
echo "yes\n";
exit(0);
}
echo "no (sync pool not configured)\n";
exit(0);
} }
if ($argc==2 && strcmp($argv[1], "config") == 0) if ($argc==2 && strcmp($argv[1], "config") == 0)