Foros del Web » Administración de Sistemas » Unix / Linux »

Instalando MRTG

Estas en el tema de Instalando MRTG en el foro de Unix / Linux en Foros del Web. Estimados al compilar mrtg ocurre lo siguiente: miserver:/usr/local/mrtg-2.14.5# ./configure --prefix=/usr/local/mrtg-2.14.5 --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... ...
  #1 (permalink)  
Antiguo 24/08/2006, 13:50
 
Fecha de Ingreso: febrero-2002
Mensajes: 346
Antigüedad: 22 años, 2 meses
Puntos: 1
Instalando MRTG

Estimados al compilar mrtg ocurre lo siguiente:

miserver:/usr/local/mrtg-2.14.5# ./configure --prefix=/usr/local/mrtg-2.14.5 --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 ...

Segun entiendo falta las librerias gd, pero estan isntaladas.

Alguno de uds me puede decir que hacer.
Atte
Rides
  #2 (permalink)  
Antiguo 24/08/2006, 13:55
Avatar de srabadie  
Fecha de Ingreso: junio-2005
Mensajes: 1.391
Antigüedad: 18 años, 10 meses
Puntos: 2
Dinos la distribución que utilizas, y también sería útil la razón por la cuál dices que la liberería está instalada, ¿Qué paquete instalaste?
__________________
"La libertad no hace felices a los hombres; los hace sencillamente hombres" - Manuel Azaña.
  #3 (permalink)  
Antiguo 24/08/2006, 14:19
 
Fecha de Ingreso: febrero-2002
Mensajes: 346
Antigüedad: 22 años, 2 meses
Puntos: 1
srabadie:

Estoy usando debian woody, con las siguientes librerias
gcc-1.42
gd-2.0.33
libpng-1.2.12
perl-5.6.2
zlib-1.2.3
mrtg-2.14.5

Como si si esta bien instalado una libreria?, de donde saco esa informacion?.
La verdad es que es priemra vez qe trato de compilar algo, soy novato.
Desde ya muy agradecido

Atte

Rides
  #4 (permalink)  
Antiguo 24/08/2006, 15:03
Avatar de srabadie  
Fecha de Ingreso: junio-2005
Mensajes: 1.391
Antigüedad: 18 años, 10 meses
Puntos: 2
¿Debian Woody? ¿Tienes alguna razón para utilizar algo tan tan tan viejo? Si no es así deberías actualizar al menos a Sarge, que es la rama estable actual.

¡Ah! Y por tu problemilla, se solucionará instalando el paquete libgd-dev. Imagino que sabes instalar paquetes (por si a caso: "apt-get install libgd-dev")


Saludos.


PD: Otra cosilla, ¿Tienes alguna razón para no instalar mrtg desde el sistema de paquetes? Lo digo porque mrtg también está en los repositorios... Ya estaba en Woody, y continúa estando en Sarge.
__________________
"La libertad no hace felices a los hombres; los hace sencillamente hombres" - Manuel Azaña.
  #5 (permalink)  
Antiguo 24/08/2006, 18:29
Avatar de WebTech
Hosting Moderator
 
Fecha de Ingreso: octubre-2005
Ubicación: East Coast
Mensajes: 5.399
Antigüedad: 18 años, 6 meses
Puntos: 162
Otro software muy bueno que deberías también testear es HOTSANIC.

Un saludo!
__________________
Infranetworking.com - Expertos en Hosting Multidominio, Cloud Hosting, Servidores Dedicados y Administración de Servidores Linux
  #6 (permalink)  
Antiguo 28/08/2006, 16:39
 
Fecha de Ingreso: febrero-2002
Mensajes: 346
Antigüedad: 22 años, 2 meses
Puntos: 1
Estimados:

Gracias a todos, ya esta funcionando, con la configuracion basica, osea, estoy monitoreando las eth0 y 1, pero no entiendo como configuro otras cosas, como por ejemplo cpu. memoria, etc. Les agradeceria me dieran otra manito.

Agrdecidamente
Rides
  #7 (permalink)  
Antiguo 31/08/2006, 10:16
 
Fecha de Ingreso: febrero-2002
Mensajes: 346
Antigüedad: 22 años, 2 meses
Puntos: 1
Instalando Mrtg

Estimados:

Alguno de uds me puede ver este script e indicarme donde esta mi error, ya que, solo muestra las dos priemrra interfaces y lueno no muestra nada mas.
Desde ya muy agradecido.

Rides

Este es mi script

# Created by
# /usr/bin/cfgmaker --community public --output /etc/mrtg.cfg localhost


### Global Config Options
# for Debian
WorkDir: /var/www/mrtg

### Global Defaults

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

# EnableIPv6: no

# Global Settings
RunAsDaemon: yes
EnableIPv6: no
WorkDir: /var/www/mrtg
Language: spanish
Options[_]: growright
WriteExpires: Yes

####desde aqui muestra#########
### Interface 2 >> Descr: 'eth0' | Name: '' | Ip: '' | Eth: '10-56-ba-c3-68-c2' ###

Target[localhost_2]: 2:public@localhost:
SetEnv[localhost_2]: MRTG_INT_IP="" MRTG_INT_DESCR="eth0"
MaxBytes1[localhost_2]: 2048
MaxBytes2[localhost_2]: 2048
Title[localhost_2]: Traffic Analysis for 2 -
PageTop[localhost_2]: <H1>Traffic Analysis for Eth0 -- </H1>
<TABLE>
<TR><TD>System:</TD> <TD> server(configure /etc/snmp/snmpd.local.conf)</TD></TR>
<TR><TD>Maintainer:</TD> <TD>Root &lt;root@localhost&gt; (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></TD></TR>
<TR><TD>Max Speed:</TD> <TD>1250.0 kBytes/s</TD></TR>
</TABLE>


### Interface 3 >> Descr: 'eth1' | Name: '' | Ip: '192.168.0.1' | Eth: '10-56-ba-c3-5d-81' ###

Target[localhost_3]: 3:public@localhost:
SetEnv[localhost_3]: MRTG_INT_IP="192.168.0.1" MRTG_INT_DESCR="eth1"
MaxBytes[localhost_3]: 12500000
Title[localhost_3]: Traffic Analysis for 3
PageTop[localhost_3]: <H1>Traffic Analysis for 192.168.1.1 -- </H1>
<TABLE>
<TR><TD>System:</TD> <TD> (configure /etc/snmp/snmpd.local.conf)</TD></TR>
<TR><TD>Maintainer:</TD> <TD>Root &lt;root@localhost&gt; (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></TD></TR>
<TR><TD>Max Speed:</TD> <TD>12.5 MBytes/s</TD></TR>
<TR><TD>Ip:</TD> <TD>192.168.1.1 (firewall.sananselmo)</TD></TR>
</TABLE>


###hasta aqui llega la muestra, hacia bajo no muestra nada######
### tambien probe descomentando todo y me dio el mismo resultado
### solo muestra lo primero de arriba

Target[admin]: '/var/admin'
SetEnv[admin]: MRTG_INT_IP="192.168.0.10" MRTG_INT_DESCR="Admin"
MaxBytes[admin]: 1250000
Title[admin]: Traffic Analysis for Admin
PageTop[admin]: <H1>Traffic Analysis for admin </H1>
<TABLE>
<TR><TD>System:</TD> <TD>mi server (configure /var/admin)</TD></TR>
<TR><TD>Maintainer:</TD> <TD> (configure /var/admin)</TD></TR>
<TR><TD>Description:</TD><TD>admin/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>192.168.1.10 (mipc.midominio)</TD></TR>
</TABLE>

### Interface 4 >> Descr: 'ppp0' | Name: '' | Ip: 'ippublica' | Eth: '' ###
### The following interface is commented out because:
### * 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="ippublica" MRTG_INT_DESCR="ppp0"
# MaxBytes[localhost_4]: 0
# Title[localhost_4]: Traffic Analysis for 4 -- firewall
# PageTop[localhost_4]: <H1>Traffic Analysis for 4 </H1>
# <TABLE>
# <TR><TD>System:</TD> <TD>firewall in Unknown (configure /etc/snmp/snmpd.local.conf)</TD></TR>
# <TR><TD>Maintainer:</TD> <TD>Root &lt;root@localhost&gt; (configure /etc/snmp/snmpd.local.conf)</TD></TR>
# <TR><TD>Description:</TD><TD>ppp0 </TD></TR>
# <TR><TD>ifType:</TD> <TD>ppp (23)</TD></TR>
# <TR><TD>ifName:</TD> <TD></TD></TR>
# <TR><TD>Max Speed:</TD> <TD>0.0 Bytes/s</TD></TR>
# <TR><TD>Ip:</TD> <TD>ippublica (micta.proveedor)</TD></TR>
# </TABLE>

#
#LoadMIBs: /usr/share/snmp/mibs/UCD-SNMP-MIB.txt
#Target[localhost.cpu]:ssCpuRawUser.0&ssCpuRawUser.0:public@localhost + ssCpuRawSystem.0&
#ssCpuRawSystem.0:public@localhost + ssCpuRawNice.0&ssCpuRawNice.0:public@localhost
#RouterUptime[localhost.cpu]: public@localhost
#MaxBytes[localhost.cpu]: 100
#Title[localhost.cpu]: CPU Load
#PageTop[localhost.cpu]: Carga de CPU %
#Unscaled[localhost.cpu]: ymwd
#ShortLegend[localhost.cpu]: %
#YLegend[localhost.cpu]: Uso de CPU
#Legend1[localhost.cpu]: CPU Activa en % (Carga)
#Legend2[localhost.cpu]:
#Legend3[localhost.cpu]:
#Legend4[localhost.cpu]:
#LegendI[localhost.cpu]: Active
#LegendO[localhost.cpu]:
#Options[localhost.cpu]: growright,nopercent
#
#Memoria RAM:
#LoadMIBs: /usr/share/snmp/mibs/HOST-RESOURCES-MIB.txt
#Target[localhost.mem]: .1.3.6.1.4.1.2021.4.6.0&.1.3.6.1.4.1.2021.4.6.0:pu blic@localhost
#PageTop[localhost.mem]: Memoria RAM
#Options[localhost.mem]: nopercent,growright,gauge,noinfo
#Title[localhost.mem]: Memoria Libre
#MaxBytes[localhost.mem]: 1000000
#kMG[localhost.mem]: k,M,G,T,P,X
#YLegend[localhost.mem]: bytes
#ShortLegend[localhost.mem]: bytes
#LegendI[localhost.mem]: Free Memory:
#LegendO[localhost.mem]:
#Legend1[localhost.mem]: Free memory, not including swap, in bytes
#
#Memoria SWAP:
#LoadMIBs: /usr/share/snmp/mibs/UCD-SNMP-MIB.txt
#Target[localhost.swap]: memAvailSwap.0&memAvailSwap.0:public@localhost
#PageTop[localhost.swap]: Memoria Swap
#Options[localhost.swap]: nopercent,growright,gauge,noinfo
#Title[localhost.swap]: Memoria Libre
#MaxBytes[localhost.swap]: 1000000
#kMG[localhost.swap]: k,M,G,T,P,X
#YLegend[localhost.swap]: bytes
#ShortLegend[localhost.swap]: bytes
#LegendI[localhost.swap]: Memoria Libre:
#LegendO[localhost.swap]:
#Legend1[localhost.swap]: Swap memory avail, in bytes
  #8 (permalink)  
Antiguo 10/10/2006, 07:15
 
Fecha de Ingreso: febrero-2002
Mensajes: 346
Antigüedad: 22 años, 2 meses
Puntos: 1
Estimados:

Ya tengo funcionando mi mrtg, estoy sacando varios graficos de mi server. Lo que no he logrado es obtener, por ejemplo ancho de banda de otras maquinas. Me explico como tengo varios usuarios con sus repectivos pcs, necesito sacar detalles de consumo de cada uno y asi ver quien esta abusando.

Agradecidamente

Rides

Última edición por Rides; 10/10/2006 a las 07:21
  #9 (permalink)  
Antiguo 10/10/2006, 07:42
Avatar de Koveart
Colaborador
 
Fecha de Ingreso: julio-2002
Ubicación: Colombia
Mensajes: 4.407
Antigüedad: 21 años, 9 meses
Puntos: 29
mrtg funciona haciendo peticiones de SNMP a las máquinas con las que quiere comunicarse para obtener información haciendo la función de cliente SNMP, si quieres habilitarlo tienes que realizar las operaciones pertinentes para obtener esta información.

Saludos

P.D. ¿POrqué no instalaste mrtg por repositorios? Te hubieras ahorrado mucho tiempo ;)
__________________
“Los soñadores no existen, se lo dice un soñador que ha tenido el privilegio de ver realidades que ni siquiera fue capaz de soñar”
  #10 (permalink)  
Antiguo 10/10/2006, 13:23
 
Fecha de Ingreso: febrero-2002
Mensajes: 346
Antigüedad: 22 años, 2 meses
Puntos: 1
Koveart:

Bueno, no lo hice, por falta de conocimientos. Por eso ahora estoy pidiendo una ayudadita, con un solo ejemplo me queda claro que hacer. De ahi la necesidad de que debo hacer para obtener datos de otras maquina.

Atte

Rides
  #11 (permalink)  
Antiguo 19/02/2008, 22:14
Avatar de darkleo  
Fecha de Ingreso: octubre-2007
Mensajes: 106
Antigüedad: 16 años, 6 meses
Puntos: 0
Re: Instalando MRTG

hola q mas vi tu pregunta y me llamo la atencion puesto q monitoreo el trafico de varias ciudades (BW), me gustaria saber como obtuviste estos parametros de tu server
#
#LoadMIBs: /usr/share/snmp/mibs/UCD-SNMP-MIB.txt
#Target[localhost.cpu]:ssCpuRawUser.0&ssCpuRawUser.0:public@localhost + ssCpuRawSystem.0&
#ssCpuRawSystem.0:public@localhost + ssCpuRawNice.0&ssCpuRawNice.0:public@localhost
#RouterUptime[localhost.cpu]: public@localhost
#MaxBytes[localhost.cpu]: 100
#Title[localhost.cpu]: CPU Load
#PageTop[localhost.cpu]: Carga de CPU %
#Unscaled[localhost.cpu]: ymwd
#ShortLegend[localhost.cpu]: %
#YLegend[localhost.cpu]: Uso de CPU
#Legend1[localhost.cpu]: CPU Activa en % (Carga)
#Legend2[localhost.cpu]:
#Legend3[localhost.cpu]:
#Legend4[localhost.cpu]:
#LegendI[localhost.cpu]: Active
#LegendO[localhost.cpu]:
#Options[localhost.cpu]: growright,nopercent
#
#Memoria RAM:
#LoadMIBs: /usr/share/snmp/mibs/HOST-RESOURCES-MIB.txt
#Target[localhost.mem]: .1.3.6.1.4.1.2021.4.6.0&.1.3.6.1.4.1.2021.4.6.0:pu blic@localhost
#PageTop[localhost.mem]: Memoria RAM
#Options[localhost.mem]: nopercent,growright,gauge,noinfo
#Title[localhost.mem]: Memoria Libre
#MaxBytes[localhost.mem]: 1000000
#kMG[localhost.mem]: k,M,G,T,P,X
#YLegend[localhost.mem]: bytes
#ShortLegend[localhost.mem]: bytes
#LegendI[localhost.mem]: Free Memory:
#LegendO[localhost.mem]:
#Legend1[localhost.mem]: Free memory, not including swap, in bytes
#

con el parametro ./cfgmaker public@localhost o como lo sacaste muchas gracias
  #12 (permalink)  
Antiguo 20/02/2008, 07:36
Avatar de Koveart
Colaborador
 
Fecha de Ingreso: julio-2002
Ubicación: Colombia
Mensajes: 4.407
Antigüedad: 21 años, 9 meses
Puntos: 29
Re: Instalando MRTG

Por favor, no revivir posts viejos si quieres información acerca de este topico abre un nuevo post. Gracias.

Saludos
__________________
“Los soñadores no existen, se lo dice un soñador que ha tenido el privilegio de ver realidades que ni siquiera fue capaz de soñar”
Atención: Estás leyendo un tema que no tiene actividad desde hace más de 6 MESES, te recomendamos abrir un Nuevo tema en lugar de responder al actual.
Tema Cerrado




La zona horaria es GMT -6. Ahora son las 20:02.