diff --git a/ykval-munin-queuelength.php b/ykval-munin-queuelength.php index abda118..5ecf7b1 100755 --- a/ykval-munin-queuelength.php +++ b/ykval-munin-queuelength.php @@ -53,8 +53,14 @@ $shortnames = array_map("url2shortname", $urls); if ($argc == 2 && strcmp($argv[1], "autoconf") == 0) { - print "yes\n"; - exit(0); + if (is_array($urls) && count($urls) > 0) + { + echo "yes\n"; + exit(0); + } + + echo "no (sync pool not configured)\n"; + exit(0); } if ($argc==2 && strcmp($argv[1], "config") == 0)