Att,
Samuel .
> From: rbga...@gmail.com
> Date: Mon, 25 May 2015 11:17:47 -0300
> To: freebsd@fug.com.br
> Subject: Re: [FUG-BR] [OFF] Jabber terminal
>
> > On May 25, 2015, at 10:32, Samuel . <lista.freebsd.bra...@outlook.com>
> > wrote:
> >
> >
> >
> >
> >
> >
> >
> >
> >
> > Att,
> > Samuel .
> >
> >> From: rbga...@gmail.com
> >> Date: Mon, 25 May 2015 10:15:36 -0300
> >> To: freebsd@fug.com.br
> >> Subject: Re: [FUG-BR] [OFF] Jabber terminal
> >>
> >>> On May 25, 2015, at 08:26, Samuel . <lista.freebsd.bra...@outlook.com>
> >>> wrote:
> >>>
> >>>
> >>>
> >>>
> >>>> From: rbga...@gmail.com
> >>>> Date: Mon, 25 May 2015 07:16:13 -0300
> >>>> To: freebsd@fug.com.br
> >>>> Subject: Re: [FUG-BR] [OFF] Jabber terminal
> >>>>
> >>>>> On May 24, 2015, at 15:31, Samuel . <lista.freebsd.bra...@outlook.com>
> >>>>> wrote:
> >>>>>
> >>>>> Pessoal,
> >>>>> alguém aqui usa jabber pra monitoramento? Qual pacote estão usando?
> >>>>>
> >>>>> Tentei usar o sendxmpp no Linux e funcionou numa boa.
> >>>>> Tentei rodar o sendxmpp no FreeBSD 10.1 STABLE mas tá dando um maldito
> >>>>> erro de SSL.
> >>>>> root@fsbd:~ # echo "teste" | sendxmpp -t
> >>>>> usuario@servidor.jabber.comInvalid or unreadable path specified for
> >>>>> ssl_ca_path. at /usr/local/lib/perl5/site_perl/XML/Stream.pm line 640.
> >>>>>
> >>>>> Entre a linha 630 e 640 tem o seguinte código:
> >>>>> 630 # Set ssl_params for newconnection ssl or tls is set 631 if
> >>>>> ( 1 == $self->{SIDS}->{newconnection}->{ssl} 632 || 1 ==
> >>>>> $self->{SIDS}->{newconnection}->{_tls} ) 633 { 634 my
> >>>>> %ssl_params = ( 635 SSL_verify_mode =>
> >>>>> $self->{SIDS}->{newconnection}->{ssl_verify}, 636 ); 637 638
> >>>>> if ( 0x00 != $self->{SIDS}->{newconnection}->{ssl_verify} ) 639
> >>>>> { 640 die ("Invalid or unreadable path specified for
> >>>>> ssl_ca_path.")
> >>>>>
> >>>>>
> >>>>>
> >>>>> Primeiro instalei via pkg, como não tive sucesso, desinstalei e
> >>>>> instalei via ports, mesma mer@#$%%.
> >>>>>
> >>>>> Se algum puder me ajudar, meu muito obrigado antecipado..
> >>>>
> >>>> Olhando por cima o bug me parece estar no pacote p5-XML-Stream. Antes de
> >>>> qualquer outra coisa. Algum diretório setado como ca_path não existe no
> >>>> seu sistema.
> >>>>
> >>>> O sendxmpp deve ter alguma opção de debug e/ou verbose. Tente habilitar
> >>>> essa opção e ele deverá imprimir no STDERR o path passado no parâmetro
> >>>> ca_path, aí vai dar pra entender melhor o que tá acontecendo.
> >>>>
> >>>> Eu acredio que ele deva buscar o caminho do ca_path em /etc/ssl enquanto
> >>>> o default do pacote ca-root-nss é instalar apenas em /usr/local/etc/ssl.
> >>>> Se for isso vc pode mudar no config do sendxmpp pra buscar no lugar
> >>>> correto ou instalar o ca_root_nss via ports com a opção pra criar o link
> >>>> em /etc.
> >>>>
> >>>> []s
> >>>> --
> >>>> Renato Botelho
> >>>>
> >>>> -------------------------
> >>>> Histórico: http://www.fug.com.br/historico/html/freebsd/
> >>>> Sair da lista: https://www.fug.com.br/mailman/listinfo/freebsd
> >>>
> >>>
> >>> Olá Renato! Obrigado por responder!
> >>> Rodei o mesmo comando com a opção debug, acho que não retornou algo que
> >>> possa ajudar.
> >>> root@fbsd:~ # echo "teste" | sendxmpp -d -t
> >>> usuario@server-jabber.comsendxmpp: config: 'username' =>
> >>> 'zabbix'sendxmpp: config: 'jserver' => 'XXXXXXXXXXXXXX'Use of
> >>> uninitialized value $val in concatenation (.) or string at
> >>> /usr/local/bin/sendxmpp line 192.sendxmpp: config: 'component' =>
> >>> ''sendxmpp: config: 'password' => 'XXXXXXXXXXXXX'sendxmpp: config: 'port'
> >>> => '0'XML::Stream: new: hostname = (XXXX)XML::Stream: SetCallBacks:
> >>> tag(node) func(CODE(0x801caa5a0))Att,
> >>> Samuel .XMPP::Conn: xmppCallbackInit: startXMPP::Conn: SetCallBacks:
> >>> tag(message) func(CODE(0x801caa258))XMPP::Conn: SetCallBacks:
> >>> tag(presence) func(CODE(0x80504d9f0))XMPP::Conn: SetCallBacks: tag(iq)
> >>> func(CODE(0x801caa450))XMPP::Conn: SetPresenceCallBacks: type(subscribed)
> >>> func(CODE(0x801caa0a8))XMPP::Conn: SetPresenceCallBacks:
> >>> type(unsubscribed) func(CODE(0x805059c60))XMPP::Conn:
> >>> SetPresenceCallBacks: type(unsubscribe)
> >>> func(CODE(0x804b75de0))XMPP::Conn: SetPresenceCallBacks: type(subscribe)
> >>> func(CODE(0x805059348))XMPP::Conn: SetDirectXPathCallBacks:
> >>> xpath(/[@xmlns="urn:ietf:params:xml:ns:xmpp-tls"])
> >>> func(CODE(0x801c9bfa8))XMPP::Conn: SetDirectXPathCallBacks:
> >>> xpath(/[@xmlns="urn:ietf:params:xml:ns:xmpp-sasl"])
> >>> func(CODE(0x80504deb8))XMPP::Conn: xmppCallbackInit: stopsendxmpp:
> >>> ssl_verify: 1sendxmpp: tls_ca_path: XMPP::Conn: Connect:
> >>> host(XXXXXXXXXXXX:5222) namespace(jabber:client)XMPP::Conn: Connect:
> >>> timeout(10)XML::Stream: Connect: type(tcpip)Invalid or unreadable path
> >>> specified for ssl_ca_path. at
> >>> /usr/local/lib/perl5/site_perl/XML/Stream.pm line 640.root@fbsd:~ #
> >>>
> >>> Pelo Linux só foi "apt-get install sendxmpp" e "echo "teste" | sendxmpp
> >>> -t usua...@server-jabber.com" e pimba! Funcionou...
> >>
> >> Se o port está com um problema, nós, enquanto comunidade, podemos ajudar a
> >> corrigi-lo e assim todos se beneficiam.
> >>
> >> Vi que o parâmetro tls_ca_path está em branco. Faz o seguinte:
> >>
> >> # pkg install ca_root_nss
> >> # Adiciona o parâmetro ‘-a /usr/local/etc/ssl’ na chamada do sendxmpp
> >>
> >> Mantém o parâmetro de debug pra ajudar a entender o que tá acontecendo e
> >> depois cola a saída no www.pastebin.com ao invés de mandar por email.
> >> Chegou tudo quebrado aqui e fica difícil a leitura.
> >>
> >> --
> >> Renato Botelho
> >>
> >> -------------------------
> >> Histórico: http://www.fug.com.br/historico/html/freebsd/
> >> Sair da lista: https://www.fug.com.br/mailman/listinfo/freebsd
> >
> >
> > Olá Renato!
> > Pelo visto um problema foi corrigido. Agora apareceu outro.. (risos..).
> > Segue o código:
> > http://pastebin.com/gpNGJr8Z
> >
> > Eu fiz uma promessa pra Deus se Ele me ajudar a fazer esse sendxmpp
> > funcionar no Free.. (risos..)
>
> Você vai aceitar a ajuda do pessoal aqui da lista também ou só intervenção
> divina mesmo? :P
>
> IO::Socket::SSL v0.81 or greater is required. at
> /usr/local/lib/perl5/site_perl/XML/Stream/Node.pm line 552.
>
> Essa linha mostra que o módulo XML-Stream está fazendo confusão na hora de
> verificar a versão do IO::Socket::SSL. Já que a versão atual 2.012 é maior
> que 0.81 ele deveria aceitar.
>
> Confere aí se o pacote p5-IO-Socket-SSL está instalado no seu sistema e qual
> a versão dele.
>
> --
> Renato Botelho
>
> -------------------------
> Histórico: http://www.fug.com.br/historico/html/freebsd/
> Sair da lista: https://www.fug.com.br/mailman/listinfo/freebsd
Tem instalado a p5-IO-Socket-SSL-2.012.
Rodei o comando e deu erro diferente agora...
http://pastebin.com/VaZX3HXb
-------------------------
Histórico: http://www.fug.com.br/historico/html/freebsd/
Sair da lista: https://www.fug.com.br/mailman/listinfo/freebsd