From ae1cb5e6c4c5fd9fc8b81d2090c767de8caff47e Mon Sep 17 00:00:00 2001 From: "Francesco M. Taurino" Date: Wed, 15 Nov 2017 21:51:41 +0100 Subject: [PATCH] docs: Add sudo suggestion for SMART monitoring (#7738) --- doc/Extensions/Applications.md | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/doc/Extensions/Applications.md b/doc/Extensions/Applications.md index 07e3418acb..d66cd716b1 100644 --- a/doc/Extensions/Applications.md +++ b/doc/Extensions/Applications.md @@ -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