MRTG (mrtg.cfg)
Monitoramento MRTG - ETH0, Memória, Ping Google e Ping GigaDNS
Categoria: Networking
Software: MRTG
[ Hits: 5.532 ]
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]:  
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]:  
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
Nenhum comentário foi encontrado.
Monitorando o Preço do Bitcoin ou sua Cripto Favorita em Tempo Real com um Widget Flutuante
IA Turbina o Desktop Linux enquanto distros renovam forças
Como extrair chaves TOTP 2FA a partir de QRCODE (Google Authenticator)
Ativando e usando "zoom" no ambiente Cinnamon
Vídeo Nostálgico de Instalação do Conectiva Linux 9
Como realizar um ataque de força bruta para desobrir senhas?
Estou tentando ser legalista, mas tá complicado! (8)
Thinkpads são bons mesmo ?! (0)
Queda no serviços da Cloudflare, alguns sites estão fora do ar. (1)









