Re: [Nagios-users-br] Ajuda com LibMySQL

2009-02-09 Por tôpico Augusto Ferronato
eu uso o NDOUtils para conseguir gravar no banco :) no site do Nagios
tem um DOC ensinando a configurar, é tranquilo :)

Abs[]

On Sat, Feb 7, 2009 at 2:03 AM, alexandercsq alexander...@terra.com.br wrote:
 a uns 4 meses penei pra configurar, vi outro dia uma distribuição
 chamada FAN... instalei numa VM meu Deus o que é aquilo tudo
 pronto e funcionando perfeitamente com NAGVIS e tudo.

 -- Cabeçalho original ---

 De: pedro luiz nunes pinholato pedrolnp...@gmail.com
 Para: Unofficial Brazilian (Portuguese) Nagios Users List 
 nagios-users-br@lists.sourceforge.net
 Cópia:
 Data: Wed, 28 Jan 2009 20:40:21 -0200
 Assunto: Re: [Nagios-users-br] Ajuda com LibMySQL

 Ah entendi, então blz.
 Cara responde uma coisa pra mim, eu nunca usei o nagios com banco de dados,
 mas depois que eu instalei e configurei o nagios, é muito complicado pra eu
 instalar o mysql e fazer ele trabalhar com o nagios? por que eu só falando
 que o mysql precisa ser instalado antes do nagios.

 2009/1/28 Augusto Ferronato augusto.ferron...@gmail.com

  Pedro,
   Consegui resolver o problema, era pq o mysql que tava instalado, tava
  todo fora do padrão ;), linkei os headers e funcionou!
 
 
  Abs[]
 
  On Tue, Jan 27, 2009 at 8:24 PM, pedro luiz nunes pinholato
  pedrolnp...@gmail.com wrote:
   Cara, vc já confirmou se todas as dependencias do nagios e o mysql estão
   instaladas?
  
   2009/1/26 Augusto Ferronato augusto.ferron...@gmail.com
  
   Pessoal,
Estou instalando o nagios-plugins aqui no meu servidor, só que ele tá
   dando este erro
  
  then mv -f .deps/check_mysql-check_mysql.Tpo
   .deps/check_mysql-check_mysql.Po; else rm -f
   .deps/check_mysql-check_mysql.Tpo; exit 1; fi
   check_mysql.c:48:19: error: mysql.h: No such file or directory
   check_mysql.c:49:20: error: errmsg.h: No such file or directory
   check_mysql.c:56: error: âMYSQL_PORTâ undeclared here (not in a
  function)
   check_mysql.c: In function âmainâ:
   check_mysql.c:71: error: âMYSQLâ undeclared (first use in this function)
   check_mysql.c:71: error: (Each undeclared identifier is reported only
  once
   check_mysql.c:71: error: for each function it appears in.)
   check_mysql.c:71: error: expected â;â before âmysqlâ
   check_mysql.c:72: error: âMYSQL_RESâ undeclared (first use in this
   function)
   check_mysql.c:72: error: âresâ undeclared (first use in this function)
   check_mysql.c:73: error: âMYSQL_ROWâ undeclared (first use in this
   function)
   check_mysql.c:73: error: expected â;â before ârowâ
   check_mysql.c:92: error: âmysqlâ undeclared (first use in this function)
   check_mysql.c:94: error: âMYSQL_READ_DEFAULT_GROUPâ undeclared (first
   use in this function)
   check_mysql.c:98: error: âCR_UNKNOWN_HOSTâ undeclared (first use in
   this function)
   check_mysql.c:100: error: âCR_VERSION_ERRORâ undeclared (first use in
   this function)
   check_mysql.c:102: error: âCR_OUT_OF_MEMORYâ undeclared (first use in
   this function)
   check_mysql.c:104: error: âCR_IPSOCK_ERRORâ undeclared (first use in
   this function)
   check_mysql.c:106: error: âCR_SOCKET_CREATE_ERRORâ undeclared (first
   use in this function)
   check_mysql.c:113: warning: cast to pointer from integer of different
  size
   check_mysql.c:113: warning: cast to pointer from integer of different
  size
   check_mysql.c:113: warning: cast to pointer from integer of different
  size
   check_mysql.c:113: warning: passing argument 1 of âstrlenâ makes
   pointer from integer without a cast
   check_mysql.c:113: warning: passing argument 2 of âmemcpyâ makes
   pointer from integer without a cast
   check_mysql.c:113: warning: passing argument 1 of â__strdupâ makes
   pointer from integer without a cast
   check_mysql.c:117: error: âCR_SERVER_GONE_ERRORâ undeclared (first use
   in this function)
   check_mysql.c:119: error: âCR_SERVER_LOSTâ undeclared (first use in
   this function)
   check_mysql.c:121: error: âCR_UNKNOWN_ERRORâ undeclared (first use in
   this function)
   check_mysql.c:128: warning: cast to pointer from integer of different
  size
   check_mysql.c:128: warning: cast to pointer from integer of different
  size
   check_mysql.c:128: warning: cast to pointer from integer of different
  size
   check_mysql.c:128: warning: passing argument 1 of âstrlenâ makes
   pointer from integer without a cast
   check_mysql.c:128: warning: passing argument 2 of âmemcpyâ makes
   pointer from integer without a cast
   check_mysql.c:128: warning: passing argument 1 of â__strdupâ makes
   pointer from integer without a cast
   check_mysql.c:135: warning: cast to pointer from integer of different
  size
   check_mysql.c:135: warning: cast to pointer from integer of different
  size
   check_mysql.c:135: warning: cast to pointer from integer of different
  size
   check_mysql.c:135: warning: passing argument 1 of âstrlenâ makes
   pointer from integer without a cast
   check_mysql.c:135: warning: passing argument 2 of âmemcpyâ makes
   pointer from

Re: [Nagios-users-br] Ajuda com LibMySQL

2009-02-02 Por tôpico pedro luiz nunes pinholato
Ah entendi, então blz.
Cara responde uma coisa pra mim, eu nunca usei o nagios com banco de dados,
mas depois que eu instalei e configurei o nagios, é muito complicado pra eu
instalar o mysql e fazer ele trabalhar com o nagios? por que eu só falando
que o mysql precisa ser instalado antes do nagios.

2009/1/28 Augusto Ferronato augusto.ferron...@gmail.com

 Pedro,
  Consegui resolver o problema, era pq o mysql que tava instalado, tava
 todo fora do padrão ;), linkei os headers e funcionou!


 Abs[]

 On Tue, Jan 27, 2009 at 8:24 PM, pedro luiz nunes pinholato
 pedrolnp...@gmail.com wrote:
  Cara, vc já confirmou se todas as dependencias do nagios e o mysql estão
  instaladas?
 
  2009/1/26 Augusto Ferronato augusto.ferron...@gmail.com
 
  Pessoal,
   Estou instalando o nagios-plugins aqui no meu servidor, só que ele tá
  dando este erro
 
 then mv -f .deps/check_mysql-check_mysql.Tpo
  .deps/check_mysql-check_mysql.Po; else rm -f
  .deps/check_mysql-check_mysql.Tpo; exit 1; fi
  check_mysql.c:48:19: error: mysql.h: No such file or directory
  check_mysql.c:49:20: error: errmsg.h: No such file or directory
  check_mysql.c:56: error: âMYSQL_PORTâ undeclared here (not in a
 function)
  check_mysql.c: In function âmainâ:
  check_mysql.c:71: error: âMYSQLâ undeclared (first use in this function)
  check_mysql.c:71: error: (Each undeclared identifier is reported only
 once
  check_mysql.c:71: error: for each function it appears in.)
  check_mysql.c:71: error: expected â;â before âmysqlâ
  check_mysql.c:72: error: âMYSQL_RESâ undeclared (first use in this
  function)
  check_mysql.c:72: error: âresâ undeclared (first use in this function)
  check_mysql.c:73: error: âMYSQL_ROWâ undeclared (first use in this
  function)
  check_mysql.c:73: error: expected â;â before ârowâ
  check_mysql.c:92: error: âmysqlâ undeclared (first use in this function)
  check_mysql.c:94: error: âMYSQL_READ_DEFAULT_GROUPâ undeclared (first
  use in this function)
  check_mysql.c:98: error: âCR_UNKNOWN_HOSTâ undeclared (first use in
  this function)
  check_mysql.c:100: error: âCR_VERSION_ERRORâ undeclared (first use in
  this function)
  check_mysql.c:102: error: âCR_OUT_OF_MEMORYâ undeclared (first use in
  this function)
  check_mysql.c:104: error: âCR_IPSOCK_ERRORâ undeclared (first use in
  this function)
  check_mysql.c:106: error: âCR_SOCKET_CREATE_ERRORâ undeclared (first
  use in this function)
  check_mysql.c:113: warning: cast to pointer from integer of different
 size
  check_mysql.c:113: warning: cast to pointer from integer of different
 size
  check_mysql.c:113: warning: cast to pointer from integer of different
 size
  check_mysql.c:113: warning: passing argument 1 of âstrlenâ makes
  pointer from integer without a cast
  check_mysql.c:113: warning: passing argument 2 of âmemcpyâ makes
  pointer from integer without a cast
  check_mysql.c:113: warning: passing argument 1 of â__strdupâ makes
  pointer from integer without a cast
  check_mysql.c:117: error: âCR_SERVER_GONE_ERRORâ undeclared (first use
  in this function)
  check_mysql.c:119: error: âCR_SERVER_LOSTâ undeclared (first use in
  this function)
  check_mysql.c:121: error: âCR_UNKNOWN_ERRORâ undeclared (first use in
  this function)
  check_mysql.c:128: warning: cast to pointer from integer of different
 size
  check_mysql.c:128: warning: cast to pointer from integer of different
 size
  check_mysql.c:128: warning: cast to pointer from integer of different
 size
  check_mysql.c:128: warning: passing argument 1 of âstrlenâ makes
  pointer from integer without a cast
  check_mysql.c:128: warning: passing argument 2 of âmemcpyâ makes
  pointer from integer without a cast
  check_mysql.c:128: warning: passing argument 1 of â__strdupâ makes
  pointer from integer without a cast
  check_mysql.c:135: warning: cast to pointer from integer of different
 size
  check_mysql.c:135: warning: cast to pointer from integer of different
 size
  check_mysql.c:135: warning: cast to pointer from integer of different
 size
  check_mysql.c:135: warning: passing argument 1 of âstrlenâ makes
  pointer from integer without a cast
  check_mysql.c:135: warning: passing argument 2 of âmemcpyâ makes
  pointer from integer without a cast
  check_mysql.c:135: warning: passing argument 1 of â__strdupâ makes
  pointer from integer without a cast
  check_mysql.c:147: error: ârowâ undeclared (first use in this function)
  check_mysql.c:148: warning: cast to pointer from integer of different
 size
  check_mysql.c:148: warning: cast to pointer from integer of different
 size
  check_mysql.c:148: warning: cast to pointer from integer of different
 size
  check_mysql.c:148: warning: passing argument 1 of âstrlenâ makes
  pointer from integer without a cast
  check_mysql.c:148: warning: passing argument 2 of âmemcpyâ makes
  pointer from integer without a cast
  check_mysql.c:148: warning: passing argument 1 of â__strdupâ makes
  pointer from integer without a cast
  check_mysql.c:166: error: