Outils pour utilisateurs

Outils du site


install:mrtg

Différences

Ci-dessous, les différences entre deux révisions de la page.

Lien vers cette vue comparative

Les deux révisions précédentes Révision précédente
Prochaine révision
Révision précédente
install:mrtg [2008/09/05 09:30]
linkuff
install:mrtg [2011/02/02 22:42] (Version actuelle)
Ligne 47: Ligne 47:
 indexmaker --output /var/www/mrtg/index.html /etc/mrtg.cfg --columns=2 --nolegend indexmaker --output /var/www/mrtg/index.html /etc/mrtg.cfg --columns=2 --nolegend
 </code> </code>
 +
 +
  
  
Ligne 56: Ligne 58:
 <code> <code>
 #!/bin/sh #!/bin/sh
-P=`ping  -c3 -q 217.12.3.11|grep round|cut -d" " -f4`+P=`ping  -c3 -q 217.12.3.11|cut -d" " -f4`
 MIN=`echo $P|cut -d"/" -f1` MIN=`echo $P|cut -d"/" -f1`
 MAX=`echo $P|cut -d"/" -f2` MAX=`echo $P|cut -d"/" -f2`
Ligne 166: Ligne 168:
 Pour permettre l'exécution, on corrige les droits des scripts créés : Pour permettre l'exécution, on corrige les droits des scripts créés :
 <code> <code>
-chmod 700 /etc/mrtg/ping +chmod 700 /etc/mrtg/*
-chmod 700 /etc/mrtg/mem +
-chmod 700 /etc/mrtg/cpu1 +
-chmod 700 /etc/mrtg/cpu2 +
-chmod 700 /etc/mrtg/apache2+
 </code> </code>
 +
  
  
Ligne 179: Ligne 178:
 Ajouter la configuration du script ping à /etc/mrtg.cfg : Ajouter la configuration du script ping à /etc/mrtg.cfg :
 <code> <code>
-#---------Ping YAHOO--------------------+#Ping ##
 Target[ping_yahoo]: `/etc/mrtg/ping` Target[ping_yahoo]: `/etc/mrtg/ping`
 Options[ping_yahoo]: nopercent,growright,gauge,noinfo, nobanner Options[ping_yahoo]: nopercent,growright,gauge,noinfo, nobanner
Ligne 191: Ligne 190:
 LegendO[ping_yahoo]: Latence Min: LegendO[ping_yahoo]: Latence Min:
 Title[ping_yahoo]: Ping sur yahoo.fr Title[ping_yahoo]: Ping sur yahoo.fr
-PageTop[ping_yahoo]: <h1>Latence yahoo.fr</h1>+PageTop[ping_yahoo]: <h1>Ping</h1>
 WithPeak[ping_yahoo]:wmy WithPeak[ping_yahoo]:wmy
 Legend4[ping_yahoo]: Max de la latence min Legend4[ping_yahoo]: Max de la latence min
 Legend3[ping_yahoo]: Max de la latence max Legend3[ping_yahoo]: Max de la latence max
-#--------end ping----------------------------- 
  
-#---------Memory--------------------+#Memory ##
 Target[mem]: `/etc/mrtg/mem` Target[mem]: `/etc/mrtg/mem`
 Options[mem]: nopercent,growright,gauge,noinfo, nobanner Options[mem]: nopercent,growright,gauge,noinfo, nobanner
Ligne 214: Ligne 212:
 Legend3[mem]: Mémoire libre max Legend3[mem]: Mémoire libre max
 Legend4[mem]: Mémoire utilisée max Legend4[mem]: Mémoire utilisée max
-#--------end Memory----------------------------- 
  
-#---------CPU-------------------+#CPU 1 ##
 Target[cpu]: `/etc/mrtg/cpu1` Target[cpu]: `/etc/mrtg/cpu1`
 Options[cpu]: nopercent,growright,gauge,noinfo, nobanner Options[cpu]: nopercent,growright,gauge,noinfo, nobanner
Ligne 228: Ligne 225:
 LegendO[cpu]: Total: LegendO[cpu]: Total:
 Title[cpu]: CPU Title[cpu]: CPU
-PageTop[cpu]: <h1>CPU</h1>+PageTop[cpu]: <h1>Consommation du CPU1</h1>
 WithPeak[cpu]:wmy WithPeak[cpu]:wmy
 Legend3[cpu]: Max % CPU Utilisateur Legend3[cpu]: Max % CPU Utilisateur
 Legend4[cpu]: Max % CPU Utilisateur + Système Legend4[cpu]: Max % CPU Utilisateur + Système
-#--------end CPU----------------------------- 
  
-#---------CPU-------------------+#CPU 2 ##
 Target[cpu2]: `/etc/mrtg/cpu2` Target[cpu2]: `/etc/mrtg/cpu2`
 Options[cpu2]: noinfo, nopercent, growright, nobanner, noi Options[cpu2]: noinfo, nopercent, growright, nobanner, noi
Ligne 243: Ligne 239:
 LegendO[cpu2]: CPU2 LegendO[cpu2]: CPU2
 Legend2[cpu2]: CPU2 Legend2[cpu2]: CPU2
-PageTop[cpu2]: <H1>Suivi de la consommation du CPU2</H1>+PageTop[cpu2]: <H1>Consommation du CPU2</H1>
 WithPeak[cpu2]:wmy WithPeak[cpu2]:wmy
 Legend3[cpu2]: Max % CPU Utilisateur Legend3[cpu2]: Max % CPU Utilisateur
 Legend4[cpu2]: Max % CPU Utilisateur + Système Legend4[cpu2]: Max % CPU Utilisateur + Système
-#--------end CPU----------------------------- 
  
-#---------Apache2 hits-----------------------+#Apache2 hits ##
 Target[apache2_hits]: `/etc/mrtg/apache2 hits` Target[apache2_hits]: `/etc/mrtg/apache2 hits`
 Options[apache2_hits]: perhour, nopercent, growright, noinfo, nobanner, noi Options[apache2_hits]: perhour, nopercent, growright, noinfo, nobanner, noi
Ligne 261: Ligne 256:
 Title[apache2_hits]: Hits horaires du serveur Apache Title[apache2_hits]: Hits horaires du serveur Apache
 WithPeak[apache2_hits]: wmy WithPeak[apache2_hits]: wmy
-#------------End Apache2 Hits------------------ 
  
-#---------Apache2 Traffic-----------------------+#Apache2 Traffic ##
 Target[apache2_traffic]: `/etc/mrtg/apache2 bytes` Target[apache2_traffic]: `/etc/mrtg/apache2 bytes`
 Options[apache2_traffic]: nopercent, growright, noinfo, nobanner, noi Options[apache2_traffic]: nopercent, growright, noinfo, nobanner, noi
Ligne 276: Ligne 270:
 WithPeak[apache2_traffic]: wmy WithPeak[apache2_traffic]: wmy
 Legend4[apache2_traffic]: Traffic max Apache Legend4[apache2_traffic]: Traffic max Apache
-#------------End Apache2 Traffic------------------ 
 </code> </code>
  
install/mrtg.1220607004.txt.gz · Dernière modification: 2011/02/02 22:42 (modification externe)