mirror of
https://github.com/Yubico/yubikey-val.git
synced 2025-02-12 15:54:27 +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:
parent
f2604e751a
commit
cf40fec026
@ -50,11 +50,17 @@ foreach($shortnames as $val)
|
|||||||
}
|
}
|
||||||
|
|
||||||
if ($argc == 2 && strcmp($argv[1], "autoconf") == 0)
|
if ($argc == 2 && strcmp($argv[1], "autoconf") == 0)
|
||||||
|
{
|
||||||
|
if (is_array($urls) && count($urls) > 0)
|
||||||
{
|
{
|
||||||
print "yes\n";
|
print "yes\n";
|
||||||
exit(0);
|
exit(0);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
print "no (sync pool not configured)\n";
|
||||||
|
exit(0);
|
||||||
|
}
|
||||||
|
|
||||||
if ($argc == 2 && strcmp($argv[1], "config") == 0)
|
if ($argc == 2 && strcmp($argv[1], "config") == 0)
|
||||||
{
|
{
|
||||||
echo "multigraph ykval_vallatency\n";
|
echo "multigraph ykval_vallatency\n";
|
||||||
|
Loading…
x
Reference in New Issue
Block a user