mirror of
https://github.com/Yubico/yubikey-val.git
synced 2025-02-01 19:52:20 +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:
parent
c80f9adacb
commit
3896a7a72b
@ -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)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user