New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Running dnsdist in client mode connects to the snmpd AgentX socket #6163

Closed
sid3windr opened this Issue Jan 9, 2018 · 2 comments

Comments

Projects
None yet
2 participants
@sid3windr
Contributor

sid3windr commented Jan 9, 2018

  • Program: dnsdist
  • Issue type: Bug report

Short description

Running dnsdist -c prints the message NET-SNMP version 5.7.2.1 AgentX subagent connected. This should likely be reserved for the daemon only, not the client connecting to it.

Environment

  • Operating system: Debian Jessie
  • Software version: 1.2.0-1pdns.jessie
  • Software source: repo.powerdns.com

Steps to reproduce

  1. Configure SNMP agentx in the dnsdist config: snmpAgent(false)
  2. Restart dnsdist
  3. Connect to the console with -c

Expected behaviour

No SNMP agent activity should occur.

Actual behaviour

host:~# dnsdist -c
NET-SNMP version 5.7.2.1 AgentX subagent connected
>
@Habbie

This comment has been minimized.

Member

Habbie commented Jan 9, 2018

Looks like if(client) return; is missing from g_lua.writeFunction("snmpAgent" .., I think.

@Habbie

This comment has been minimized.

Member

Habbie commented Jan 9, 2018

Looks like if(client) return; is missing from g_lua.writeFunction("snmpAgent" .., I think.

~~~At a slightly longer look, this not appear to be enough explanation.~~~

@Habbie Habbie added this to the dnsdist-1.2.x milestone Jan 9, 2018

@rgacogne rgacogne closed this in cd4bb56 Jan 10, 2018

rgacogne added a commit that referenced this issue Jan 10, 2018

Merge pull request #6164 from Habbie/dnsdist-snmp-no-client
dnsdist: do not connect the snmpAgent from a dnsdist client. Fixes #6163

rgacogne added a commit to rgacogne/pdns that referenced this issue Feb 13, 2018

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment