Re: [CentOS-es] Problemas con Nagios

2009-09-26 Por tema Itxaka serrano
Duplicate definition

Quizás estaría bien si probases a cambiarle el nombre al primer host_name
porque suena a que al leer 2veces Google no lo coje bien.

Es lo único que se me ocurre viendo los cfg

Saludos


Enviado desde mi iPhone

El 26/09/2009, a las 05:58, Antonio Hernandez Benitez anto...@gmail.com
escribió:

Buen dia estoy aprendiendo a usar Nagios y depsues de las configuraciones me
topo con este error alguien podria orientarme

[r...@dsm_linux nagios]# /usr/bin/nagios -v /etc/nagios/nagios.cfg

Nagios Core 3.2.0
Copyright (c) 2009 Nagios Core Development Team and Community Contributors
Copyright (c) 1999-2009 Ethan Galstad
Last Modified: 08-12-2009
License: GPL

Website: http://www.nagios.org
Reading configuration data...
   Read main config file okay...
Processing object config file '/etc/nagios/config/commands.cfg'...
Processing object config file '/etc/nagios/config/contacts.cfg'...
Processing object config file '/etc/nagios/config/contactgroups.cfg'...
Processing object config file '/etc/nagios/config/timeperiods.cfg'...
Processing object config file '/etc/nagios/config/templates.cfg'...
Processing object config file '/etc/nagios/config/hosts.cfg'...
Processing object config file '/etc/nagios/config/hostgroups.cfg'...
Processing object config file '/etc/nagios/config/services.cfg'...
Processing object config directory '/etc/nagios/config'...
Processing object config file '/etc/nagios/config/hosts.cfg'...
Warning: Duplicate definition found for host 'google' (config file
'/etc/nagios/config/hosts.cfg', starting on line 3)
Error: Could not add object property in file '/etc/nagios/config/hosts.cfg'
on line 4.
   Error processing object config files!


*** One or more problems was encountered while processing the config
files...

 Check your configuration file(s) to ensure that they contain valid
 directives and data defintions.  If you are upgrading from a previous
 version of Nagios, you should be aware that some variables/definitions
 may have been removed or modified in this version.  Make sure to read
 the HTML documentation regarding the config files, as well as the
 'Whats New' section to find out what has changed.

y esta es la configuracion de hosts.cfg

#Para checar si la linea de salidaa internet es correcta

define host{
host_name google
alias   Conexion Internet
address www.google.com
use generic-host
}

define host{
host_name miwangateway
alias   ISP Gateway
address 189.229.45.238
parents google
use generic-host
}

define host{
host_name milangateway
alias  LAN Internet Gateway
address 192.168.1.254
parents miwangateway
use generic-host
}

define host{
  host_name dsm_linux
  alias  Servidor Nagios
  address 192.168.1.69
 # parents milangateway
  use generic-host
}

#define host{
 #   host_name dsm_vsa
#alias  Windows Server
   # address gwdsmvsa.myvnc.com
  #  parents milangateway
 #   use generic-host
#}



___
CentOS-es mailing list
CentOS-es@centos.org
http://lists.centos.org/mailman/listinfo/centos-es
___
CentOS-es mailing list
CentOS-es@centos.org
http://lists.centos.org/mailman/listinfo/centos-es


Re: [CentOS-es] Problemas con Sitio web

2009-09-22 Por tema Itxaka serrano
falta php-mysql?
crea un php con este contenido:

?php
$username = user;
$password = pass;
$hostname = localhost;
$dbh = mysql_connect($hostname, $username, $password)
or die(Unable to connect to MySQL);
print Connected to MySQLbr;
mysql_close($dbh);
?

Poniendo tus datos de mysql y accede a el via web o en el teminal con
php-cli a ver que te dice.

Saludos.


El 22 de septiembre de 2009 03:20, Rolando Arteaga 
roly08...@cha.jovenclub.cu escribió:


 :)
 :) Hola a todos, mi problemas es el siquiente instale en centos 5.2,
 apache,
 :) php y mysql, tenia un archivo de .sql, con las bases de datos de mi
 sitio
 :) web.
 :)
 :)
 :) cree una base de datos y descomprimi por desirlo de alguna manera las
 :) tablas de .sql en la base de datos. todo perfecto.
 :)
 :)
 :) utilizo un CMS en ente caso el Fusion version 7.
 :)
 :) pase el sitio web a var/www/html/todo perfecto
 :)
 :) pero cuando trato arrancar por el navegador el sitio web, me carga en
 :) blanco el sitio
 :)
 :)
 :) espero me puedan ayudar un salu2
 :)
 :) hola agrgando mas informacion, trate de instalar el joomla y me da este
 error por favor help...

 Database Error: Unable to connect to the database:The MySQL adapter
 mysql is not available.




 **
 *** Rolando Arteaga *
 *

 ___
 CentOS-es mailing list
 CentOS-es@centos.org
 http://lists.centos.org/mailman/listinfo/centos-es

___
CentOS-es mailing list
CentOS-es@centos.org
http://lists.centos.org/mailman/listinfo/centos-es