[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Configurazione MRTG



ciao
mrtg, se non ricordo male, dovrebbe avere uno script in perl che produce il file di configurazione " a video " la sintassi dovrebbe essere questa
cfgmaker3 public@xxx.xxx.xxx.xxx
puoi redirezionare l'output nel file /etc/mrtg.cfg con
cfgmaker3 public@xxx.xxx.xxx.xxx >> /etc/mrtg.cfg
creato il file, sulla rete trovi la documentazione necessaria per gli apparati.
esempio per ping verso un sito:

Target[www.dominio.xx]: `/usr/bin/mrtg-ping-probe -t 20 -o -n www.dominio.xx 2> /dev/null`
MaxBytes[www.dominio.xx]: 5000
Title[www.dominio.xx]: Latenza verso www.dominio.xx
PageTop[www.dominio.xx]: <H1>Latenza verso www.dominio.xx </H1>
Options[www.dominio.xx]: growright,gauge
ShortLegend[www.dominio.xx]: ms
YLegend[www.dominio.xx]: ms
Legend1[www.dominio.xx]: max &nbsp;
Legend2[www.dominio.xx]: min &nbsp;
Legend3[www.dominio.xx]: max 5min &nbsp;
Legend4[www.dominio.xx]: min 5min &nbsp;
LegendI[www.dominio.xx]: max &nbsp;
LegendO[www.dominio.xx]: min &nbsp;
WithPeak[www.dominio.xx]: ymwd
AbsMax[www.dominio.xx]: 10000

esempio per consumo CPU ROUTER CISCO ( testato e funzionante per la serie cisco 17xx):

Target[10.x.x.x_cpu]: 1.3.6.1.4.1.9.2.1.58.0&1.3.6.1.4.1.9.2.1.58.0:public@10.x.x.x
MaxBytes[10.x.x.x_cpu]: 100
Title[10.x.x.x_cpu]: CPU ROUTER CISCO
PageTop[10.x.x.x_cpu]: <h1>CPU ROUTER CISCO</h1>
Options[10.x.x.x_cpu]: growright,gauge, nopercent, absolute
ShortLegend[10.x.x.x_cpu]: %
YLegend[10.x.x.x_cpu]: %
Legend1[10.x.x.x_cpu]: max %
Legend2[10.x.x.x_cpu]: min %
Legend3[10.x.x.x_cpu]: max %
Legend4[10.x.x.x_cpu]: min %
LegendI[10.x.x.x_cpu]: max %
LegendO[10.x.x.x_cpu]: min %
WithPeak[10.x.x.x_cpu]: ymwd
AbsMax[10.x.x.x_cpu]: 100
----------

Ciao a tutti,
sapete dirmi dove posso trovare i parametri da inserire
in MRTG per monitorare i diversi DEVICE (HDD, CPU, MEM,
DISK TEMPERATURE, ecc...)?

Es.
LoadMIBs: /usr/share/snmp/mibs/HOST-RESOURCES-MIB.txt
Target[localhost.mem]: .1.3.6.1.4.1.2021.4.6.0&.1.3.6.1.4.1.2021.4.6.0:public@localhost
PageTop[localhost.mem]: <H1>Free Memory</H1>
WorkDir: /var/www/localhost/htdocs/mrtg
Options[localhost.mem]: nopercent,growright,gauge,noinfo
Title[localhost.mem]: Free Memory
MaxBytes[localhost.mem]: 1000000
kMG[localhost.mem]: k,M,G,T,P,X
YLegend[localhost.mem]: bytes
ShortLegend[localhost.mem]: bytes
LegendI[localhost.mem]: Free Memory:
LegendO[localhost.mem]:
Legend1[localhost.mem]: Free memory, not including swap, in bytes

Grazie!
Buona Serata!

Marco


------------------------------------------------------
Passa a Infostrada. ADSL e Telefono senza limiti e senza canone Telecom
http://click.libero.it/infostrada27dic06




Reply to: