mrtg图表初始化
叶子红了
|
1#
叶子红了 发表于 2008-05-18 10:55
mrtg图表初始化
使用rpm包安装mrtg,一切统计正常,但是大概每过几小时,统计流量的图表就初始化了,以前的流量都不显示了,重新开始统计了。相同平台的其他机器mrtg使用了源码编译,就无此问题,请教怎么解决??
RPM安装配置文件:
[Copy to clipboard] [ - ]
CODE:
# Created by
# /usr/bin/cfgmaker --output=/etc/mrtg/mrtg.cfg public@localhost ### Global Config Options # for UNIX WorkDir: /var/www/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 ###################################################################### # System: localhost.localdomain # Description: Linux localhost.localdomain 2.6.9-42.ELsmp #1 SMP Wed Jul 12 23:32:02 EDT 2006 x86_64 # 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[localhost_1]: 1:public@localhost: # SetEnv[localhost_1]: MRTG_INT_IP="127.0.0.1" MRTG_INT_DESCR="lo" # MaxBytes[localhost_1]: 1250000 # Title[localhost_1]: Traffic Analysis for 1 -- localhost.localdomain # PageTop[localhost_1]: <H1>Traffic Analysis for 1 -- localhost.localdomain</H1> # <TABLE> # <TR><TD>System:</TD> <TD>localhost.localdomain 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> ### Interface 2 >> Descr: 'eth0' | Name: '' | Ip: '192.168.0.1' | Eth: '00-1b-fc-c1-e5-bb' ### Target[localhost_2]: 2:public@localhost: SetEnv[localhost_2]: MRTG_INT_IP="192.168.0.1" MRTG_INT_DESCR="eth0" MaxBytes[localhost_2]: 12500000 Title[localhost_2]: Traffic Analysis for 2 -- localhost.localdomain PageTop[localhost_2]: <H1>Traffic Analysis for 2 -- localhost.localdomain</H1> <TABLE> <TR><TD>System:</TD> <TD>localhost.localdomain 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>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> <TR><TD>Ip:</TD> <TD>192.168.0.1 ()</TD></TR> </TABLE> ### Interface 3 >> Descr: 'eth1' | Name: '' | Ip: '' | Eth: '00-1b-fc-c1-e4-82' ### ### The following interface is commented out because: ### * it is administratively DOWN ### * it is operationally DOWN # # Target[localhost_3]: 3:public@localhost: # SetEnv[localhost_3]: MRTG_INT_IP="" MRTG_INT_DESCR="eth1" # MaxBytes[localhost_3]: 1250000 # Title[localhost_3]: Traffic Analysis for 3 -- localhost.localdomain # PageTop[localhost_3]: <H1>Traffic Analysis for 3 -- localhost.localdomain</H1> # <TABLE> # <TR><TD>System:</TD> <TD>localhost.localdomain 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>eth1 </TD></TR> # <TR><TD>ifType:</TD> <TD>ethernetCsmacd (6)</TD></TR> # <TR><TD>ifName:</TD> <TD></TD></TR> # <TR><TD>Max Speed:</TD> <TD>1250.0 kBytes/s</TD></TR> # </TABLE> ### Interface 4 >> Descr: 'eth2' | Name: '' | Ip: '' | Eth: '00-1b-fc-c1-e3-ba' ### ### The following interface is commented out because: ### * it is administratively DOWN ### * it is operationally DOWN # # Target[localhost_4]: 4:public@localhost: # SetEnv[localhost_4]: MRTG_INT_IP="" MRTG_INT_DESCR="eth2" # MaxBytes[localhost_4]: 1250000 # Title[localhost_4]: Traffic Analysis for 4 -- localhost.localdomain # PageTop[localhost_4]: <H1>Traffic Analysis for 4 -- localhost.localdomain</H1> # <TABLE> # <TR><TD>System:</TD> <TD>localhost.localdomain 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>eth2 </TD></TR> # <TR><TD>ifType:</TD> <TD>ethernetCsmacd (6)</TD></TR> # <TR><TD>ifName:</TD> <TD></TD></TR> # <TR><TD>Max Speed:</TD> <TD>1250.0 kBytes/s</TD></TR> # </TABLE> ### Interface 5 >> Descr: 'eth3' | Name: '' | Ip: '' | Eth: '00-1b-fc-c1-e2-f4' ### ### The following interface is commented out because: ### * it is administratively DOWN ### * it is operationally DOWN # # Target[localhost_5]: 5:public@localhost: # SetEnv[localhost_5]: MRTG_INT_IP="" MRTG_INT_DESCR="eth3" # MaxBytes[localhost_5]: 1250000 # Title[localhost_5]: Traffic Analysis for 5 -- localhost.localdomain # PageTop[localhost_5]: <H1>Traffic Analysis for 5 -- localhost.localdomain</H1> # <TABLE> # <TR><TD>System:</TD> <TD>localhost.localdomain 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>eth3 </TD></TR> # <TR><TD>ifType:</TD> <TD>ethernetCsmacd (6)</TD></TR> # <TR><TD>ifName:</TD> <TD></TD></TR> # <TR><TD>Max Speed:</TD> <TD>1250.0 kBytes/s</TD></TR> # </TABLE> ### Interface 6 >> Descr: 'sit0' | Name: '' | Ip: '' | Eth: '' ### ### The following interface is commented out because: ### * it is administratively DOWN ### * it is operationally DOWN ### * has a speed of 0 which makes no sense # # Target[localhost_6]: 6:public@localhost: # SetEnv[localhost_6]: MRTG_INT_IP="" MRTG_INT_DESCR="sit0" # MaxBytes[localhost_6]: 0 # Title[localhost_6]: Traffic Analysis for 6 -- localhost.localdomain # PageTop[localhost_6]: <H1>Traffic Analysis for 6 -- localhost.localdomain</H1> # <TABLE> # <TR><TD>System:</TD> <TD>localhost.localdomain 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>sit0 </TD></TR> # <TR><TD>ifType:</TD> <TD>Encapsulation Interface (131)</TD></TR> # <TR><TD>ifName:</TD> <TD></TD></TR> # <TR><TD>Max Speed:</TD> <TD>0.0 Bytes/s</TD></TR> # </TABLE> |