snmpd.conf configuration for monitoring SNMP
Quote from moshe on 20/09/2023, 1:54 pmProblem
User wants to Monitor Linux with SNMPD but HOST-RESOURCE-MIB is not loaded properly and cannot monitor disk / memory usage
Solution
replace the content of /etc/snmp/snmpd.conf
#agentAddress udp:161,udp6:[::1]:161
com2sec monitor 10.0.0.100 COMMUNITHY
com2sec notConfigUser default publicgroup notConfigGroup v1 notConfigUser
group notConfigGroup v2c notConfigUserview systemview included .1.3.6.1.2.1.1
view systemview included .1.3.6.1.2.1.25.1.1access notConfigGroup “” any noauth exact systemview none none
syslocation New York
syscontact Root <root@localhost> (configure /etc/snmp/snmp.local.conf)dontLogTCPWrappersConnects yes
rwuser opmanagermibdirs /usr/share/snmp/mibs/
mibs HOST-RESOURCES-MIBChange Community and IP address
Problem
User wants to Monitor Linux with SNMPD but HOST-RESOURCE-MIB is not loaded properly and cannot monitor disk / memory usage
Solution
replace the content of /etc/snmp/snmpd.conf
#agentAddress udp:161,udp6:[::1]:161
com2sec monitor 10.0.0.100 COMMUNITHY
com2sec notConfigUser default publicgroup notConfigGroup v1 notConfigUser
group notConfigGroup v2c notConfigUserview systemview included .1.3.6.1.2.1.1
view systemview included .1.3.6.1.2.1.25.1.1access notConfigGroup “” any noauth exact systemview none none
syslocation New York
syscontact Root <root@localhost> (configure /etc/snmp/snmp.local.conf)dontLogTCPWrappersConnects yes
rwuser opmanagermibdirs /usr/share/snmp/mibs/
mibs HOST-RESOURCES-MIB
Change Community and IP address
Uploaded files: