Como instalar MRTG en DirectAdmin bajo CentOS Imprimir

  • 3

yum -y install gd gd-devel libpng libpng-devel zlib zlib-devel net-snmp net-snmp-utils mrtg
chkconfig snmpd on

echo "rocommunity monitoreo localhost" >> /etc/snmp/snmpd.conf

service snmpd restart

snmpwalk -v1 -cmonitoreo localhost

mkdir /var/www/html/mrtg

cd /etc/mrtg

rm -f mrtg.cfg

wget http://www.sisargentina.com/downloads/directadmin/mrtg.cfg

indexmaker --columns=2 --output=/var/www/html/mrtg/index.html /etc/mrtg/mrtg.cfg

echo "*/5 * * * * root LANG=C LC_ALL=C /usr/bin/mrtg /etc/mrtg/mrtg.cfg --lock-file /var/lock/mrtg/mrtg_l --confcache-file /var/lib/mrtg/mrtg.ok" >> /etc/crontab

env LANG=C LC_ALL=C /usr/bin/mrtg /etc/mrtg/mrtg.cfg --lock-file /var/lock/mrtg/mrtg_l --confcache-file /var/lib/mrtg/mrtg.ok


¿Fue útil la respuesta?

« Atrás

Powered by WHMCompleteSolution


["\r\n