From 7438105c0a28e2cd51df33a18b624ab4434c52cc Mon Sep 17 00:00:00 2001 From: Xavier Lagorce Date: Tue, 9 Sep 2008 21:34:32 +0200 Subject: [PATCH] vers l'utf-8 ... darcs-hash:20080909193432-b8e4c-8b567852009655f931b00023ebaca090853719dd.gz --- munin/amavis | 4 ++-- munin/apt-proxy | 4 ++-- munin/audimat | 14 +++++++------- munin/blacklist | 2 +- munin/iptables_ | 6 +++--- munin/jabber | 2 +- munin/laserjet_ | 2 +- munin/laserjet__etat | 12 ++++++------ munin/laserjet__pages | 2 +- munin/machines | 2 +- munin/mge_hygro | 6 +++--- munin/mge_intensite | 4 ++-- munin/mge_temp | 6 +++--- munin/mge_temps | 2 +- munin/mge_tension | 2 +- munin/munin | 2 +- munin/ntp_server | 2 +- munin/postfix_mailstats | 8 ++++---- munin/snmp__if__ | 12 ++++++------ munin/snmp__if_err_ | 2 +- munin/snmp__load | 6 +++--- munin/snmp__processes | 6 +++--- munin/stats-batiment_ | 18 +++++++++--------- munin/stats-ip | 2 +- munin/stats-ip_ | 8 ++++---- munin/webalizer_ | 6 +++--- munin/wiki_themes | 6 +++--- munin/wiki_users | 2 +- 28 files changed, 75 insertions(+), 75 deletions(-) diff --git a/munin/amavis b/munin/amavis index 577bd6aa..5748d677 100755 --- a/munin/amavis +++ b/munin/amavis @@ -35,9 +35,9 @@ fi if [ "$1" = "config" ]; then echo 'graph_title Amavis filter statistics' echo 'graph_vlabel nb' - echo 'total.label Mails scannés' + echo 'total.label Mails scannés' echo "total.draw AREA" - echo 'virus.label Mails vérollés' + echo 'virus.label Mails vérolés' echo "virus.draw AREA" exit 0 fi diff --git a/munin/apt-proxy b/munin/apt-proxy index d9fb0f7b..aa81f6ad 100755 --- a/munin/apt-proxy +++ b/munin/apt-proxy @@ -1,8 +1,8 @@ #! /bin/sh # $Log: apt-proxy,v $ # Revision 1.2 2006/05/01 06:17:22 salles -# Réécriture du script directement en shell, on éviter les timeouts de munin -# comme ça. +# Réécriture du script directement en shell, on éviter les timeouts de munin +# comme ça. # # # Must run on aptproxy user or root diff --git a/munin/audimat b/munin/audimat index 7356c2f3..7834251f 100755 --- a/munin/audimat +++ b/munin/audimat @@ -1,10 +1,10 @@ #! /usr/bin/env python -# -*- coding: iso-8859-15 -*- +# -*- coding: utf-8 -*- """ -Système de monitoring des abonnés au différents flux multicast +Système de monitoring des abonnés au différents flux multicast -Frédéric Pauget, Nicolas Salles, Etienne Chové +Frédéric Pauget, Nicolas Salles, Etienne Chové """ import sys, os @@ -13,14 +13,14 @@ from hptools import hpswitch from annuaires import all_switchs, uplink_prises #################################################################### -## Définition des chaines à audimater +## Définition des chaines à audimater #################################################################### # On construit un dictionnaire au format "ip" : "nom_de_la_chaine" # On log les chaines qui font des annonces sap -# on essaie de télécharger le fichier sap.txt +# on essaie de télécharger le fichier sap.txt # si on y arrive pas on continue avec l'ancien chaines = {} @@ -64,14 +64,14 @@ if 'config' in sys.argv : sys.exit(0) #################################################################### -## Mesure de l'audimat, lancé par cron à cause du timeout de munin +## Mesure de l'audimat, lancé par cron à cause du timeout de munin #################################################################### if 'generate' in sys.argv : stats = {} # { IP : [ prises ] } for switch in all_switchs() : - # on vérifie que le switch est pingable + # on vérifie que le switch est pingable if os.system('ping -c 3 %s > /dev/null 2> /dev/null' % switch ) : continue diff --git a/munin/blacklist b/munin/blacklist index aec75f79..9d350543 100755 --- a/munin/blacklist +++ b/munin/blacklist @@ -6,7 +6,7 @@ if [ "$1" = "config" ]; then echo 'graph_title Blacklist' echo "graph_args --base 1000 --lower-limit 0" echo "graph_vlabel nb de machines" - echo 'carte_et.label Certif. études' + echo 'carte_et.label Certif. études' echo 'carte_et.draw AREA' echo 'chbre.label Chambre invalide' echo 'chbre.draw STACK' diff --git a/munin/iptables_ b/munin/iptables_ index af87c438..919a7a51 100755 --- a/munin/iptables_ +++ b/munin/iptables_ @@ -1,11 +1,11 @@ #!/usr/bin/env python -# -*- coding: iso-8859-15 -*- +# -*- coding: utf-8 -*- -# Compteur des règles iptables +# Compteur des règles iptables import sys,commands,string -# On prend l'argument pour définir la table à analyser +# On prend l'argument pour définir la table à analyser TABLE = sys.argv[0].split('_')[1] if TABLE : diff --git a/munin/jabber b/munin/jabber index 9656668e..8385686e 100755 --- a/munin/jabber +++ b/munin/jabber @@ -9,7 +9,7 @@ if [ "$1" = "config" ]; then echo 'graph_vlabel nb' echo 'crans.label Nombre de comptes' echo "crans.draw AREA" - echo 'user.label Utilisateurs connectés' + echo 'user.label Utilisateurs connectés' exit 0 fi diff --git a/munin/laserjet_ b/munin/laserjet_ index 0f03cb92..4631e66f 100755 --- a/munin/laserjet_ +++ b/munin/laserjet_ @@ -1,5 +1,5 @@ #!/usr/bin/env python -# -*- coding: iso-8859-15 -* +# -*- coding: utf-8 -* import sys sys.path.append("/usr/scripts/gestion") diff --git a/munin/laserjet__etat b/munin/laserjet__etat index 3542c144..d70a7db3 100755 --- a/munin/laserjet__etat +++ b/munin/laserjet__etat @@ -1,5 +1,5 @@ #!/usr/bin/env python -# -*- coding: iso-8859-15 -* +# -*- coding: utf-8 -* import sys, os sys.path.append("/usr/scripts/gestion") @@ -8,15 +8,15 @@ import hptools dico = { "READY": 1, - "PrÁt": 1, + "PrÃt": 1, "Pr menus, appuy \x1e": 0, - "Powersave activÅ": 3, + "Powersave activÃ…": 3, "Verification": 2, "imprimante": 0, - "PrÅchauffage": 1, + "PrÃ…chauffage": 1, "Traitement de la": 0, - "tÀche du bac 4": 0, - "tÀche du bac 3": 0, + "tÀche du bac 4": 0, + "tÀche du bac 3": 0, "COMMANDER CARTOUCHE": 0, "COMMANDER KIT NETTOY": 0, "COMMANDER FOURNIT.": 0, diff --git a/munin/laserjet__pages b/munin/laserjet__pages index 7a2021ce..fc93cb0a 100755 --- a/munin/laserjet__pages +++ b/munin/laserjet__pages @@ -1,5 +1,5 @@ #!/usr/bin/env python -# -*- coding: iso-8859-15 -* +# -*- coding: utf-8 -* import sys, os sys.path.append("/usr/scripts/gestion") diff --git a/munin/machines b/munin/machines index a4a59814..f8a4b101 100755 --- a/munin/machines +++ b/munin/machines @@ -3,7 +3,7 @@ if [ "$1" = "config" ]; then # echo 'host_name adherents' - echo 'graph_title Machines connectées' + echo 'graph_title Machines connectées' echo "graph_args --base 1000 --lower-limit 0" echo "graph_vlabel nombre de machines" echo 'ens.label ENS' diff --git a/munin/mge_hygro b/munin/mge_hygro index d7d86fb8..14602bf4 100755 --- a/munin/mge_hygro +++ b/munin/mge_hygro @@ -3,9 +3,9 @@ if [ "$1" = "config" ]; then echo 'host_name pulsar.crans.org' echo 'graph_category Environnement' - echo 'graph_title Hygrométrie 0B' - echo 'graph_vlabel Humitidé (%)' - echo 'hygro.label Humidité 0B' + echo 'graph_title Hygrométrie 0B' + echo 'graph_vlabel Humitidé (%)' + echo 'hygro.label Humidité 0B' exit 0 fi diff --git a/munin/mge_intensite b/munin/mge_intensite index 949af656..098de1f3 100755 --- a/munin/mge_intensite +++ b/munin/mge_intensite @@ -6,9 +6,9 @@ if [ "$1" = "config" ]; then echo 'host_name pulsar.crans.org' echo 'graph_category B4' echo 'graph_args --lower-limit 0' - echo 'graph_title Intensité' + echo 'graph_title Intensité' echo 'graph_vlabel I (A)' - echo 'input.label Entrée' + echo 'input.label Entrée' echo 'input.min 0' echo 'output.label Sortie' echo 'output.min 0' diff --git a/munin/mge_temp b/munin/mge_temp index afcacb28..4700d51e 100755 --- a/munin/mge_temp +++ b/munin/mge_temp @@ -3,9 +3,9 @@ if [ "$1" = "config" ]; then echo 'host_name pulsar.crans.org' echo 'graph_category Environnement' - echo 'graph_title Température 0B' - echo 'graph_vlabel Température en (°C)' - echo 'temp.label Température 0B' + echo 'graph_title Température 0B' + echo 'graph_vlabel Température en (°C)' + echo 'temp.label Température 0B' echo 'temp.warning 22' echo 'temp.critical 24' exit 0 diff --git a/munin/mge_temps b/munin/mge_temps index 5e61cc9a..95062a5d 100755 --- a/munin/mge_temps +++ b/munin/mge_temps @@ -15,7 +15,7 @@ fi cmd="snmpget -O vq -v1 -c public pulsar.adm.crans.org SNMPv2-SMI::enterprises.705.1." remain=$(${cmd}5.1.0) # autonomie restante -charg=$(${cmd}5.8.0) # temps avant charge complère des batteries +charg=$(${cmd}5.8.0) # temps avant charge complère des batteries echo "remain.value $(($remain/60)).$(($remain%60*10/6))" echo "charg.value $(($charg/60)).$(($charg%60*10/6))" diff --git a/munin/mge_tension b/munin/mge_tension index 783146af..2e1328d9 100755 --- a/munin/mge_tension +++ b/munin/mge_tension @@ -7,7 +7,7 @@ if [ "$1" = "config" ]; then echo 'graph_category B4' echo 'graph_title Tensions' echo 'graph_vlabel U (V)' - echo 'input.label Entrée' + echo 'input.label Entrée' echo 'input.min 0' echo 'output.label Sortie' echo 'output.min 0' diff --git a/munin/munin b/munin/munin index 8e575d90..858bc334 100755 --- a/munin/munin +++ b/munin/munin @@ -38,5 +38,5 @@ done echo "total.value "$total -# Le temps de rafraîchissement de munin est de 5 minutes +# Le temps de rafraîchissement de munin est de 5 minutes echo "max.value 300" diff --git a/munin/ntp_server b/munin/ntp_server index 4b8138b1..3b7c3b16 100755 --- a/munin/ntp_server +++ b/munin/ntp_server @@ -8,7 +8,7 @@ fi if [ "$1" = "config" ]; then echo "graph_title NTP servers offset" echo 'graph_args --base 1000 -l 0 ' - echo 'graph_vlabel offset in µsec' + echo 'graph_vlabel offset in µsec' ntpq -p | grep -i '^[*+-]' | awk '{gsub("^.","",$1) ; gsub("[.-]", "_", $1); print $1 ".label " $1}' exit 0 fi; diff --git a/munin/postfix_mailstats b/munin/postfix_mailstats index d4801227..dd044b3c 100755 --- a/munin/postfix_mailstats +++ b/munin/postfix_mailstats @@ -3,9 +3,9 @@ ############### # CRANS ############### -# La version de ce plugin dans debian Etch (<= 4.0r1) est bugguée. +# La version de ce plugin dans debian Etch (<= 4.0r1) est bugguée. # En attendant on utilise donc cette version -# À la mise à jour de munin, il est souhaitable de tester le fichier +# À la mise à jour de munin, il est souhaitable de tester le fichier # original (/usr/share/munin/plugins/postfix_mailstats). ############### 20/09/2007 - Nicolas Salles @@ -29,8 +29,8 @@ # Un petit warning pour laisser une trace # # Revision 1.1 2007-09-20 06:45:03 salles -# Ce plugin est buggué dans etch. -# En attendant une mise à jour, on utilise cette version modifiée. +# Ce plugin est buggué dans etch. +# En attendant une mise à jour, on utilise cette version modifiée. # # Revision 1.6.2.3 2005/01/25 20:39:16 jimmyo # Make generic/postfix_mailstats catch more formats (Deb#292110). diff --git a/munin/snmp__if__ b/munin/snmp__if__ index 9c077519..a6fa8574 100755 --- a/munin/snmp__if__ +++ b/munin/snmp__if__ @@ -2,25 +2,25 @@ # # $Log: snmp__if__,v $ # Revision 1.1 2006/04/20 13:01:21 salles -# On regroupe les plugins munin dans un répertoire commun à toutes les machines +# On regroupe les plugins munin dans un répertoire commun à toutes les machines # # Revision 1.1 2004/11/14 10:36:39 salles -# Ajout des plugins personnalisés +# Ajout des plugins personnalisés # # Revision 1.2 2004/07/27 14:32:46 salles -# nom en premier pour qu'on les ait dans l'ordre alphabétique. mo² +# nom en premier pour qu'on les ait dans l'ordre alphabétique. mo² # # Revision 1.1 2004/07/27 12:17:28 bernat -# Et tournez manège ! +# Et tournez manège ! # # Revision 1.1 2004/07/27 11:37:16 bernat # Deplacement (encore !) # # Revision 1.1 2004/07/27 11:27:43 bernat -# Deplacement (pour pas qu'il soit executé) +# Deplacement (pour pas qu'il soit executé) # # Revision 1.1 2004/07/27 11:19:26 bernat -# SNMP un peu modifié pour avoir le nom des bats en "clair" +# SNMP un peu modifié pour avoir le nom des bats en "clair" # # Revision 1.4 2004/04/30 16:58:14 jimmyo # Added max. diff --git a/munin/snmp__if_err_ b/munin/snmp__if_err_ index 7ea56754..53ecdcc3 100755 --- a/munin/snmp__if_err_ +++ b/munin/snmp__if_err_ @@ -19,7 +19,7 @@ # # $Log: snmp__if_err_,v $ # Revision 1.1 2006/04/20 13:01:21 salles -# On regroupe les plugins munin dans un répertoire commun à toutes les machines +# On regroupe les plugins munin dans un répertoire commun à toutes les machines # # Revision 1.16 2004/12/10 18:51:43 jimmyo # linux/apt* has been forced to LANG=C, to get predictable output. diff --git a/munin/snmp__load b/munin/snmp__load index 6e584b55..b44ce9d8 100755 --- a/munin/snmp__load +++ b/munin/snmp__load @@ -2,17 +2,17 @@ # # $Log: snmp__load,v $ # Revision 1.1 2006/04/20 13:01:21 salles -# On regroupe les plugins munin dans un répertoire commun à toutes les machines +# On regroupe les plugins munin dans un répertoire commun à toutes les machines # # Revision 1.1 2004/11/14 10:36:39 salles -# Ajout des plugins personnalisés +# Ajout des plugins personnalisés # # Revision 1.2 2004/08/03 14:46:38 bernat # Rattache les graphes a l'hote qu'on interroge # # Revision 1.1 2004/08/03 14:45:26 bernat # Import initial -# Commit oublié de momo +# Commit oublié de momo # # Revision 1.1 2004/05/01 10:50:53 jimmyo # New SNMP plugins users and load. diff --git a/munin/snmp__processes b/munin/snmp__processes index 49fb384c..be579050 100755 --- a/munin/snmp__processes +++ b/munin/snmp__processes @@ -2,17 +2,17 @@ # # $Log: snmp__processes,v $ # Revision 1.1 2006/04/20 13:01:21 salles -# On regroupe les plugins munin dans un répertoire commun à toutes les machines +# On regroupe les plugins munin dans un répertoire commun à toutes les machines # # Revision 1.1 2004/11/14 10:36:39 salles -# Ajout des plugins personnalisés +# Ajout des plugins personnalisés # # Revision 1.2 2004/08/03 14:46:38 bernat # Rattache les graphes a l'hote qu'on interroge # # Revision 1.1 2004/08/03 14:45:26 bernat # Import initial -# Commit oublié de momo +# Commit oublié de momo # # Revision 1.1 2004/04/30 20:13:53 jimmyo # New SNMP plugin for number of procs. diff --git a/munin/stats-batiment_ b/munin/stats-batiment_ index 96a992a0..509a81e1 100755 --- a/munin/stats-batiment_ +++ b/munin/stats-batiment_ @@ -1,5 +1,5 @@ #!/usr/bin/env python -# -*- coding: iso-8859-15 -*- +# -*- coding: utf-8 -*- # Gestion des prises dans les batiments # Pour le moment on ne compte pas les prises CRANS @@ -11,7 +11,7 @@ from annuaires import reverse, chbre_prises, bat_switchs, all_switchs, uplink_pr from hptools import hpswitch from ldap_crans import crans_ldap -# Le fichier de nombre d'adhérent par batiments +# Le fichier de nombre d'adhérent par batiments stats_batiments = "/var/lib/munin/tmp/batiments" BAT = sys.argv[0].split('_')[1] @@ -20,7 +20,7 @@ BAT = sys.argv[0].split('_')[1] BAT_CHBRES = {'g' : 312} def switch_prise(bat, prise) : - ''' Renvoie le switch et la prise associé au numéro de la prise ''' + ''' Renvoie le switch et la prise associé au numéro de la prise ''' switch = "bat%s-%i" % (bat, prise/100) prise = prise % 100 return (switch, prise) @@ -40,16 +40,16 @@ if arg == "config" : print 'graph_args --base 1000 --lower-limit 0' # print 'graph_order activ enabled fixes reste prises chbres' print "graph_vlabel nb de chambres" - print 'enabled.label Prises activées' + print 'enabled.label Prises activées' print 'enabled.draw AREA' print 'fixes.label Prises fixes' print 'fixes.draw STACK' - print 'reste.label Prises inutilisées' + print 'reste.label Prises inutilisées' print 'reste.draw STACK' print 'crans.label Prises crans' print 'crans.draw STACK' print 'activ.label Prises actives' - print 'adherent.label Nb adhérents' + print 'adherent.label Nb adhérents' print 'prises.label Nb de prises' print 'chbres.label Nb de chambres' if BAT in BAT_CHBRES : @@ -64,7 +64,7 @@ else : PRISES_ENABLE += hpswitch(switch).is_enable('all') except: PRISES_ENABLE += 0 - # On élimine les prises "CRANS" stockés dans uplink_prises + # On élimine les prises "CRANS" stockés dans uplink_prises for prise in uplink_prises[BAT].keys() : switch, prise = switch_prise(BAT, prise) try: @@ -80,7 +80,7 @@ else : PRISES_ACTIVES += hpswitch(switch).is_up('all') except: PRISES_ACTIVES += 0 - # On élimine les prises "CRANS" stockés dans uplink_prises + # On élimine les prises "CRANS" stockés dans uplink_prises for prise in uplink_prises[BAT].keys() : switch, prise = switch_prise(BAT, prise) try: @@ -119,7 +119,7 @@ else : print "reste.value %d" % int(NB_PRISES - PRISES_ENABLE - PRISES_FIXES - PRISES_CRANS) fichier = open(stats_batiments, 'r') - #NB_ADHERENT = 0 # Plus génant qu'autre chose + #NB_ADHERENT = 0 # Plus génant qu'autre chose for line in fichier.readlines(): if line[3:4] == BAT and line[:3] == "bat" : NB_ADHERENT = line[11:].strip() diff --git a/munin/stats-ip b/munin/stats-ip index 8dd40b4f..56d4e2e2 100755 --- a/munin/stats-ip +++ b/munin/stats-ip @@ -1,5 +1,5 @@ #!/usr/bin/env python -# -*- coding: iso-8859-15 -*- +# -*- coding: utf-8 -*- # Plugin pour visualiser l'utilisation des plages ip diff --git a/munin/stats-ip_ b/munin/stats-ip_ index 63377912..f50b8db0 100755 --- a/munin/stats-ip_ +++ b/munin/stats-ip_ @@ -1,5 +1,5 @@ #!/usr/bin/env python -# -*- coding: iso-8859-15 -*- +# -*- coding: utf-8 -*- # Plugin pour visualiser l'utilisation des plages ip @@ -12,7 +12,7 @@ from ldap_crans import crans_ldap from config import NETs from iptools import AddrInNet -# On prend l'argument pour définir la plage d'ip à analyser +# On prend l'argument pour définir la plage d'ip à analyser SUBNET = sys.argv[0].split('_')[1] try : @@ -21,7 +21,7 @@ except : arg = '' if arg == "config" : - if len(SUBNET) == 1 : NOM = "Bâtiment %s" % string.upper(SUBNET) + if len(SUBNET) == 1 : NOM = "Bâtiment %s" % string.upper(SUBNET) else: NOM = SUBNET print 'host_name adresses-ip' @@ -29,7 +29,7 @@ if arg == "config" : print 'graph_args --base 1000 --lower-limit 0' print 'graph_category network' print "graph_vlabel nb d'ips" - print "utilisees.label IP utilisées" + print "utilisees.label IP utilisées" print "utilisees.draw AREA" print "total.label Total disponibles" diff --git a/munin/webalizer_ b/munin/webalizer_ index ae27d08d..6e8a82e0 100755 --- a/munin/webalizer_ +++ b/munin/webalizer_ @@ -1,13 +1,13 @@ #!/usr/bin/env python -# -*- coding: iso-8859-15 -*- +# -*- coding: utf-8 -*- -# Représentation des navigateurs utilisés +# Représentation des navigateurs utilisés import sys, commands, string, re from time import strftime from operator import add -# On prend l'argument pour définir la table à analyser +# On prend l'argument pour définir la table à analyser SITE = sys.argv[0].split('_')[1] # nom de la machine diff --git a/munin/wiki_themes b/munin/wiki_themes index b609e382..a6f125c8 100755 --- a/munin/wiki_themes +++ b/munin/wiki_themes @@ -1,7 +1,7 @@ #!/usr/bin/env python -# -*- coding: iso-8859-15 -*- +# -*- coding: utf-8 -*- -# Thèmes wiki utilisés +# Thèmes wiki utilisés import sys, commands @@ -15,7 +15,7 @@ except : if arg == "config" : print 'host_name web.rouge' print 'graph_category wiki' - print 'graph_title Thèmes wiki utilisés' + print 'graph_title Thèmes wiki utilisés' print 'graph_scale no' print "graph_vlabel nb d'utilisateurs" for theme in THEMES : diff --git a/munin/wiki_users b/munin/wiki_users index 7cf8a9c1..91738cfb 100755 --- a/munin/wiki_users +++ b/munin/wiki_users @@ -7,7 +7,7 @@ if [ "$1" = "config" ]; then echo 'graph_title Utilisateurs wiki' echo 'graph_args --base 1000 --lower-limit 0' echo "graph_vlabel nombre d'utilisateurs" - echo 'enregistres.label Nb enregistrés' + echo 'enregistres.label Nb enregistrés' echo 'enregistres.draw AREA' echo 'favoris.label Nb avec favoris' exit 0