From 22f4974eb6ff302be7701faf21e528a47a54d453 Mon Sep 17 00:00:00 2001 From: "Francesco M. Taurino" Date: Wed, 15 Nov 2017 21:52:48 +0100 Subject: [PATCH] docs: Add sudo guidelines for Proxmox (#7739) --- doc/Extensions/Applications.md | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/doc/Extensions/Applications.md b/doc/Extensions/Applications.md index d66cd716b1..c5977681e4 100644 --- a/doc/Extensions/Applications.md +++ b/doc/Extensions/Applications.md @@ -670,9 +670,18 @@ This script uses `rec_control get-all` to collect stats. 4. Edit your snmpd.conf file (usually `/etc/snmp/snmpd.conf`) and add: `extend proxmox /usr/local/bin/proxmox` -(Note: if your snmpd doesn't run as root, you might have to invoke the script using sudo. `extend proxmox /usr/bin/sudo /usr/local/bin/proxmox`) -5. Restart snmpd on your host +5. Note: if your snmpd doesn't run as root, you might have to invoke the script using sudo and modify the "extend" line +``` +extend proxmox /usr/bin/sudo /usr/local/bin/proxmox +``` + +after, edit your sudo users (usually `visudo`) and add at the bottom: +``` +snmp ALL=(ALL) NOPASSWD: /usr/local/bin/proxmox +``` + +6. Restart snmpd on your host ### Raspberry PI