librenms/librenms-agent

No dnsdist local agent

gorip96 opened this issue · 3 comments

dnsdist monitoring doesn’t work, it just produce a blank graph

Is it because there’s no dnsdist local agent ?

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 :(

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"

Or you should add / on API_URL value

API_URL="http://127.0.0.1:8083/"