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.
This commit is contained in:
Alex Muthmann
2020-12-10 01:02:30 +01:00
committed by GitHub
parent a3635d0b73
commit 980e4a6a28

View File

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