rendered paste bodytutoriel suivi
O.s debian etch stable sous xfce4
http://www.labo-linux.org/articles-fr/monitorer-son-serveur-linux-avec-mrtg/configuration-de-mrtg
probleme rencontre
/usr/bin/mrtg /etc/mrtg.cfg
-----------------------------------------------------------------------
ERROR: Mrtg will most likely not work properly when the environment
variable LANG is set to UTF-8. Please run mrtg in an environment
where this is not the case. Try the following command to start:
env LANG=C /usr/bin/mrtg /etc/mrtg.cfg
-----------------------------------------------------------------------
fichier mrtg.cfg en cour:
# Created by
# /usr/bin/cfgmaker --global 'WorkDir: /var/www/online/stats/mrtg' --global 'Language: french' --global 'Option[_]:bits,growright' --ifdesc=descr public@localhost --output /etc/mrtg.cfg
#---------CPU----------------------------------------------
Target[cpu]:ssCpuRawUser.0&ssCpuRawUser.0:public@localhost +
ssCpuRawSystem.0&ssCpuRawSystem.0:public@localhost +
ssCpuRawNice.0&ssCpuRawNice.0:public@localhost
RouterUptime[cpu]: public@localhost
MaxBytes[cpu]: 100
Title[cpu]: CHARGE CPU
PageTop[cpu]: <H1>Charge Active CPU %</H1>
Unscaled[cpu]: ymwd
ShortLegend[cpu]: %
YLegend[cpu]: Utilisation CPU
Legend1[cpu]: CPU Actif en % (Charge)
Legend2[cpu]:
Legend3[cpu]:
Legend4[cpu]:
LegendI[cpu]: Actif
LegendO[cpu]:
Options[cpu]: growright,nopercent
#--------end CPU-----------------------------
#---------SWAP-------------------------------------
Target[swap]: memAvailSwap.0&memTotalSwap.0:public@localhost
Options[swap]: nopercent,growright,gauge,noinfo
Title[swap]: Swap
PageTop[swap]: <H1>Swap.</H1>
MaxBytes[swap]: 1000000000
kMG[swap]: k,M,G,T,P,X
Ylegend[swap]: Octets
ShortLegend[swap]: octets
LegendI[swap]: Swap dispo
LegendO[swap]: Swap total
Legend1[swap]: Swap disponible
Legend2[swap]: Swap total
#--------end SWAP-----------------------------
#---------RAM-------------------------------------
Target[ram]: memAvailReal.0&memTotalReal.0:public@localhost
Options[ram]: nopercent,growright,gauge,noinfo
Title[ram]: RAM
PageTop[ram]: <H1>RAM.</H1>
MaxBytes[ram]: 1000000000
kMG[ram]: k,M,G,T,P,X
Ylegend[ram]: Octets
ShortLegend[ram]: octets
LegendI[ram]: RAM dispo
LegendO[ram]: RAM total
Legend1[ram]: RAM disponible
Legend2[ram]: RAM total
#--------end RAM-----------------------------
### Global Config Options
# for UNIX
# WorkDir: /home/http/mrtg
# for Debian
WorkDir: /var/www/mrtg
# or for NT
# WorkDir: c:\mrtgdata
### Global Defaults
# to get bits instead of bytes and graphs growing to the right
# Options[_]: growright, bits
EnableIPv6: no
WorkDir: /var/www/online/stats/mrtg
Language: french
#Option[_]:bits,growright
######################################################################
# System: ch
# Description: Linux ch 2.6.18-4-486 #1 Wed Apr 18 09:13:09 UTC 2007 i686
# Contact: tnt <root@localhost> (configure /etc/snmp/snmpd.local.conf)
# Location: dch (configure /etc/snmp/snmpd.local.conf)
######################################################################
### Interface 1 >> Descr: 'lo' | Name: 'lo' | Ip: '127.0.0.1' | Eth: '' ###
### The following interface is commented out because:
### * it is a Software Loopback interface
#
# Target[localhost_1]: 1:public@localhost:
# SetEnv[localhost_1]: MRTG_INT_IP="127.0.0.1" MRTG_INT_DESCR="lo"
# MaxBytes[localhost_1]: 1250000
# Title[localhost_1]: lo -- ch
# PageTop[localhost_1]: <h1>lo -- ch</h1>
# <div id="sysdetails">
# <table>
# <tr>
# <td>System:</td>
# <td>ch in dch (configure /etc/snmp/snmpd.local.conf)</td>
# </tr>
# <tr>
# <td>Maintainer:</td>
# <td>tnt <root@localhost> (configure /etc/snmp/snmpd.local.conf)</td>
# </tr>
# <tr>
# <td>Description:</td>
# <td>lo </td>
# </tr>
# <tr>
# <td>ifType:</td>
# <td>softwareLoopback (24)</td>
# </tr>
# <tr>
# <td>ifName:</td>
# <td>lo</td>
# </tr>
# <tr>
# <td>Max Speed:</td>
# <td>1250.0 kBytes/s</td>
# </tr>
# <tr>
# <td>Ip:</td>
# <td>127.0.0.1 (localhost)</td>
# </tr>
# </table>
# </div>
### Interface 2 >> Descr: 'eth1' | Name: 'eth1' | Ip: '192.168.1.81' | Eth: '30-78-30-30-30-61-65-34-35-65-32-31-38-66' ###
Target[localhost_2]: 2:public@localhost:
SetEnv[localhost_2]: MRTG_INT_IP="192.168.1.81" MRTG_INT_DESCR="eth1"
MaxBytes[localhost_2]: 1250000
Title[localhost_2]: eth1 -- ch
PageTop[localhost_2]: <h1>eth1 -- ch</h1>
<div id="sysdetails">
<table>
<tr>
<td>System:</td>
<td>ch in dch (configure /etc/snmp/snmpd.local.conf)</td>
</tr>
<tr>
<td>Maintainer:</td>
<td>tnt <root@localhost> (configure /etc/snmp/snmpd.local.conf)</td>
</tr>
<tr>
<td>Description:</td>
<td>eth1 </td>
</tr>
<tr>
<td>ifType:</td>
<td>ethernetCsmacd (6)</td>
</tr>
<tr>
<td>ifName:</td>
<td>eth1</td>
</tr>
<tr>
<td>Max Speed:</td>
<td>1250.0 kBytes/s</td>
</tr>
<tr>
<td>Ip:</td>
<td>192.168.1.81 ()</td>
</tr>
</table>
</div>
### Interface 3 >> Descr: 'eth0' | Name: 'eth0' | Ip: '' | Eth: '30-78-30-30-30-61-65-34-30-34-34-34-31-30' ###
### The following interface is commented out because:
### * it is administratively DOWN
### * it is operationally DOWN
#
# Target[localhost_3]: 3:public@localhost:
# SetEnv[localhost_3]: MRTG_INT_IP="" MRTG_INT_DESCR="eth0"
# MaxBytes[localhost_3]: 1250000
# Title[localhost_3]: eth0 -- ch
# PageTop[localhost_3]: <h1>eth0 -- ch</h1>
# <div id="sysdetails">
# <table>
# <tr>
# <td>System:</td>
# <td>ch in dch (configure /etc/snmp/snmpd.local.conf)</td>
# </tr>
# <tr>
# <td>Maintainer:</td>
# <td>tnt <root@localhost> (configure /etc/snmp/snmpd.local.conf)</td>
# </tr>
# <tr>
# <td>Description:</td>
# <td>eth0 </td>
# </tr>
# <tr>
# <td>ifType:</td>
# <td>ethernetCsmacd (6)</td>
# </tr>
# <tr>
# <td>ifName:</td>
# <td>eth0</td>
# </tr>
# <tr>
# <td>Max Speed:</td>
# <td>1250.0 kBytes/s</td>
# </tr>
# </table>
# </div>
### Interface 4 >> Descr: 'sit0' | Name: 'sit0' | Ip: '' | Eth: '' ###
### The following interface is commented out because:
### * it is administratively DOWN
### * it is operationally DOWN
### * has a speed of 0 which makes no sense
#
# Target[localhost_4]: 4:public@localhost:
# SetEnv[localhost_4]: MRTG_INT_IP="" MRTG_INT_DESCR="sit0"
# MaxBytes[localhost_4]: 0
# Title[localhost_4]: sit0 -- ch
# PageTop[localhost_4]: <h1>sit0 -- ch</h1>
# <div id="sysdetails">
# <table>
# <tr>
# <td>System:</td>
# <td>ch in dch (configure /etc/snmp/snmpd.local.conf)</td>
# </tr>
# <tr>
# <td>Maintainer:</td>
# <td>tnt <root@localhost> (configure /etc/snmp/snmpd.local.conf)</td>
# </tr>
# <tr>
# <td>Description:</td>
# <td>sit0 </td>
# </tr>
# <tr>
# <td>ifType:</td>
# <td>Encapsulation Interface (131)</td>
# </tr>
# <tr>
# <td>ifName:</td>
# <td>sit0</td>
# </tr>
# <tr>
# <td>Max Speed:</td>
# <td>0.0 Bytes/s</td>
# </tr>
# </table>
# </div>
toute information , lien ou autre sont également les bienvenus