Re: [CentOS-es] Ayuda con Nagios y agregar servicio

2013-09-10 Por tema Francesc Guitart
Hola Rodrigo,

Quita el -H cvbuilder de la linea check_command y déjala así:

check_command   check_mysql -P 3306 -u root_passwd

En check_command no es necesario indicar el host ya que ya que en la 
definición del servicio hay una linea para ello:

host_name   cvbuilder

Saludos.


-- 
Francesc Guitart
Service DSI
(33) 4 77 43 84 32
ENISE

Le 07/08/2013 20:20, Rodrigo Pichiñual Norin a écrit :
 Hola a todos:

 necesito de su ayuda.

 Tengo instalado nagios en nuestra red local y necesito monitorear los
 servicios *http y mysql*.

 tengo definido el host y el servicio httpd de esta manera:

 define host {
  use linux-server
  host_name   cvbuilder
  alias   client
  address 192.168.10.113
  max_check_attempts  3
  check_period24x7
  check_interval  3
  notification_interval   10
  notification_period 24x7
 }


 define service{
  use generic-service
  host_name   cvbuilder
  service_description WWW
  check_command   check_http
  notifications_enabled   1
 }

 y funciona.


 pero estoy agregando el servicio mysql de esta manera


 define host {
  use linux-server
  host_name   cvbuilder
  alias   client
  address 192.168.10.113
  max_check_attempts  3
  check_period24x7
  check_interval  3
  notification_interval   10
  notification_period 24x7
 }


 define service{
  use generic-service
  host_name   cvbuilder
  service_description WWW
  check_command   check_http
  notifications_enabled   1
 }

 define service{
  use generic-service
  host_name   cvbuilder
  service_description Mysql
  check_command   check_mysql -H cvbuilder -P 3306 -u
 root -ppasswd
  notifications_enabled   1
 }


 pero no me funciona...estoy recien aprendiendo e investigando de nagios.


 Agradeceria su orientación.

 Saludos
 ___
 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] Ayuda con Nagios y agregar servicio

2013-09-10 Por tema Rodrigo Pichiñual Norin
Gracias por las respuestas:


Creo que era un tema de confusión mía, en realidad lo que tenia que hacer
desde el principio era usar el plugins *NRPE* de nagios, porque a futuro se
cerraria el puerto mysql (3306)


entonce en el *server* de nagios declare los siguiente:

define service{
use generic-service
host_name   cvbuilder
service_description MYSQL
notification_options c,r
check_command   check_nrpe!check_mysqld
notifications_enabled   1
}


y en el *cliente *declare lo siguiente en nrpe.cfg

command[check_mysqld]=/usr/lib64/nagios/plugins/check_mysql -H localhost -u
root -pmipasswd

con esto aunque el puerto 3306 estuviera cerrado por temas de seguridad, de
todas maneras monitorea el *servicio mysql*.

*Muchas Gracias*


El 10 de septiembre de 2013 07:55, Francesc Guitart 
francesc.guit...@enise.fr escribió:

 Hola Rodrigo,

 Quita el -H cvbuilder de la linea check_command y déjala así:

 check_command   check_mysql -P 3306 -u root_passwd

 En check_command no es necesario indicar el host ya que ya que en la
 definición del servicio hay una linea para ello:

 host_name   cvbuilder

 Saludos.


 --
 Francesc Guitart
 Service DSI
 (33) 4 77 43 84 32
 ENISE

 Le 07/08/2013 20:20, Rodrigo Pichiñual Norin a écrit :
  Hola a todos:
 
  necesito de su ayuda.
 
  Tengo instalado nagios en nuestra red local y necesito monitorear los
  servicios *http y mysql*.
 
  tengo definido el host y el servicio httpd de esta manera:
 
  define host {
   use linux-server
   host_name   cvbuilder
   alias   client
   address 192.168.10.113
   max_check_attempts  3
   check_period24x7
   check_interval  3
   notification_interval   10
   notification_period 24x7
  }
 
 
  define service{
   use generic-service
   host_name   cvbuilder
   service_description WWW
   check_command   check_http
   notifications_enabled   1
  }
 
  y funciona.
 
 
  pero estoy agregando el servicio mysql de esta manera
 
 
  define host {
   use linux-server
   host_name   cvbuilder
   alias   client
   address 192.168.10.113
   max_check_attempts  3
   check_period24x7
   check_interval  3
   notification_interval   10
   notification_period 24x7
  }
 
 
  define service{
   use generic-service
   host_name   cvbuilder
   service_description WWW
   check_command   check_http
   notifications_enabled   1
  }
 
  define service{
   use generic-service
   host_name   cvbuilder
   service_description Mysql
   check_command   check_mysql -H cvbuilder -P
 3306 -u
  root -ppasswd
   notifications_enabled   1
  }
 
 
  pero no me funciona...estoy recien aprendiendo e investigando de nagios.
 
 
  Agradeceria su orientación.
 
  Saludos
  ___
  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

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


Re: [CentOS-es] Ayuda con Nagios y agregar servicio

2013-09-03 Por tema Carlos Restrepo
Rodrigo, yo monitoreo el puerto del mysql de la siguiente manera:


##3. Disponibilidad MySQL

define service{

service_description Disponibilidad MySQL

check_command check_tcp!3306

max_check_attempts 5

check_interval 5

retry_interval 3

check_period 24x7

notification_interval 30

notification_period 24x7

notification_options w,c,r

contact_groups admins,adminsBD

host_name Servlinux02

}

Espero te sirva.



Carlos R.


El 12 de agosto de 2013 09:26, Rodrigo Pichiñual Norin 
rodrigo.pichin...@gmail.com escribió:

 Así es .. ejecutando en comando por si solo ...funciona.


 =)


 El 11 de agosto de 2013 21:10, Jordi Rodriguez
 j.rodriguez314...@gmail.comescribió:

  Ejecutando a mano check_mysql -H cvbuilder -P 3306 -u root -ppasswd
  funciona?
 
 
  El 7 de agosto de 2013 20:20, Rodrigo Pichiñual Norin 
  rodrigo.pichin...@gmail.com escribió:
 
   Hola a todos:
  
   necesito de su ayuda.
  
   Tengo instalado nagios en nuestra red local y necesito monitorear los
   servicios *http y mysql*.
  
   tengo definido el host y el servicio httpd de esta manera:
  
   define host {
   use linux-server
   host_name   cvbuilder
   alias   client
   address 192.168.10.113
   max_check_attempts  3
   check_period24x7
   check_interval  3
   notification_interval   10
   notification_period 24x7
   }
  
  
   define service{
   use generic-service
   host_name   cvbuilder
   service_description WWW
   check_command   check_http
   notifications_enabled   1
   }
  
   y funciona.
  
  
   pero estoy agregando el servicio mysql de esta manera
  
  
   define host {
   use linux-server
   host_name   cvbuilder
   alias   client
   address 192.168.10.113
   max_check_attempts  3
   check_period24x7
   check_interval  3
   notification_interval   10
   notification_period 24x7
   }
  
  
   define service{
   use generic-service
   host_name   cvbuilder
   service_description WWW
   check_command   check_http
   notifications_enabled   1
   }
  
   define service{
   use generic-service
   host_name   cvbuilder
   service_description Mysql
   check_command   check_mysql -H cvbuilder -P
 3306
  -u
   root -ppasswd
   notifications_enabled   1
   }
  
  
   pero no me funciona...estoy recien aprendiendo e investigando de
 nagios.
  
  
   Agradeceria su orientación.
  
   Saludos
   ___
   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
 
 ___
 CentOS-es mailing list
 CentOS-es@centos.org
 http://lists.centos.org/mailman/listinfo/centos-es




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


Re: [CentOS-es] Ayuda con Nagios y agregar servicio

2013-08-12 Por tema Jordi Rodriguez
Ejecutando a mano check_mysql -H cvbuilder -P 3306 -u root -ppasswd
funciona?


El 7 de agosto de 2013 20:20, Rodrigo Pichiñual Norin 
rodrigo.pichin...@gmail.com escribió:

 Hola a todos:

 necesito de su ayuda.

 Tengo instalado nagios en nuestra red local y necesito monitorear los
 servicios *http y mysql*.

 tengo definido el host y el servicio httpd de esta manera:

 define host {
 use linux-server
 host_name   cvbuilder
 alias   client
 address 192.168.10.113
 max_check_attempts  3
 check_period24x7
 check_interval  3
 notification_interval   10
 notification_period 24x7
 }


 define service{
 use generic-service
 host_name   cvbuilder
 service_description WWW
 check_command   check_http
 notifications_enabled   1
 }

 y funciona.


 pero estoy agregando el servicio mysql de esta manera


 define host {
 use linux-server
 host_name   cvbuilder
 alias   client
 address 192.168.10.113
 max_check_attempts  3
 check_period24x7
 check_interval  3
 notification_interval   10
 notification_period 24x7
 }


 define service{
 use generic-service
 host_name   cvbuilder
 service_description WWW
 check_command   check_http
 notifications_enabled   1
 }

 define service{
 use generic-service
 host_name   cvbuilder
 service_description Mysql
 check_command   check_mysql -H cvbuilder -P 3306 -u
 root -ppasswd
 notifications_enabled   1
 }


 pero no me funciona...estoy recien aprendiendo e investigando de nagios.


 Agradeceria su orientación.

 Saludos
 ___
 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] Ayuda con Nagios y agregar servicio

2013-08-12 Por tema Rodrigo Pichiñual Norin
Así es .. ejecutando en comando por si solo ...funciona.


=)


El 11 de agosto de 2013 21:10, Jordi Rodriguez
j.rodriguez314...@gmail.comescribió:

 Ejecutando a mano check_mysql -H cvbuilder -P 3306 -u root -ppasswd
 funciona?


 El 7 de agosto de 2013 20:20, Rodrigo Pichiñual Norin 
 rodrigo.pichin...@gmail.com escribió:

  Hola a todos:
 
  necesito de su ayuda.
 
  Tengo instalado nagios en nuestra red local y necesito monitorear los
  servicios *http y mysql*.
 
  tengo definido el host y el servicio httpd de esta manera:
 
  define host {
  use linux-server
  host_name   cvbuilder
  alias   client
  address 192.168.10.113
  max_check_attempts  3
  check_period24x7
  check_interval  3
  notification_interval   10
  notification_period 24x7
  }
 
 
  define service{
  use generic-service
  host_name   cvbuilder
  service_description WWW
  check_command   check_http
  notifications_enabled   1
  }
 
  y funciona.
 
 
  pero estoy agregando el servicio mysql de esta manera
 
 
  define host {
  use linux-server
  host_name   cvbuilder
  alias   client
  address 192.168.10.113
  max_check_attempts  3
  check_period24x7
  check_interval  3
  notification_interval   10
  notification_period 24x7
  }
 
 
  define service{
  use generic-service
  host_name   cvbuilder
  service_description WWW
  check_command   check_http
  notifications_enabled   1
  }
 
  define service{
  use generic-service
  host_name   cvbuilder
  service_description Mysql
  check_command   check_mysql -H cvbuilder -P 3306
 -u
  root -ppasswd
  notifications_enabled   1
  }
 
 
  pero no me funciona...estoy recien aprendiendo e investigando de nagios.
 
 
  Agradeceria su orientación.
 
  Saludos
  ___
  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

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


[CentOS-es] Ayuda con Nagios y agregar servicio

2013-08-07 Por tema Rodrigo Pichiñual Norin
Hola a todos:

necesito de su ayuda.

Tengo instalado nagios en nuestra red local y necesito monitorear los
servicios *http y mysql*.

tengo definido el host y el servicio httpd de esta manera:

define host {
use linux-server
host_name   cvbuilder
alias   client
address 192.168.10.113
max_check_attempts  3
check_period24x7
check_interval  3
notification_interval   10
notification_period 24x7
}


define service{
use generic-service
host_name   cvbuilder
service_description WWW
check_command   check_http
notifications_enabled   1
}

y funciona.


pero estoy agregando el servicio mysql de esta manera


define host {
use linux-server
host_name   cvbuilder
alias   client
address 192.168.10.113
max_check_attempts  3
check_period24x7
check_interval  3
notification_interval   10
notification_period 24x7
}


define service{
use generic-service
host_name   cvbuilder
service_description WWW
check_command   check_http
notifications_enabled   1
}

define service{
use generic-service
host_name   cvbuilder
service_description Mysql
check_command   check_mysql -H cvbuilder -P 3306 -u
root -ppasswd
notifications_enabled   1
}


pero no me funciona...estoy recien aprendiendo e investigando de nagios.


Agradeceria su orientación.

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