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

Re: Configuration mrtg



Ben faut éditer /etc/mrtg.conf ( voir fichier joint ), et bien mettre la ou vont les fichiers. Puis regardé s'il est bien configurer dans /etc/cron.d ( pour pas avoir à le lancé a la main ) J'utilise des script pour les disk process, memoire, etc..., je peux mettre a disposition si besoin

Voici ce que ca donne : https://stephanfo.homelinux.org/Stat_net/

Si tu veux plus d'info, je suis a dispo pour MRTG

@+ Stephanfo

Emmanuel Lesouef wrote:

Bonjour la liste,

Je suis un peu perplexe face à la manière de configurer mrtg.

Une fois le mrtg.cfg créé (avec cfgmaker), un : mrtg mrtg.cfg ne me donne aucune page générée dans /var/www/mrtg/

Est-ce que quelqu'un l'aurait deja configuré ? Un lien didactique en francais ?

Merci.

manu



WorkDir: /var/www/Stat_net/

XSize[_]: 600
YSize[_]: 100
#Colours[_]: --#7aafff,--#1000ff,--#006600,--#ff00ff 
Language: french


################################################################################
### Interface eth0 >> Descr: 'eth0' | Name: '' | Ip: '192.168.1.1' | Eth: '' ###
################################################################################

Target[localhost_eth0]: `/var/www/Stat_net/netstat lan eth0`
Options[localhost_eth0]: nopercent,growright,noinfo,nobanner
MaxBytes[localhost_eth0]: 10000000
Kilo[localhost_eth0]:1024
Ylegend[localhost_eth0]: octets/s
ShortLegend[localhost_eth0]: o/s
kMG[localhost_eth0]:,K,M,G
#Unscaled[localhost_eth0]:dwmy
Legend1[localhost_eth0]: Débits locaux en entrée
Legend2[localhost_eth0]: Débits locaux en sortie
LegendI[localhost_eth0]: Entrée:
LegendO[localhost_eth0]: Sortie:
Title[localhost_eth0]: Traffic réseau local
PageTop[localhost_eth0]: <H1>Traffic réseau local</H1>


############################################################################
### Interface ppp0 >> Descr: 'ppp0' | Name: '' | Ip: 'WANADOO' | Eth: '' ###
############################################################################

Target[localhost_ppp0]: `/var/www/Stat_net/netstat net ppp0`
Options[localhost_ppp0]: nopercent,growright,noinfo,nobanner
MaxBytes[localhost_ppp0]: 66355
Kilo[localhost_ppp0]:1024
Ylegend[localhost_ppp0]: octets/s
ShortLegend[localhost_ppp0]: o/s
kMG[localhost_ppp0]:,K,M,G
#Unscaled[localhost_ppp0]:dwmy
Legend1[localhost_ppp0]: Débits internet en entrée
Legend2[localhost_ppp0]: Débits internet en sortie
LegendI[localhost_ppp0]: Entrée:
LegendO[localhost_ppp0]: Sortie:
Title[localhost_ppp0]: Traffic internet
PageTop[localhost_ppp0]: <H1>Traffic internet</H1>


###############################
### Monitoring de ping ADSL ###
###############################
#Ici, on mesure le temps de latence par la commande ping sur un serveur DNS Wanadoo
#on affiche 2 fois le resultat pour faire un grahpe.

Target[localhost_ping]: `/var/www/Stat_net/ping`
Options[localhost_ping]: gauge,growright,nopercent,noinfo
MaxBytes[localhost_ping]: 1000
Title[localhost_ping]: Mesure du Ping sur dns Nerim
PageTop[localhost_ping]: <h1>Mesure du Ping sur dns Nerim</h1>
YLegend[localhost_ping]: Latence en ms
ShortLegend[localhost_ping]: ms
Legend1[localhost_ping]: Temps de réponse moyen en ms
Legend2[localhost_ping]: Temps de réponse moyen en ms
LegendI[localhost_ping]: Latence :
LegendO[localhost_ping]: Latence :


#---------Memory--------------------
Target[localhost_mem]: `/var/www/Stat_net/mem`
Options[localhost_mem]: nopercent,growright,gauge,noinfo, nobanner
Unscaled[localhost_mem]:dwmy
MaxBytes[localhost_mem]: 128884736
Kilo[localhost_mem]:1024
YLegend[localhost_mem]: RAM
ShortLegend[localhost_mem]: o
Legend1[localhost_mem]: Mémoire utilisé
Legend2[localhost_mem]: Mémoire libre
LegendI[localhost_mem]: Mém. Utilisé:
LegendO[localhost_mem]: Mém. Libre:
Title[localhost_mem]: Mémoire
PageTop[localhost_mem]: <H1>Mémoire</H1>
#--------end Memory-----------------------------


#---------CPU-------------------
Target[localhost_cpu]: `/var/www/Stat_net/cpustat`
Options[localhost_cpu]: nopercent,growright,gauge,noinfo, nobanner
MaxBytes[localhost_cpu]: 10000
YLegend[localhost_cpu]: %*100 CPU
ShortLegend[localhost_cpu]: %*100 CPU
Legend1[localhost_cpu]: Resource CPU (en %*100)
Legend2[localhost_cpu]: Resource CPU (en %*100)
LegendI[localhost_cpu]: Total:
LegendO[localhost_cpu]: Total:
Title[localhost_cpu]: CPU
PageTop[localhost_cpu]: <H1>CPU</H1>
#--------end CPU-----------------------------


#---------Espace libre disk hda1--------------------
Target[localhost_hda1]: `/var/www/Stat_net/checkdisk hda1`
Options[localhost_hda1]: nopercent,growright,gauge,noinfo
MaxBytes[localhost_hda1]:1780
Unscaled[localhost_hda1]:dwmy
kMG[localhost_hda1]:M,G,T,P
YLegend[localhost_hda1]: octets
ShortLegend[localhost_hda1]: o
Kilo[localhost_hda1]:1024
Legend1[localhost_hda1]: Espace utilisé
Legend2[localhost_hda1]: Espace disponible
LegendI[localhost_hda1]: Espace Utilisé:
LegendO[localhost_hda1]: Espace dispo :
Title[localhost_hda1]: Espace sur disk racine
PageTop[localhost_hda1]: <H1>Espace sur disk racine</H1>
#--------end disk hda1-----------------------------

#---------Espace libre disk hda3--------------------
Target[localhost_hda3]: `/var/www/Stat_net/checkdisk hda3`
Options[localhost_hda3]: nopercent,growright,gauge,noinfo
MaxBytes[localhost_hda3]:3561
Unscaled[localhost_hda3]:dwmy
kMG[localhost_hda3]:M,G,T,P
YLegend[localhost_hda3]: octets
ShortLegend[localhost_hda3]: o
Kilo[localhost_hda3]:1024
Legend1[localhost_hda3]: Espace utilisé
Legend2[localhost_hda3]: Espace disponible
LegendI[localhost_hda3]: Espace Utilisé:
LegendO[localhost_hda3]: Espace dispo :
Title[localhost_hda3]: Espace sur la partition utilisateur
PageTop[localhost_hda3]: <H1>Espace sur la partition utilisateur</H1>
#--------end disk hda3-----------------------------

#---------Espace libre disk hda5--------------------
Target[localhost_hda5]: `/var/www/Stat_net/checkdisk hda5`
Options[localhost_hda5]: nopercent,growright,gauge,noinfo
MaxBytes[localhost_hda5]:28303
Unscaled[localhost_hda5]:dwmy
kMG[localhost_hda5]:M,G,T,P
YLegend[localhost_hda5]: octets
ShortLegend[localhost_hda5]: o
Kilo[localhost_hda5]:1024
Legend1[localhost_hda5]: Espace utilisé
Legend2[localhost_hda5]: Espace disponible
LegendI[localhost_hda5]: Espace Utilisé:
LegendO[localhost_hda5]: Espace dispo :
Title[localhost_hda5]: Espace sur la partition de partage
PageTop[localhost_hda5]: <H1>Espace sur la partition de partage</H1>
#--------end disk hda5-----------------------------

#---------Espace libre disk hda6--------------------
Target[localhost_hda6]: `/var/www/Stat_net/checkdisk hda6`
Options[localhost_hda6]: nopercent,growright,gauge,noinfo
MaxBytes[localhost_hda6]:1780
Unscaled[localhost_hda6]:dwmy
kMG[localhost_hda6]:M,G,T,P
YLegend[localhost_hda6]: octets
ShortLegend[localhost_hda6]: o
Kilo[localhost_hda6]:1024
Legend1[localhost_hda6]: Espace utilisé
Legend2[localhost_hda6]: Espace disponible
LegendI[localhost_hda6]: Espace Utilisé:
LegendO[localhost_hda6]: Espace dispo :
Title[localhost_hda6]: Espace sur la partition web
PageTop[localhost_hda6]: <H1>Espace sur la partition web</H1>
#--------end disk hda6-----------------------------

#---------Espace libre disk hdc--------------------
Target[localhost_hdc]: `/var/www/Stat_net/checkdisk hdc`
Options[localhost_hdc]: nopercent,growright,gauge,noinfo
MaxBytes[localhost_hdc]:7752
Unscaled[localhost_hdc]:dwmy
kMG[localhost_hdc]:M,G,T,P
YLegend[localhost_hdc]: octets
ShortLegend[localhost_hdc]: o
Kilo[localhost_hdc]:1024
Legend1[localhost_hdc]: Espace utilisé
Legend2[localhost_hdc]: Espace disponible
LegendI[localhost_hdc]: Espace Utilisé:
LegendO[localhost_hdc]: Espace dispo :
Title[localhost_hdc]: Espace sur la partition de sauvegarde
PageTop[localhost_hdc]: <H1>Espace sur la partition de sauvegarde</H1>
#--------end disk hdc-----------------------------



Reply to: