Configure Mrtg Settings
/usr/bin
./snmpwalk -v 2c -c <<snmp_string>> <<ip>
----------------------------------------------------
cfgmaker --global 'WorkDir: /var/www/mrtg' --global 'Options[_]: bits,growright' --output /etc/mrtg/<<ip>>.cfg string@ip
------------------------------------------------------
perl /usr/bin/indexmaker --output /var/www/mrtg/<sitename>.htm /etc/mrtg/<<ip>>.cfg
----------------------------------------------------------
LANG=C /usr/bin/mrtg /etc/mrtg/<<ip>>.cfg
------------------------------------------------------------
crontab -e
* * * * * LANG=C /usr/bin/mrtg /etc/mrtg/<<ip>>.cfg >/dev/null 2>&1
:wq
---------------------------------------------------------------
./snmpwalk -v 2c -c <<snmp_string>> <<ip>
----------------------------------------------------
cfgmaker --global 'WorkDir: /var/www/mrtg' --global 'Options[_]: bits,growright' --output /etc/mrtg/<<ip>>.cfg string@ip
------------------------------------------------------
perl /usr/bin/indexmaker --output /var/www/mrtg/<sitename>.htm /etc/mrtg/<<ip>>.cfg
----------------------------------------------------------
LANG=C /usr/bin/mrtg /etc/mrtg/<<ip>>.cfg
------------------------------------------------------------
crontab -e
* * * * * LANG=C /usr/bin/mrtg /etc/mrtg/<<ip>>.cfg >/dev/null 2>&1
:wq
---------------------------------------------------------------
Comments
Post a Comment