I'm trying to setup MRTG and so I setup first my snmp. The problem is when I'm trying to command "snmpwalk -v 1 -c public localhost", it has no response. There's no error also. This is the first time I encountered this situation. I believe I have to settle this first before I setup my MRTG.
root@localhost]# snmpwalk -v 1 -c public localhost
End of MIB
root@localhost]#
I also edit my snmp.conf coz I always do this before I configure MRTG. I done this before and encountered no problem
Quote:
Line:
com2sec notConfigUser default public
Replace with (make sure you replace 192.168.0.0/24 replace with your network IPs):
com2sec local localhost public
com2sec mynetwork 192.168.0.0/24 public
Scroll down bit and change:
Lines:
group notConfigGroup v1 notConfigUser
group notConfigGroup v2c notConfigUser
Replace with:
group MyRWGroup v1 local
group MyRWGroup v2c local
group MyRWGroup usm local
group MyROGroup v1 mynetwork
group MyROGroup v2c mynetwork
group MyROGroup usm mynetwork
Scroll down bit and change:
Line:
view systemview included system
Replace with:
view all included .1 80
Scroll down bit and change:
Line:
access notConfigGroup "" any noauth exact systemview none none
Replace with:
access MyROGroup "" any noauth exact all none none
access MyRWGroup "" any noauth exact all all none
Scroll down bit and change:
Lines:
syslocation Unknown (edit /etc/snmp/snmpd.conf)
syscontact Root (configure /etc/snmp/snmp.local.conf)
Replace with (make sure you supply appropriate values):
syslocation Linux (RH3_UP2), Home Linux Router.
syscontact Vivek G Gite <vivek@nixcraft.com>
|