V2EX = way to explore
V2EX 是一个关于分享和探索的地方
Sign Up Now
For Existing Member  Sign In
爱意满满的作品展示区。
Tianpu

debian6 mrtg

  •  
  •   Tianpu · Dec 23, 2013 · 2879 views
    This topic created in 4517 days ago, the information mentioned may be changed or developed.
    apt-get install mrtg snmp snmpd libpng3

    /etc/snmp/snmpd.conf

    agentAddress udp:127.0.0.1:161
    rocommunity public localhost
    sysLocation Rotterdam
    sysContact Dull
    sysServices 72
    trapsink localhost public

    /etc/mrtg.cfg

    WorkDir: /www/html/mrtg
    EnableIPv6: no
    Target[index]: 2:public@localhost:
    SetEnv[index]: MRTG_INT_IP="188.122.91.91" MRTG_INT_DESCR="eth0"
    MaxBytes[index]: 1000000000
    Title[index]: Traffic Analysis
    PageTop[index]: <h2>Traffic Analysis</h2>
    <div id="sysdetails">
    <table>
    <tr>
    <td>System:</td>
    <td>Ltcast in Rotterdam</td>
    </tr>
    <tr>
    <td>Description:</td>
    <td>Litecoin supernode</td>
    </tr>
    <tr>
    <td>Max Speed:</td>
    <td>1000.0 MBytes/s</td>
    </tr>
    <tr>
    <td>Ip:</td>
    <td>188.122.91.91</td>
    </tr>
    </table>
    </div>

    /etc/crontab

    */5 * * * * root mrtg /etc/mrtg.cfg >/dev/null 2>&1

    反正是跑起来了

    www.ltcast.com/mrtg/
    Supplement 1  ·  Dec 27, 2013
    snmpd.conf配置后执行cfgmaker public@localhost > /etc/mrtg.cfg
    Supplement 2  ·  Dec 27, 2013
    crontab

    */5 * * * * www mrtg /etc/mrtg.cfg >/dev/null 2>&1
    Supplement 3  ·  Dec 27, 2013
    mrtg.cfg

    Options[_]: growright
    No Comments Yet
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   847 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 29ms · UTC 22:38 · PVG 06:38 · LAX 15:38 · JFK 18:38
    ♥ Do have faith in what you're doing.