MRTG Installation and Configuration RHEL7 Step by Step Guide


My Name is ARK. Expert in grasping any new technology, Interested in Sharing the knowledge. Learn more & Earn More

1 Response

  1. santosh says:

    The configuration I did worked fine but now I don’t know how to add the ip of the new router and how to put the title name in it like I had to add
    centos 7

    #com2sec notConfigUser default public
    com2sec local localhost public
    com2sec mynetwork public
    group MyRWGroup v2c local
    group MyROGroup v2c mynetwork
    view all included .1 80

    cd /etc/snmp/
    snmpwalk -v2c -c public localhost system
    cfgmaker –snmp-options=:::::2 –ifref=descr –ifdesc=descr –global ‘WorkDir: /var/www/html/mymrtg’ public@ > /etc/mrtg/mrtg.cfg

    cd /var/www/html/
    mkdir mymrtg
    indexmaker –columns=1 /etc/mrtg/mrtg.cfg > /var/www/html/mymrtg/index.html

    vi /etc/cron.d/mrtg
    */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
    vi /etc/httpd/conf.d/mrtg.conf
    Alias /mrtg /var/www/html/mymrtg

    Require local
    Require ip
    # Require ip
    allowoverride all
    # Require host

Leave a Reply

Your email address will not be published.