feat: add Fedora 44 SNMPD config template
This commit is contained in:
@@ -0,0 +1,5 @@
|
||||
view systemonly included .1.3.6.1.2.1
|
||||
view systemonly included .1.3.6.1.2.1.1
|
||||
view systemonly included .1.3.6.1.2.1.25.1
|
||||
|
||||
rocommunity COMMUNITY default -V systemonly
|
||||
+3
-2
@@ -140,8 +140,9 @@ IssueSetContent() {
|
||||
SNMPDConfig() {
|
||||
cummunityname=public
|
||||
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
|
||||
mv /etc/snmp/snmpd.conf /etc/snmp/snmpd.conf.bak
|
||||
wget -O /etc/snmp/snmpd.conf "${BASE_URL}"/"${DIR_URL}"/files/snmpd.conf
|
||||
sed -i "s/COMMUNITY/${cummunityname}/" /etc/snmp/snmpd.conf
|
||||
systemctl restart snmpd
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user