MRTG Installation and Configuration RHEL7 Step by Step Guide

ARK

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 192.168.4.5
    centos 7

    #com2sec notConfigUser default public
    com2sec local localhost public
    com2sec mynetwork 192.168.42.0/24 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@192.168.42.166 > /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 192.168.42.166
    # Require ip 10.1.2.3
    allowoverride all
    # Require host example.org

    192.168.42.166/mymrtg/

Leave a Reply

Your email address will not be published. Required fields are marked *