From 980e4a6a28b7790d8b37d1d6b063e3d58c6b4619 Mon Sep 17 00:00:00 2001 From: Alex Muthmann Date: Thu, 10 Dec 2020 01:02:30 +0100 Subject: [PATCH] Update docs for raspberry.sh (#12389) When using the original docs for the raspberry.sh script all I got in the SNMP output was `nsExtendOutLine."raspberry".1 = sudo: No such file or directory` this can be fixed by using the complete path to the sudo command. --- doc/Extensions/Applications.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/doc/Extensions/Applications.md b/doc/Extensions/Applications.md index 7a2f279b94..fb40344f8b 100644 --- a/doc/Extensions/Applications.md +++ b/doc/Extensions/Applications.md @@ -1618,13 +1618,13 @@ SNMP extend script to get your PI data into your host. 3: Edit your snmpd.conf file (usually `/etc/snmp/snmpd.conf`) and add: ``` -extend raspberry sudo /etc/snmp/raspberry.sh +extend raspberry /usr/bin/sudo /bin/sh /etc/snmp/raspberry.sh ``` 4: Edit your sudo users (usually `visudo`) and add at the bottom: ``` -snmp ALL=(ALL) NOPASSWD: /etc/snmp/raspberry.sh, /usr/bin/vcgencmd +snmp ALL=(ALL) NOPASSWD: /bin/sh /etc/snmp/raspberry.sh ``` **Note:** If you are using Raspian, the default user is