[dnsdist] The lubbly SNMP / Stats etc
Aleš Rygl
ales at rygl.net
Mon May 15 06:21:29 UTC 2017
Hi Daniel,
I am just running and testing dnsdist from master branch on Debian 8.7 and it worked for me nearly out of the box:
dnsdist.conf:
snmpAgent(true,'/var/agentx/master')
snmpd.conf:
agentAddress udp:<ip of dnsdist box>
rocommunity dnsdist42
agentXSocket /var/agentx/master
master agentx
agentxperms 0777 0700 _dnsdist _dnsdist (this is slightly different from documentation. Without changing permissions dnsdist is not able to access the socket)
When you restart dnsdist you should see it registering - check your logs:
May 15 08:16:42 congo dnsdist[12166]: NET-SNMP version 5.7.3 AgentX subagent connected
The user doing SNMP queries must have DNSDIST-MIB in .snmp/mibs or the have to be system wide installed:
snmpwalk -v 2c -c dnsdist42 testbox DNSDIST-MIB:queries
DNSDIST-MIB::queries.0 = Counter64: 4873019010
Cheers
Ales Rygl
On pondělí 15. května 2017 3:06:33 CEST Daniel Oakes wrote:
> I'll preface this by that I hate SNMP with a passion - but we here have a
> PRTG install which at least for the most part takes the pain out of this
> process.
>
> I'm having issues trying to include the SNMP mib - and the whole agentx
> process. The SNMP docs are written by propeller heads, who obviously still
> like compiling everything.
>
> We just want to monitor some stats out of DNSdist - with powerdns we use an
> exec to get values out and that works fine.
>
> Our snmpd.conf has two very simple lines, which I think should be enough,
> but don't seem to work:
>
> mibs +DNSDIST-MIB
>
> master agentx
>
> And we've download the DNSDIST-MIB.txt into the /usr/share/snmp/mibs dir.
> When I do an snmptranslate I get nadda...
>
> snmptranslate -m +DNSDIST-MIB -IR latencyAVG100
> DNSDIST-MIB::latencyAVG100
>
> Help? Any pointers?
More information about the dnsdist
mailing list