当前位置: 技术问答>linux和unix
MRTG监控Linux cup使用率、内存使用率、硬盘状况出问题
来源: 互联网 发布时间:2017-02-02
本文导语: 最近本人在Linux下搭建MRTG用来对系统进行相应的监控,搭建完成后,流量监控可以顺利执行,但是其他的cup、内存、硬盘都只有相应的页面,没有数据出现。 MRTG配置信息如下 # Created by # ./cfgmaker --global WorkDir:/va...
最近本人在Linux下搭建MRTG用来对系统进行相应的监控,搭建完成后,流量监控可以顺利执行,但是其他的cup、内存、硬盘都只有相应的页面,没有数据出现。
MRTG配置信息如下
MRTG配置信息如下
# Created by
# ./cfgmaker --global WorkDir:/var/www/html/mrtg --global "Options[_]:growright,bits" --ifref=ip --output /etc/mrtg.cfg public@10.207.6.64
### 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:/var/www/html/mrtg
Language: gb2312
RunAsDaemon:yes
interval:5
######################################################################
# System: MyBI.MyEnv.com
# Description: Linux MyBI.MyEnv.com 2.6.18-194.el5 #1 SMP Tue Mar 16 21:52:43 EDT 2010 i686
# Contact: Root (configure /etc/snmp/snmp.local.conf)
# Location: Unknown (edit /etc/snmp/snmpd.conf)
######################################################################
### Interface 2 >> Descr: 'eth0' | Name: 'eth0' | Ip: '10.207.6.64' | Eth: '00-13-72-18-10-d6' ###
Target[10.207.6.64_10.207.6.64]: /10.207.6.64:public@10.207.6.64:
SetEnv[10.207.6.64_10.207.6.64]: MRTG_INT_IP="10.207.6.64" MRTG_INT_DESCR="eth0"
MaxBytes[10.207.6.64_10.207.6.64]: 125000000
Title[10.207.6.64_10.207.6.64]: Traffic Analysis for 10.207.6.64 -- MyBI.MyEnv.com
Options[10.207.6.64_10.207.6.64]:growright,bits
LoadMIBs:/usr/share/snmp/mibs/UCD-SNMP-MIB.txt,/usr/share/snmp/mibs/HOST-RESOURCES-MIB.txt,/usr/share/snmp/mibs/TCP-MIB.txt
PageTop[10.207.6.64_10.207.6.64]: 流量分析-10.207.6.64
系统:
10.207.6.64 (edit /etc/snmp/snmpd.conf)
Maintainer:
Root <root@localhost> (configure /etc/snmp/snmp.local.conf)
Description:
eth0
ifType:
ethernetCsmacd (6)
ifName:
eth0
Max Speed:
1000.0 Mbits/s
Ip:
10.207.6.64
################CPU######################
#EnableIPv6: no
#WorkDir:/var/www/html/mrtg
#Target[cpu]: '/opt/mrtg/cpu.sh'
#MaxBytes[cpu]: 12500000
#Title[cpu]: CPU使用率监控
#Options[cpu]: gauge,nopercent,growright
#YLegend[cpu]: CPU loading (%)
#ShortLegend[cpu]:%
#LegendO[cpu]: CPU Used;
#LegendI[cpu]: CPU Sys;
#PageTop[cpu]: CPU使用率监控;
WorkDir:/var/www/html/mrtg
Target[localhost_cpu]: `/opt/mrtg/cpuinfo.pl`
Xsize[localhost_cpu]: 300
Ysize[localhost_cpu]: 100
Ytics[localhost_cpu]: 10
MaxBytes[localhost_cpu]: 100
Title[localhost_cpu]: CPU State
PageTop[localhost_cpu]: CPU State of Server
ShortLegend[localhost_cpu]: %
YLegend[localhost_cpu]: CPU (%)
Legend1[localhost_cpu]: Used
Legend2[localhost_cpu]: Total
LegendI[localhost_cpu]: CPU Used
LegendO[localhost_cpu]: CPU IDEL
Options[localhost_cpu]: growright,gauge,nopercent
############### MEM 2G #################
EnableIPv6: no
WorkDir:/var/www/html/mrtg
Target[managemem]:'/opt/mrtg/mem.sh'
Unscaled[managemem]: dwym
MaxBytes[managemem]: 2048000
Title[managemem]:内存使用率监控
ShortLegend[managemem]:
kmg[managemem]:kB,MB
kilo[managemem]:1024
YLegend[managemem]: Memory Usage
Legend1[managemem]: Total Memory
Legend2[managemem]: Used Memory
LegendI[managemem]: Total Memory
LegendO[managemem]: Used Memory
Options[managemem]: growright,gauge,nopercent
PageTop[managemem]:
您可能感兴趣的文章:
本站(WWW.)旨在分享和传播互联网科技相关的资讯和技术,将尽最大努力为读者提供更好的信息聚合和浏览方式。
本站(WWW.)站内文章除注明原创外,均为转载、整理或搜集自网络。欢迎任何形式的转载,转载请注明出处。
本站(WWW.)站内文章除注明原创外,均为转载、整理或搜集自网络。欢迎任何形式的转载,转载请注明出处。