No dnsdist local agent
gorip96 opened this issue · 3 comments
gorip96 commented
dnsdist monitoring doesn’t work, it just produce a blank graph
Is it because there’s no dnsdist local agent ?
Showfom commented
Same problem here,
root@dnsdist~ # sudo -u Debian-snmp /etc/snmp/powerdns-dnsdist --debug
[ok] var API_AUTH_USER is set
[ok] var API_AUTH_PASS is set
[ok] var API_URL is set
[ok] var API_STATS is set
[ok] bin curl
[ok] bin jq
[ok] bin cat
But the graph is blank :(
Showfom commented
Problem found
curl -s -u$API_AUTH_USER:"$API_AUTH_PASS" "$API_URL""$API_STATS" | jq '.' > "$TMP_FILE"
Replace to
curl -s -u$API_AUTH_USER:"$API_AUTH_PASS" "$API_URL/$API_STATS" | jq '.' > "$TMP_FILE"
Showfom commented
Or you should add /
on API_URL
value
API_URL="http://127.0.0.1:8083/"