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

Comments

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

Habbie commented Jan 9, 2018

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

@Habbie
Copy link
Member

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 added a commit that referenced this issue Jan 10, 2018
dnsdist: do not connect the snmpAgent from a dnsdist client. Fixes #6163
rgacogne pushed 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
Projects
None yet
Development

No branches or pull requests

2 participants