how to monitor Linux with MRTG

  1. install MRTG/SNMP
# yum install mrtg net-snmp net-snmp-utils
  1. config SNMP
# modify /etc/snmp/snmpd.conf file
# chkconfig snmpd on
# service snmpd restart
  1. config MRTG
    /etc/mrtg/mrtg.cfg
  2. gather data
    env LANG=C /usr/bin/mrtg /etc/mrtg/mrtg.cfg

https://www.looklinux.com/top-5-web-based-linux-monitoring-tools/
https://www.cyberciti.biz/faq/centos-fedora-linux-multi-router-traffic-grapher-tutorial/
MRTG failed --> because the time unit is tow large(hour)

你可能感兴趣的:(C/C++/Linux)