mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
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:
@@ -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
|
||||
|
Reference in New Issue
Block a user