docs: Add sudo suggestion for SMART monitoring (#7738)

This commit is contained in:
Francesco M. Taurino
2017-11-15 21:51:41 +01:00
committed by Neil Lathwood
parent 600b2f3324
commit ae1cb5e6c4

View File

@ -734,6 +734,15 @@ If you have a large number of more than one or two disks on a system, you should
*/3 * * * * /etc/snmp/smart -u
```
6. If your snmp agent runs as user "snmp", edit your sudo users (usually `visudo`) and add at the bottom:
```
snmp ALL=(ALL) NOPASSWD: /etc/snmp/smart, /usr/sbin/smartctl
```
and modify your snmpd.conf file accordingly:
```
extend smart /usr/bin/sudo /etc/snmp/smart
```
### Squid
#### SNMP Proxy