the luxury of invaluable experience.
7 Mar
Today I have finished install mrtg for my idaemon server and here are the perfect setup instruction for who run centos 5.1 in the box.
check this instruction you will not regret, after I have try from many source and googled all day this is the way out!
Part I : SNMP Server
we need to install snmp service to make mrtg graph work.
#yum install net-snmp-utils net-snmp
after it installed make this service that run automaticaly.
#chkconfig --level 345 snmpd
run it.
#service snmpd start
check service that run properly.
#netstat -natv | grep ':199'
look into the line that should be.
tcp 0 0 127.0.0.1:199 0.0.0.0:* LISTEN
now we must check this service.
#snmpwalk -v 1 -c public localhost IP-MIB::ipAdEntIfIndex
the output should be like this. note that 192.168.0.3 is your network ip or internet ip.
ip.ipAddrTable.ipAddrEntry.ipAdEntIfIndex.127.0.0.1 = 1
ip.ipAddrTable.ipAddrEntry.ipAdEntIfIndex.192.168.0.3 = 2