Skip to content
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
Closed

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

sid3windr opened this issue Jan 9, 2018 · 2 comments

Comments

@sid3windr
Copy link
Contributor

@sid3windr 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
Copy link
Member

@Habbie Habbie commented Jan 9, 2018

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

@Habbie
Copy link
Member

@Habbie Habbie commented Jan 9, 2018

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

  
@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
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
(cherry picked from commit cd4bb56)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
2 participants