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

When running as non-root, snmpd has issues with: bind, dhcp stats, mysql #519

Open
dlangille opened this issue May 10, 2024 · 2 comments
Open

Comments

@dlangille
Copy link
Contributor

I use net-snmp on my hosts. I prefer to run things as non-root when I can. I recently switched all my snmpd instances to run as non-root (made easier by recent work on the package).

Since then, a few modules have ceased to work. I'm creating this ticket so we can keep track of progress.

So far, it's:

  • bind - invokes: system("echo $rndc stats | su -fm bind")
  • dhcp.py - solution: add snmpd user to dhcpd group so it can read /usr/local/etc/dhcpd.conf
  • mysql - no information yet
@VVelox
Copy link
Collaborator

VVelox commented May 12, 2024

@dlangille You will run into issues with lots of extends as non-root. For non-root you'll need to run the extend using sudo.

@dlangille
Copy link
Contributor Author

@dlangille You will run into issues with lots of extends as non-root. For non-root you'll need to run the extend using sudo.

Is that as simple as changing this:

extend nginx /usr/local/etc/snmp/nginx-python3.py

to

extend nginx sudo /usr/local/etc/snmp/nginx-python3.py

If so, this is easier than I thought.

So far, it's only been some permissions, groups, etc.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants