Pages : 1
#1 Le 06/06/2005, à 19:20
- PL2005
Probleme configuration de MRTG
Bonjour,
Alors que J'ai installé GCC, Perl, gd, libpng et zlib, j'ai un problème lors de la configuration de MRTG.
Voici ce qu'il se passe lors de mon execution du config:
root@fixe:/usr/local/mrtg-2.12.1 # ./configure --prefix=/usr/local/mrtg-2.12.1 --with-gd=/usr/local/src/gd --with-z=/usr/local/src/zlib --with-png=/usr/local/src/libpng
checking for gcc... gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ANSI C... none needed
checking how to run the C preprocessor... gcc -E
checking whether make sets $(MAKE)... yes
checking for a BSD-compatible install... /usr/bin/install -c
checking for perl... /usr/bin/perl
checking for groff... /usr/bin/groff
checking for egrep... grep -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking for inttypes.h... (cached) yes
checking for unsigned long long... yes
checking for long long... yes
checking for strtoll... yes
checking for printf long long format specifier... %lld
checking for pow in -lm... yes
checking for gdImageGif in -lgd... no
checking for gdImagePng in -lgd... no
checking for gdImagePng_jpg in -lgd... no
checking for gdImagePng_jpg_ft in -lgd... no
checking for gdImageGd in -lgd... no
checking gd.h usability... yes
checking gd.h presence... yes
checking for gd.h... yes
** Ooops, one of many bad things happened:
a) You don't have the GD library installed.
Get it from http://www.boutell.com, compile it and
use either --with-gd-lib=DIR and --with-gd-inc=DIR to specify
its location. You might also have to use --with-z-inc,
--with-z-lib and --with-png-inc, --with-png-lib for gd
versions 1.6 and higher. Check config.log for more
information on the problem.
b) You have the GD library installed, but not the gd.h
header file. Download the source (see above) and use
--with-gd-inc=DIR to specify where the file can be found.
c) You have the library and the header file installed, but
you also have a shared GD library in the same directory.
Remove the shared library files and/or links (e.g.
libgd.so.2.0.0, libgd.so and libgd.so.2). This is especially
likely if you're using a recent (post 1.8.4) version of GD
and didn't configure it with --disable-shared.
d) You have gd library installed and also it's headers, but you are
missing libpng (and headers) or freetype (and headers)
(mrtg does not use freetype, but if your copy of gd is precompiled
against it, you have to install it ...
Consider following the instructions in doc/mrtg-unix-guide.txt
Il me faudrait absolumlent de l'aide, donc si je dois installer un autre package...si qqn a déjà essayé mrtg avec le mm probleme...
Merci
Hors ligne
#2 Le 06/06/2005, à 20:16
- ZeBob
Re : Probleme configuration de MRTG
je penche pour la solution d : vérifie que tu as les headers de libpng (et pas seulement la libpng).
Hors ligne
#3 Le 07/06/2005, à 12:32
- PL2005
Re : Probleme configuration de MRTG
Pour la libpng, j'ai installé avec synaptic les paquets suivants :
libpng10-0
libpng10-dev
libpng12-0
libpng12-dev
libpng2
libpng3
libpng3-dev
libpng-dylan
libpng-sixlegs-java
Quels sont les headers manquants?
Merci
Hors ligne
#4 Le 07/06/2005, à 15:18
- PL2005
Re : Probleme configuration de MRTG
en fait il me manquait les packages "libgd"...
Hors ligne
#5 Le 07/06/2005, à 15:20
- Ju.
Re : Probleme configuration de MRTG
Pourquoi tu t'embetes ?
http://packages.ubuntu.com/hoary/net/mrtg
(pour peu que le depot Universe soit activé)
Hors ligne
#6 Le 07/06/2005, à 17:27
- PL2005
Re : Probleme configuration de MRTG
Cependant, il reste un autre probleme pdt le lancement de mrtg !
root@fixe:/usr/local/mrtg-2/bin # /usr/local/mrtg-2/bin/mrtg /home/mrtg/cfg/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/local/mrtg-2/bin/mrtg /home/mrtg/cfg/mrtg.cfg
Le fichier mrtg.cfg est créé...
J'ai suivi ce guide d'utilisation --> http://people.ee.ethz.ch/~oetiker/webtools/mrtg/mrtg-unix-guide.html
Je vois pas trop ce que je dois faire, si je dois définir l'adresse IP distante par exemple,... ?
C'est une utilisation de mrtg pour un réseau ad-hoc entre 2 pc et je veux voir les graphiques avec mrtg sur le pc fixe avec carte PCI netgear MA311...
???
Merci
Hors ligne
#7 Le 07/06/2005, à 18:02
- Ju.
Re : Probleme configuration de MRTG
En gros ca te dit qu'il ne veut pas s'executer en environnement utf-8.
Il te demande de lancer le programme avec le prefixe : env LANG=C
Donc lance ta commande via env LANG=C
Si c'est un script juste avant la commande mrtg.
Hors ligne
#8 Le 08/06/2005, à 14:46
- PL2005
Re : Probleme configuration de MRTG
ok, j'ai changé l'environnement en C.
La commande s'exécute, mais normalement je dois avoir une fenetre internet qui s'ouvre avec les graphiques ?
Comment verifier q'il utilise bien ma carte et mon adresse IP pour capturer le signal réseau wifi?
Hors ligne
#9 Le 08/06/2005, à 16:00
- PL2005
Re : Probleme configuration de MRTG
QUand je fais mon "cfgmaker public@localhost", j'ai des problèmes:
root@fixe:/usr/local/mrtg-2/bin # cfgmaker public@localhost
--base: Get Device Info on public@localhost:
SNMP Error:
Received SNMP response with error code
error status: noSuchName
index 1 (OID: 1.3.6.1.2.1.1.9.1.4.9)
SNMPv1_Session (remote host: "localhost" [127.0.0.1].161)
community: "public"
request ID: -1912071275
PDU bufsize: 8000 bytes
timeout: 2s
retries: 5
backoff: 1)
at /usr/share/perl5/SNMP_util.pm line 733
--base: Vendor Id:
--base: Populating confcache
--snpo: Skipping ifName scanning because public@localhost: does not seem to support it
--snpo: Skipping ifDescr scanning because public@localhost: does not seem to support it
--snpo: Skipping ifType scanning because public@localhost: does not seem to support it
--snpo: Skipping ipAdEntIfIndex scanning because public@localhost: does not seem to support it
--snpo: Skipping ifPhysAddress scanning because public@localhost: does not seem to support it
--base: Get Interface Info
--base: Walking ifIndex
SNMP Error:
Received SNMP response with error code
error status: noSuchName
index 1 (OID: 1.3.6.1.2.1.2.2.1.1)
SNMPv1_Session (remote host: "localhost" [127.0.0.1].161)
community: "public"
request ID: -1912071269
PDU bufsize: 8000 bytes
timeout: 2s
retries: 5
backoff: 1)
at /usr/share/perl5/SNMP_util.pm line 627
SNMPWALK Problem for 1.3.6.1.2.1.2.2.1.1 on public@localhost::::::v4only
at /usr/bin/cfgmaker line 144
--base: Walking ifType
SNMP Error:
Received SNMP response with error code
error status: noSuchName
index 1 (OID: 1.3.6.1.2.1.2.2.1.3)
SNMPv1_Session (remote host: "localhost" [127.0.0.1].161)
community: "public"
request ID: -1912071268
PDU bufsize: 8000 bytes
timeout: 2s
retries: 5
backoff: 1)
at /usr/share/perl5/SNMP_util.pm line 627
SNMPWALK Problem for 1.3.6.1.2.1.2.2.1.3 on public@localhost::::::v4only
at /usr/bin/cfgmaker line 144
--base: Walking ifAdminStatus
SNMP Error:
Received SNMP response with error code
error status: noSuchName
index 1 (OID: 1.3.6.1.2.1.2.2.1.7)
SNMPv1_Session (remote host: "localhost" [127.0.0.1].161)
community: "public"
request ID: -1912071267
PDU bufsize: 8000 bytes
timeout: 2s
retries: 5
backoff: 1)
at /usr/share/perl5/SNMP_util.pm line 627
SNMPWALK Problem for 1.3.6.1.2.1.2.2.1.7 on public@localhost::::::v4only
at /usr/bin/cfgmaker line 144
--base: Walking ifOperStatus
SNMP Error:
Received SNMP response with error code
error status: noSuchName
index 1 (OID: 1.3.6.1.2.1.2.2.1.8)
SNMPv1_Session (remote host: "localhost" [127.0.0.1].161)
community: "public"
request ID: -1912071266
PDU bufsize: 8000 bytes
timeout: 2s
retries: 5
backoff: 1)
at /usr/share/perl5/SNMP_util.pm line 627
SNMPWALK Problem for 1.3.6.1.2.1.2.2.1.8 on public@localhost::::::v4only
at /usr/bin/cfgmaker line 144
--base: Walking ifSpeed
SNMP Error:
Received SNMP response with error code
error status: noSuchName
index 1 (OID: 1.3.6.1.2.1.2.2.1.5)
SNMPv1_Session (remote host: "localhost" [127.0.0.1].161)
community: "public"
request ID: -1912071265
PDU bufsize: 8000 bytes
timeout: 2s
retries: 5
backoff: 1)
at /usr/share/perl5/SNMP_util.pm line 627
SNMPWALK Problem for 1.3.6.1.2.1.2.2.1.5 on public@localhost::::::v4only
at /usr/bin/cfgmaker line 171
# Created by
# /usr/bin/cfgmaker public@localhost
### 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
######################################################################
# System: fixe
# Description: Linux fixe 2.6.10-5-386 #1 Fri May 20 13:52:48 UTC 2005 i686
# Contact: Root <root@localhost> (configure /etc/snmp/snmpd.local.conf)
# Location: Unknown (configure /etc/snmp/snmpd.local.conf)
######################################################################
Est-ce qqn saurait me dire comment je dois configurer mrtg ?
Ce qui m'intéresse est l'interface eth0 (172.16.10.2) de ce pc "fixe".
Mon pc portable s'appelle ubuntu (172.16.10.1), son interface est wlan0.
Est-ce que je dois specifier l'ESSID ou les adresses dans mon cfgmaker ?
Il me faut absolument de l'aide, c'est urgent...
Merci de votre aide
Hors ligne
#10 Le 08/06/2005, à 17:48
- PL2005
Re : Probleme configuration de MRTG
La carte du pc fixe est une netgear MA311.
Help me, please
Hors ligne
#11 Le 05/05/2006, à 10:17
- Vanalex
Re : Probleme configuration de MRTG
Hello,
C'est tout le problème....
J'ai le même problème. Je pense que notre souci vient du fait que SNMP n'est pas actif car MRTG dit qu'il n'arrive pas à se connecter à SNMP. Quand je fait un NMAP sur ma machine, je ne vois pas le port SNMP. Je ne sais pas comment configurer SNMP.
Je suis persuadé que des linuxiens ont la réponse à notre problème. Mais répondront ils?
SVP
#12 Le 05/05/2006, à 19:54
- Ju.
Re : Probleme configuration de MRTG
Il faut activer le service snmp, il a pas l'air lance la...
C'est le paquet snmpd
Tu peux voir s'il tourne via ps aux|grep snmp
Hors ligne
#13 Le 08/05/2006, à 01:23
- lapin
Re : Probleme configuration de MRTG
SNMP se lance. Malheureusement, il n'accepte pas les connexions avec les autres.
il faut changer un petit truc dans le fichier de conf de SNMP : /etc/snmp/snmpd.conf
Voici comment, ca doit etre configurer :
####
# First, map the community name (COMMUNITY) into a security name
# (local and mynetwork, depending on where the request is coming
# from):
# sec.name source community
#com2sec paranoid default public
com2sec readonly default public
#com2sec readwrite default private
Pages : 1