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

mrtg



bonjour
je tente d'installer (plutot de configurer) mrtg 
j'ai suivit le howto d'un menbre de la liste sur
http://www.gcolpart.com/mrtg/howto.php4
j'ai un resultat correct avec les ping la memoire et le cpu mais pour
les interfaces graphique j'ai riende concluant et un message d'erreur en
prime voici le message d'erreur suivit de mon fichier de config de mrtg
le but : chercher l'erreur ;-))



le message d'erreur:
debian:/home/guy# mrtg /var/lib/mrtg/mrtg.cfg
SNMP Error:
Received SNMP response with error code
  error status: noSuchName
  index 1 (OID: 1.3.6.1.2.1.2.2.1.10.2)
SNMPv1_Session (remote host: "127.0.0.1" [127.0.0.1].161)
                  community: "public"
                 request ID: 394735129
                PDU bufsize: 8000 bytes
                    timeout: 2s
                    retries: 5
                    backoff: 1)
 at /usr/lib/perl5/SNMP_util.pm line 456
SNMPGET Problem for ifInOctets.2 ifOutOctets.2 sysUptime sysName on
public@127.0.0.1:
 at /usr/bin/mrtg line 1496
WARNING: Expected a number but got ''
WARNING: Expected a number but got ''
SNMP Error:
Received SNMP response with error code
  error status: noSuchName
  index 1 (OID: 1.3.6.1.2.1.2.2.1.10.3)
SNMPv1_Session (remote host: "127.0.0.1" [127.0.0.1].161)
                  community: "public"
                 request ID: 394735130
                PDU bufsize: 8000 bytes
                    timeout: 2s
                    retries: 5
                    backoff: 1)
 at /usr/lib/perl5/SNMP_util.pm line 456
SNMPGET Problem for ifInOctets.3 ifOutOctets.3 sysUptime sysName on
public@127.0.0.1:
 at /usr/bin/mrtg line 1496
WARNING: Expected a number but got ''
WARNING: Expected a number but got ''
WARNING: Problem with External get '/etc/mrtg/ping':
   Expected a Number for 'in' but got ''

WARNING: Problem with Externale get '/etc/mrtg/ping':
   Expected a Number for 'out' but got ''


le fichier de config

# Created by
# /usr/bin/cfgmaker --global 'WorkDir: /var/www/mrtg' --global
'Language: French' --output /etc/mrtg.cfg public@127.0.0.1


### Global Config Options

#  for Debian

#  or for NT
# WorkDir: c:\mrtgdata

### Global Defaults

#  to get bits instead of bytes and graphs growing to the right
# Options[_]: growright, bits

WorkDir: /var/www/mrtg
Language: French

######################################################################
# System: temp
# Description: Linux temp 2.4.18-bf2.4 #1 Son Apr 14 09:53:28 CEST 2002
i686
# Contact: Root <root@localhost> (configure /etc/snmp/snmp.local.conf)
# Location: Unknown (configure /etc/snmp/snmp.local.conf)
######################################################################


### Interface 1 >> Descr: 'lo' | Name: '' | Ip: '127.0.0.1' | Eth: ''
###
### The following interface is commented out because:
### * it is a Software Loopback interface
#
# Target[127.0.0.1_1]: 1:public@127.0.0.1:
# SetEnv[127.0.0.1_1]: MRTG_INT_IP="127.0.0.1" MRTG_INT_DESCR="lo"
# MaxBytes[127.0.0.1_1]: 1250000
# Title[127.0.0.1_1]: Traffic Analysis for 1 -- temp
# PageTop[127.0.0.1_1]: <H1>Traffic Analysis for 1 -- temp</H1>
#  <TABLE>
#    <TR><TD>System:</TD>     <TD>temp in Unknown (configure
/etc/snmp/snmp.local.conf)</TD></TR>
#    <TR><TD>Maintainer:</TD> <TD>Root &lt;root@localhost&gt; (configure
/etc/snmp/snmp.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></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>


### Interface 2 >> Descr: 'eth0' | Name: '' | Ip: '192.168.1.10' | Eth:
'00-e0-7d-d2-00-0e' ###

Target[127.0.0.1_2]: 2:public@127.0.0.1:
SetEnv[127.0.0.1_2]: MRTG_INT_IP="192.168.0.1" MRTG_INT_DESCR="eth0"
MaxBytes[127.0.0.1_2]: 1250000
Title[127.0.0.1_2]: Traffic Analysis for Intranet
PageTop[127.0.0.1_2]: <H1>Traffic Analysis for Intranet</H1>
 <TABLE>
   <TR><TD>System:</TD>     <TD>Debian GNU/Linux</TD></TR>
   <TR><TD>Maintainer:</TD> <TD>guy88@freegates.be</TD></TR>
   <TR><TD>Description:</TD><TD>eth0  </TD></TR>
   <TR><TD>ifType:</TD>     <TD>ethernetCsmacd (6)</TD></TR>
   <TR><TD>ifName:</TD>     <TD></TD></TR>
   <TR><TD>Max Speed:</TD>  <TD>1250.0 kBytes/s</TD></TR>
   <TR><TD>Ip:</TD>         <TD>192.168.1.10 ()</TD></TR>
 </TABLE>


### Interface 3 >> Descr: 'eth1' | Name: '' | Ip: '0.0.0.0' | Eth:
'00-01-03-d7-a1-be' ###

Target[127.0.0.1_3]: 3:public@127.0.0.1:
SetEnv[127.0.0.1_3]: MRTG_INT_IP="192.168.1.1" MRTG_INT_DESCR="eth1"
MaxBytes[127.0.0.1_3]: 1250000
Title[127.0.0.1_3]: Traffic Analysis for Internet
PageTop[127.0.0.1_3]: <H1>Traffic Analysis for Internet</H1>
 <TABLE>
   <TR><TD>System:</TD>     <TD>Debian GNU/Linux</TD></TR>
   <TR><TD>Maintainer:</TD> <TD>guy88@freegates.be</TD></TR>
   <TR><TD>Description:</TD><TD>eth1  </TD></TR>
   <TR><TD>ifType:</TD>     <TD>ethernetCsmacd (6)</TD></TR>
   <TR><TD>ifName:</TD>     <TD></TD></TR>
   <TR><TD>Max Speed:</TD>  <TD>512.0 kBytes/s</TD></TR>
   <TR><TD>Ip:</TD>         <TD>0.0.0.0 ()</TD></TR>
 </TABLE>


### Interface 4 >> Descr: 'Wireless' | Name: '' | Ip: '192.168.2.1' |
Eth: '' ###
### The following interface is commented out because:
### * has a speed of 0 which makes no sense
#
 Target[127.0.0.1_4]: 4:public@127.0.0.1:
 SetEnv[127.0.0.1_4]: MRTG_INT_IP="192.168.2.1"
MRTG_INT_DESCR="wireless"
 MaxBytes[127.0.0.1_4]: 125000
 Title[127.0.0.1_4]: Analise du traffic wireless -- temp
  PageTop[127.0.0.1_4]: <H1>Analyse du traffic wireless -- temp</H1>
  <TABLE>
  #  <TR><TD>System:</TD>     <TD>temp in Unknown (configure
/etc/snmp/snmp.local.conf)</TD></TR>
    <TR><TD>Maintainer:</TD> <TD>guy88@freegates.be</TD></TR>
    <TR><TD>Description:</TD><TD>wireless  </TD></TR>
    <TR><TD>ifType:</TD>     <TD>ethernetCsmacd (23)</TD></TR>
    <TR><TD>ifName:</TD>     <TD>Bombolong</TD></TR>
    <TR><TD>Max Speed:</TD>  <TD>11 mega Bytes/s</TD></TR>
    <TR><TD>Ip:</TD>         <TD>192.168.2.1</TD></TR>
  </TABLE>



#---------Ping Nerim--------------------
Target[ping_nerim]: `/etc/mrtg/ping`
Options[ping_nerim]: nopercent,growright,gauge,noinfo, nobanner
MaxBytes[ping_nerim]: 10000
AbsMax[ping_nerim]: 10000
YLegend[ping_nerim]: Latence
ShortLegend[ping_nerim]: ms
Legend1[ping_nerim]: Latence max en ms
Legend2[ping_nerim]: Latence min en ms
LegendI[ping_nerim]: Latence Max:
LegendO[ping_nerim]: Latence Min:
Title[ping_nerim]: Ping sur www.chello.com
PageTop[ping_nerim]: <h1>Latence sur www.chello.com</h1>
WithPeak[ping_nerim]:wmy
Legend4[ping_nerim]: Max de la latence min
Legend3[ping_nerim]: Max de la latence max
#--------end ping-----------------------------



#---------CPU-------------------
Target[cpu]: `/etc/mrtg/cpustat`
Options[cpu]: nopercent,growright,gauge,noinfo, nobanner

#Unscaled[cpu]:dwmy
MaxBytes[cpu]: 100
YLegend[cpu]: % CPU
ShortLegend[cpu]: % CPU
Legend1[cpu]: % CPU Utilisateur
Legend2[cpu]: % CPU Utilisateur + Système
LegendI[cpu]: Utilisateur:
LegendO[cpu]: Total:
Title[cpu]: CPU
PageTop[cpu]: <h1>CPU</h1>
WithPeak[cpu]:wmy
Legend3[cpu]: Max % CPU Utilisateur
Legend4[cpu]: Max % CPU Utilisateur + Système
#--------end CPU-----------------------------



#---------Memory--------------------
Target[mem]: `/etc/mrtg/mem`
Options[mem]: nopercent,growright,gauge,noinfo, nobanner
Unscaled[mem]:dwmy
MaxBytes[mem]: 261025792
Kilo[mem]:1024
YLegend[mem]: RAM
ShortLegend[mem]: o
Legend1[mem]: Mémoire libre
Legend2[mem]: Mémoire utilisée
LegendI[mem]: Mém. Libre:
LegendO[mem]: Mém. Utilisée:
Title[mem]: Mémoire
PageTop[mem]: <h1>Mémoire</h1>
WithPeak[mem]:wmy
Legend3[mem]: Mémoire libre max
Legend4[mem]: Mémoire utilisée max
#--------end Memory-----------------------------



-- 
hendrickx guy <guy88@freegates.be>



Reply to: