librenms / librenms-agent

LibreNMS Agent & Scripts
GNU General Public License v2.0
116 stars 187 forks source link

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

Open dlangille opened 1 month ago

dlangille commented 1 month ago

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:

VVelox commented 1 month ago

@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 commented 1 month ago

@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.