MRTG (mrtg.cfg)

Monitoramento MRTG - ETH0, Memória, Ping Google e Ping GigaDNS

Categoria: Networking

Software: MRTG

[ Hits: 5.221 ]

Por: Smurf


Instalar MRTG:

# apt-get -y install mrtg mrtg-ping-probe


#Configurando MRG
WorkDir: /var/www/mrtg/
Htmldir: /var/www/mrtg/
Refresh: 300
Interval: 5
Language: portuguese
RunAsDaemon:Yes
#---------------------
# Monitorar ETH0
#---------------------
Target[eth0]: `cat /proc/net/dev |grep eth0 |awk -F':' '{print $2}' |awk '{print $1}'; cat /proc/net/dev |grep eth0 | awk -F':' '{print $2}' |awk '{print $9}'; echo -e; echo -e`
MaxBytes[eth0]: 1250000
Title[eth0]: Utilização da Interface ETH0
PageTop[eth0]: <H1>Utilizaçãointerface interna (eth0)</H1>
Options[eth0]: growright,nopercent
XSize[eth0]: 350
YSize[eth0]: 150

#---------------------
# Monitorar Memoria
#---------------------
Target[memo]: `cat /proc/meminfo |grep Active: |awk -F':' '{print $2}' |awk '{print $1}'; cat /proc/meminfo |grep MemTotal: |awk -F':' '{print $2}' |awk '{print $1}'; uptime |awk -F':' '{print $3}' |awk '{print $3}'; echo Server`
MaxBytes[memo]: 4000000
Title[memo]: Uso da Memoria
PageTop[memo]: <H1>Utilizacao da Memoria</H1>
Options[memo]: growright,gauge,nopercent
PNGTitle[memo]: Marispan
YLegend[memo]: Memoria
kMG[memo]: k,M,G,T
Legend1[memo]: KBytes Usados
Legend2[memo]: Total
Legend3[memo]: Max bytes load
Legend4[memo]: Max Users
LegendI[memo]:  Usado:
LegendO[memo]:  Total:
XSize[memo]: 350
YSize[memo]: 150
#-----------------------------
# Monitorar DNS Google Master
#-----------------------------
Target[google_ping]: `mrtg-ping-probe -p '1000*max/1000*min' -s 8.8.8.8`
Title[google_ping]: Ping Times to 8.8.8.8
PageTop[google_ping]: <H1>Ping Google</H1>
MaxBytes[google_ping]: 10000000
Options[google_ping]: growright,gauge,nopercent
YLegend[google_ping]: MilliSeconds
ShortLegend[google_ping]: ms
Factor[google_ping]: 0.001
LegendI[google_ping]: &nbsp
LegendO[google_ping]:
XSize[google_ping]: 350
YSize[google_ping]: 150
#Colours[google_ping]: RED#FF0000, WHATEVER#123456, DARKRED#800000, WHATEVER2#654321
routers.cgi*ShortDesc[google_ping]: Ping 8.8.8.8
routers.cgi*Options[google_ping]: fixunit nomax nopercentile nototal
routers.cgi*GraphStyle[google_ping]: range
routers.cgi*Icon[google_ping]: clock-sm.gif
#-----------------------------
# Monitorar DNS GigaDNS Slave
#-----------------------------
Target[gigadns_ping]: `mrtg-ping-probe -p '1000*max/1000*min' -s 189.38.95.95`
Title[gigadns_ping]: Ping Times to 189.38.95.95
PageTop[gigadns_ping]: <H1>Ping GigaDNS</H1>
MaxBytes[gigadns_ping]: 10000000
Options[gigadns_ping]: growright,gauge,nopercent
YLegend[gigadns_ping]: MilliSeconds
ShortLegend[gigadns_ping]: ms
Factor[gigadns_ping]: 0.001
LegendI[gigadns_ping]: &nbsp
LegendO[gigadns_ping]:
XSize[gigadns_ping]: 350
YSize[gigadns_ping]: 150
#Colours[gigadns_ping]: RED#FF0000, WHATEVER#123456, DARKRED#800000, WHATEVER2#654321
routers.cgi*ShortDesc[gigadns_ping]: Ping 189.38.95.95
routers.cgi*Options[gigadns_ping]: fixunit nomax nopercentile nototal
routers.cgi*GraphStyle[gigadns_ping]: range
routers.cgi*Icon[gigadns_ping]: clock-sm.gif
  


Comentários

Nenhum comentário foi encontrado.


Contribuir com comentário

  



Patrocínio

Site hospedado pelo provedor RedeHost.
Linux banner

Destaques

Artigos

Dicas

Tópicos

Top 10 do mês

Scripts