Instalando o MRTG no Ubuntu
sudo apt-get install mrtg
sudo apt-get install snmpd snmp
Configurando o SNMP e o MRTG
sudo vim /etc/snmp/snmpd.conf
#com2sec paranoid default public com2sec readonly default public #com2sec readwrite default private
sudo /etc/init.d/snmpd restart
sudo snmpwalk -Os -c public -v 1 localhost system
sudo cfgmaker public@localhost > /etc/mrtg.cfg
sudo cfgmaker [email protected] > /etc/mrtg.cfg
sudo indexmaker /etc/mrtg.cfg > /var/www/mrtg/index.html
sudo mrtg
———————————————————————–
ERROR: Mrtg will most likely not work properly when the environment
variable LANG is set to UTF-8. Please run mrtg in an environment
where this is not the case. Try the following command to start:
env LANG=C /usr/bin/mrtg
———————————————————————–
sudo LANG=C
sudo mrtg