fix: enable snmpd after updating configuration
This commit is contained in:
1 parent
b67e22912a
commit
f9bac6a241
1 file changed
+1
@@ -229,6 +229,7 @@ SNMPDConfig() {
|
||||
cummunityname=$(whiptail --title "SNMP Community name" --inputbox "" 0 30 "${cummunityname}" 3>&1 1>&2 2>&3)
|
||||
sed -i "s/public/${cummunityname}/" /etc/snmp/snmpd.conf
|
||||
sed -i "s/127.0.0.1,\[::1\]/0.0.0.0/" /etc/snmp/snmpd.conf
|
||||
systemctl enable snmpd
|
||||
systemctl restart snmpd
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user