- 论坛徽章:
- 0
|
网络流量监控器mrtg的问题
这是我的/etc/mrtg.cfg
# Created by
# ./cfgmaker --global 'WorkDir: /usr/local/apache/htdocs/mrtg--global' 'Options[_]: growright,bits' --ifref=ip --output /etc/mrtg.cfg public@192.168.1.5 ### Global Config Options # for UNIX # WorkDir: /home/http/mrtg # or for NT # WorkDir: c:\mrtgdata ### Global Defaults # to get bits instead of bytes and graphs growing to the right # Options[_]: growright, bits EnableIPv6: no WorkDir: /usr/local/apache/htdocs/mrtg ###################################################################### # System: # Description: # Contact: # Location: ###################################################################### ######################################################################
###################################################################### # System: sky.com
# Description: Linux sky.com 2.4.26-1 #1 二 9月 28 00:24:54 EDT 2004 i686
# Contact: Root <root@localhost>; (configure /etc/snmp/snmp.local.conf)
# Location: Unknown (edit /etc/snmp/snmpd.conf)
######################################################################
### Interface 1 >;>; Descr: 'lo' | Name: '' | Ip: '127.0.0.1' | Eth: '' ###
### The following interface is commented out because:
### * it is a Software Loopback interface
#
# Target[192.168.1.5_127.0.0.1]: /127.0.0.1:public@192.168.1.5:
# SetEnv[192.168.1.5_127.0.0.1]: MRTG_INT_IP="127.0.0.1" MRTG_INT_DESCR="lo"
# MaxBytes[192.168.1.5_127.0.0.1]: 1250000
# Title[192.168.1.5_127.0.0.1]: Traffic Analysis for 127.0.0.1 -- sky.com
# PageTop[192.168.1.5_127.0.0.1]: <h1>;Traffic Analysis for 127.0.0.1 -- sky.com</h1>;
# <div id="sysdetails">;
# <table>;
# <tr>;
# <td>;System:</td>;
# <td>;sky.com in Unknown (edit /etc/snmp/snmpd.conf)</td>;
# </tr>;
# <tr>;
# <td>;Maintainer:</td>;
# <td>;Root &root@localhost& (configure /etc/snmp/snmp.local.conf)</td>;
# </tr>;
# <tr>;
# <td>;Description:</td>;
# <td>;lo </td>;
# </tr>;
# <tr>;
# <td>;ifType:</td>;
# <td>;softwareLoopback (24)</td>;
# </tr>;
# <tr>;
# <td>;ifName:</td>;
# <td>;</td>;
# </tr>;
# <tr>;
# <td>;Max Speed:</td>;
# <td>;1250.0 kBytes/s</td>;
# </tr>;
#
# <tr>;
# <td>;Ip:</td>;
# <td>;127.0.0.1 (localhost.localdomain)</td>;
# </tr>;
#
# </table>;
# </div>;
### Interface 2 >;>; Descr: 'eth0' | Name: '' | Ip: '' | Eth: '00-e0-4f-00-1f-75' ###
### The following interface is commented out because:
### * --ifref=ip is not unique for this interface
#
# Target[192.168.1.5_2]: 2:public@192.168.1.5:
# SetEnv[192.168.1.5_2]: MRTG_INT_IP="" MRTG_INT_DESCR="eth0"
# MaxBytes[192.168.1.5_2]: 12500000
# Title[192.168.1.5_2]: Traffic Analysis for 2 -- sky.com
# PageTop[192.168.1.5_2]: <h1>;Traffic Analysis for 2 -- sky.com</h1>;
# <div id="sysdetails">;
# <table>;
# <tr>;
# <td>;System:</td>;
# <td>;sky.com in Unknown (edit /etc/snmp/snmpd.conf)</td>;
# </tr>;
# <tr>;
# <td>;Maintainer:</td>;
# <td>;Root &root@localhost& (configure /etc/snmp/snm
p.local.conf)</td>;
# </tr>;
# <tr>;
# <td>;Description:</td>;
# <td>;eth0 </td>;
# </tr>;
# <tr>;
# <td>;ifType:</td>;
# <td>;ethernetCsmacd (6)</td>;
# </tr>;
# <tr>;
# <td>;ifName:</td>;
# <td>;</td>;
# </tr>;
# <tr>;
# <td>;Max Speed:</td>;
# <td>;12.5 MBytes/s</td>;
# </tr>;
#
#
# </table>;
# </div>;
### Interface 3 >;>; Descr: '' | Name: '' | Ip: '192.168.1.5' | Eth: '' ###
### The following interface is commented out because:
### * has a speed of which makes no sense
### * got 'Received SNMP response with error code
### error status: noSuchName
### index 1 (OID: 1.3.6.1.2.1.2.2.1.10.3)
### SNMPv1_Session (remote host: "192.168.1.5" [192.168.1.5].161)
### community: "public"
### request ID: 1522466444
### PDU bufsize: 8000 bytes
### timeout: 2s
### retries: 5
### backoff: 1)' from interface when trying to query
#
# Target[192.168.1.5_192.168.1.5]: /192.168.1.5:public@192.168.1.5:
# SetEnv[192.168.1.5_192.168.1.5]: MRTG_INT_IP="192.168.1.5" MRTG_INT_DESCR=""
# MaxBytes[192.168.1.5_192.168.1.5]: 0
# Title[192.168.1.5_192.168.1.5]: Traffic Analysis for 192.168.1.5 -- sky.com
# PageTop[192.168.1.5_192.168.1.5]: <h1>;Traffic Analysis for 192.168.1.5 -- sky.com</h1>;
# <div id="sysdetails">;
# <table>;
# <tr>;
# <td>;System:</td>;
# <td>;sky.com in Unknown (edit /etc/snmp/snmpd.conf)</td>;
# </tr>;
# <tr>;
# <tr>;
# <td>;Maintainer:</td>;
# <td>;Root &root@localhost& (configure /etc/snmp/snmp.local.conf)</td>;
# </tr>;
# <tr>;
# <td>;Description:</td>;
# <td>; </td>;
# </tr>;
# <tr>;
# <td>;ifType:</td>;
# <td>; ()</td>;
# </tr>;
# <tr>;
# <td>;ifName:</td>;
# <td>;</td>;
# </tr>;
# <tr>;
# <td>;Max Speed:</td>;
# <td>;0.0 Bytes/s</td>;
# </tr>;
#
# <tr>;
# <td>;Ip:</td>;
# <td>;192.168.1.5 (sky.com)</td>;
# </tr>;
#
# </table>;
# </div>; |
|