Обсуждение статьи про SendXMPP

Проблемы с установкой, настройкой и работой системных и сетевых программ.

Модераторы: GRooVE, alexco

Правила форума
Убедительная просьба юзать теги [code] при оформлении листингов.
Сообщения не оформленные должным образом имеют все шансы быть незамеченными.
sergicus
ефрейтор
Сообщения: 68
Зарегистрирован: 2009-07-13 10:36:18

Re: Обсуждение статьи про SendXMPP

Непрочитанное сообщение sergicus » 2011-02-25 17:24:04

Помогите разобратся где у меня ошибка , sendxmpp настроивал по этой статье с чтением обсуждения.



а то вот какие у меня ошибки , эксперементировал пока не кончилась фантазия, в интернете ничего про мою ошибку нет

Код: Выделить всё

[root@nagiosserver /usr/home/serge]# echo "tekst" | sendxmpp -d -s "test" my_jabber_jid@gmail.com -f /usr/local/etc/nagios/sendxmpprc
sendxmpp: config: 'password' => 'my_password'
sendxmpp: config: 'jserver' => 'talk.google.com'
sendxmpp: config: 'port' => '5223'
sendxmpp: config: 'username' => 'jid_otpravl'
XML::Stream: new: hostname = (nagiosserver.local)
XML::Stream: SetCallBacks: tag(node) func(CODE(0x8690f9c))
XMPP::Conn: xmppCallbackInit: start
XMPP::Conn: SetCallBacks: tag(message) func(CODE(0x8690e64))
XMPP::Conn: SetCallBacks: tag(presence) func(CODE(0x8690fe4))
XMPP::Conn: SetCallBacks: tag(iq) func(CODE(0x8690eac))
XMPP::Conn: SetPresenceCallBacks: type(subscribe) func(CODE(0x8691110))
XMPP::Conn: SetPresenceCallBacks: type(subscribed) func(CODE(0x869138c))
XMPP::Conn: SetPresenceCallBacks: type(unsubscribe) func(CODE(0x869132c))
XMPP::Conn: SetPresenceCallBacks: type(unsubscribed) func(CODE(0x8691140))
XMPP::Conn: SetDirectXPathCallBacks: xpath(/[@xmlns="urn:ietf:params:xml:ns:xmpp-tls"]) func(CODE(0x8691200))
XMPP::Conn: SetDirectXPathCallBacks: xpath(/[@xmlns="urn:ietf:params:xml:ns:xmpp-sasl"]) func(CODE(0x86914a0))
XMPP::Conn: xmppCallbackInit: stop
XMPP::Conn: Connect: host(talk.google.com:5223) namespace(jabber:client)
XMPP::Conn: Connect: timeout(10)
XML::Stream: Connect: type(tcpip)
XML::Stream: Connect: Got a connection
XML::Stream: Send: (<?xml version='1.0'?><stream:stream version='1.0' xmlns:stream='http://etherx.jabber.org/streams' xmlns='jabber:client' to='talk.google.com' from='nagiosserver.local' xml:lang='en' >)
XML::Stream: Read: buff()
XML::Stream: Read: ERROR
Use of uninitialized value in string eq at /usr/local/bin/sendxmpp line 368.
Error 'Connect': [HASH(0x86baf70)]
XML::Stream: SetCallBacks: tag(node) func(CODE(0x86bf1cc))
XMPP::Conn: Disconnect: bye bye
sendxmpp: Disconnect

если я правлю строку (по совету CaBa здесь http://forum.lissyara.su/viewtopic.php? ... 73#p172773)


Вот содержимое файла /root/.sendxmpprc

Код: Выделить всё

jid_otpravl@talk.google.com:5223 my_password
если у меня в настройках указвн порт 5222 то ошибка эта

Код: Выделить всё

[root@nagiosserver /usr/home/serge]# echo "tekst" | sendxmpp -d -s "test" my_jabber_jid@gmail.com 
sendxmpp: config: 'password' => 'my_password'
sendxmpp: config: 'jserver' => 'talk.google.com'
sendxmpp: config: 'port' => '5222'
sendxmpp: config: 'username' => 'jid_otpravl'
XML::Stream: new: hostname = (nagiosserver.local)
XML::Stream: SetCallBacks: tag(node) func(CODE(0x8690f84))
XMPP::Conn: xmppCallbackInit: start
XMPP::Conn: SetCallBacks: tag(message) func(CODE(0x8690e4c))
XMPP::Conn: SetCallBacks: tag(presence) func(CODE(0x8690fcc))
XMPP::Conn: SetCallBacks: tag(iq) func(CODE(0x8690e94))
XMPP::Conn: SetPresenceCallBacks: type(subscribe) func(CODE(0x86910f8))
XMPP::Conn: SetPresenceCallBacks: type(subscribed) func(CODE(0x8691224))
XMPP::Conn: SetPresenceCallBacks: type(unsubscribe) func(CODE(0x86911c4))
XMPP::Conn: SetPresenceCallBacks: type(unsubscribed) func(CODE(0x86912b4))
XMPP::Conn: SetDirectXPathCallBacks: xpath(/[@xmlns="urn:ietf:params:xml:ns:xmpp-tls"]) func(CODE(0x8691374))
XMPP::Conn: SetDirectXPathCallBacks: xpath(/[@xmlns="urn:ietf:params:xml:ns:xmpp-sasl"]) func(CODE(0x86914a0))
XMPP::Conn: xmppCallbackInit: stop
XMPP::Conn: Connect: host(talk.google.com:5222) namespace(jabber:client)
XMPP::Conn: Connect: timeout(10)
XML::Stream: Connect: type(tcpip)
XML::Stream: Connect: Convert normal socket to SSL
XML::Stream: Connect: sock(IO::Socket::INET=GLOB(0x8691710))
XML::Stream: LoadSSL: Load the IO::Socket::SSL module
XML::Stream: LoadSSL: Success
Use of uninitialized value in concatenation (.) or string at /usr/local/lib/perl5/site_perl/5.8.9/XML/Stream.pm line 763.
XML::Stream: Connect: ssl_sock()
Use of uninitialized value in string eq at /usr/local/bin/sendxmpp line 368.
Error 'Connect': [HASH(0x8691698)]
XML::Stream: SetCallBacks: tag(node) func(CODE(0x869704c))
XMPP::Conn: Disconnect: bye bye
sendxmpp: Disconnect
[root@nagiosserver /usr/home/serge]# 

если порт 5223

Код: Выделить всё

[root@nagiosserver /usr/home/serge]# echo "tekst" | sendxmpp -d -s "test" my_jabber_jid@gmail.com 
sendxmpp: config: 'password' => 'my_password'
sendxmpp: config: 'jserver' => 'talk.google.com'
sendxmpp: config: 'port' => '5223'
sendxmpp: config: 'username' => 'jid_otpravl'
XML::Stream: new: hostname = (nagiosserver.local)
XML::Stream: SetCallBacks: tag(node) func(CODE(0x8690f84))
XMPP::Conn: xmppCallbackInit: start
XMPP::Conn: SetCallBacks: tag(message) func(CODE(0x8690e4c))
XMPP::Conn: SetCallBacks: tag(presence) func(CODE(0x8690fcc))
XMPP::Conn: SetCallBacks: tag(iq) func(CODE(0x8690e94))
XMPP::Conn: SetPresenceCallBacks: type(subscribe) func(CODE(0x86910f8))
XMPP::Conn: SetPresenceCallBacks: type(subscribed) func(CODE(0x8691224))
XMPP::Conn: SetPresenceCallBacks: type(unsubscribe) func(CODE(0x86911c4))
XMPP::Conn: SetPresenceCallBacks: type(unsubscribed) func(CODE(0x86912b4))
XMPP::Conn: SetDirectXPathCallBacks: xpath(/[@xmlns="urn:ietf:params:xml:ns:xmpp-tls"]) func(CODE(0x8691374))
XMPP::Conn: SetDirectXPathCallBacks: xpath(/[@xmlns="urn:ietf:params:xml:ns:xmpp-sasl"]) func(CODE(0x86914a0))
XMPP::Conn: xmppCallbackInit: stop
XMPP::Conn: Connect: host(talk.google.com:5223) namespace(jabber:client)
XMPP::Conn: Connect: timeout(10)
XML::Stream: Connect: type(tcpip)
XML::Stream: Connect: Convert normal socket to SSL
XML::Stream: Connect: sock(IO::Socket::INET=GLOB(0x8691710))
XML::Stream: LoadSSL: Load the IO::Socket::SSL module
XML::Stream: LoadSSL: Success
XML::Stream: Connect: ssl_sock(IO::Socket::SSL=GLOB(0x8691710))
XML::Stream: Connect: SSL: We are secure
XML::Stream: Connect: Got a connection
XML::Stream: Send: (<?xml version='1.0'?><stream:stream version='1.0' xmlns:stream='http://etherx.jabber.org/streams' xmlns='jabber:client' to='talk.google.com' from='nagiosserver.local' xml:lang='en' >)
XML::Stream: Read: buff(<stream:stream from="talk.google.com" id="0ABB525B3C4C9A70" version="1.0" xmlns:stream="http://etherx.jabber.org/streams" xmlns="jabber:client">)
XML::Stream: _handle_root: sid(newconnection) sax(XML::Stream::Parser=HASH(0x8743248)) tag(stream:stream) att( xmlns jabber:client xmlns:stream http://etherx.jabber.org/streams version 1.0 from talk.google.com id 0ABB525B3C4C9A70 )
XML::Stream: Read: buff(<stream:features><mechanisms xmlns="urn:ietf:params:xml:ns:xmpp-sasl"><mechanism>PLAIN</mechanism><mechanism>X-GOOGLE-TOKEN</mechanism></mechanisms></stream:features>)
XML::Stream: Node: _handle_element: sid(0ABB525B3C4C9A70) sax(XML::Stream::Parser=HASH(0x8743248)) tag(stream:features) att( )
XML::Stream: Node: _handle_element: check( -1 )
XML::Stream: Node: _handle_element: sid(0ABB525B3C4C9A70) sax(XML::Stream::Parser=HASH(0x8743248)) tag(mechanisms) att( xmlns urn:ietf:params:xml:ns:xmpp-sasl )
XML::Stream: Node: _handle_element: check( 0 )
XML::Stream: Node: _handle_element: sid(0ABB525B3C4C9A70) sax(XML::Stream::Parser=HASH(0x8743248)) tag(mechanism) att( )
XML::Stream: Node: _handle_element: check( 1 )
XML::Stream: Node: _handle_cdata: sid(0ABB525B3C4C9A70) sax(XML::Stream::Parser=HASH(0x8743248)) cdata(PLAIN)
XML::Stream: Node: _handle_cdata: sax(XML::Stream::Parser=HASH(0x8743248)) cdata(PLAIN)
XML::Stream: Node: _handle_close: sid(0ABB525B3C4C9A70) sax(XML::Stream::Parser=HASH(0x8743248)) tag(mechanism)
XML::Stream: Node: _handle_close: check( 2 )
XML::Stream: Node: _handle_close: check2( 1 )
XML::Stream: Node: _handle_element: sid(0ABB525B3C4C9A70) sax(XML::Stream::Parser=HASH(0x8743248)) tag(mechanism) att( )
XML::Stream: Node: _handle_element: check( 1 )
XML::Stream: Node: _handle_cdata: sid(0ABB525B3C4C9A70) sax(XML::Stream::Parser=HASH(0x8743248)) cdata(X-GOOGLE-TOKEN)
XML::Stream: Node: _handle_cdata: sax(XML::Stream::Parser=HASH(0x8743248)) cdata(X-GOOGLE-TOKEN)
XML::Stream: Node: _handle_close: sid(0ABB525B3C4C9A70) sax(XML::Stream::Parser=HASH(0x8743248)) tag(mechanism)
XML::Stream: Node: _handle_close: check( 2 )
XML::Stream: Node: _handle_close: check2( 1 )
XML::Stream: Node: _handle_close: sid(0ABB525B3C4C9A70) sax(XML::Stream::Parser=HASH(0x8743248)) tag(mechanisms)
XML::Stream: Node: _handle_close: check( 1 )
XML::Stream: Node: _handle_close: check2( 0 )
XML::Stream: Node: _handle_close: sid(0ABB525B3C4C9A70) sax(XML::Stream::Parser=HASH(0x8743248)) tag(stream:features)
XML::Stream: Node: _handle_close: check( 0 )
XML::Stream: Node: _handle_close: check2( -1 )
XML::Stream: Process: block(1)
XML::Stream: Read: buff(<stream:error><host-unknown xmlns="urn:ietf:params:xml:ns:xmpp-streams"/><str:text xmlns:str="urn:ietf:params:xml:ns:xmpp-streams">Set the 'to' attribute of stream element to the domain part of the user's JID. Example: to='gmail.com'.</str:text></stream:error>)
XML::Stream: Node: _handle_element: sid(0ABB525B3C4C9A70) sax(XML::Stream::Parser=HASH(0x8743248)) tag(stream:error) att( )
XML::Stream: Node: _handle_element: check( -1 )
XML::Stream: Node: _handle_element: sid(0ABB525B3C4C9A70) sax(XML::Stream::Parser=HASH(0x8743248)) tag(host-unknown) att( xmlns urn:ietf:params:xml:ns:xmpp-streams )
XML::Stream: Node: _handle_element: check( 0 )
XML::Stream: Node: _handle_close: sid(0ABB525B3C4C9A70) sax(XML::Stream::Parser=HASH(0x8743248)) tag(host-unknown)
XML::Stream: Node: _handle_close: check( 1 )
XML::Stream: Node: _handle_close: check2( 0 )
XML::Stream: Node: _handle_element: sid(0ABB525B3C4C9A70) sax(XML::Stream::Parser=HASH(0x8743248)) tag(str:text) att( xmlns:str urn:ietf:params:xml:ns:xmpp-streams )
XML::Stream: Node: _handle_element: check( 0 )
XML::Stream: Node: _handle_cdata: sid(0ABB525B3C4C9A70) sax(XML::Stream::Parser=HASH(0x8743248)) cdata(Set the 'to' attribute of stream element to the domain part of the user's JID. Example: to='gmail.com'.)
XML::Stream: Node: _handle_cdata: sax(XML::Stream::Parser=HASH(0x8743248)) cdata(Set the 'to' attribute of stream element to the domain part of the user's JID. Example: to='gmail.com'.)
XML::Stream: Node: _handle_close: sid(0ABB525B3C4C9A70) sax(XML::Stream::Parser=HASH(0x8743248)) tag(str:text)
XML::Stream: Node: _handle_close: check( 1 )
XML::Stream: Node: _handle_close: check2( 0 )
XML::Stream: Node: _handle_close: sid(0ABB525B3C4C9A70) sax(XML::Stream::Parser=HASH(0x8743248)) tag(stream:error)
XML::Stream: Node: _handle_close: check( 0 )
XML::Stream: Node: _handle_close: check2( -1 )
XML::Stream: Process: block(0)
XMPP::Conn: Connect: connection made
XML::Stream: SetCallBacks: tag(node) func(CODE(0x86915e4))
sendxmpp: Connect: 1
XMPP::Conn: AuthIQAuth: old school auth
XMPP::Conn: SendAndReceiveWithID: object(Net::XMPP::IQ=HASH(0x879dcb8))
XMPP::Conn: SendWithID: id(netjabber-0)
XMPP::Conn: SendWithID: in(<iq type='get'><query xmlns='jabber:iq:auth'><username>jid_otpravl</username></query></iq>)
XMPP::Conn: RegisterID: tag(iq) id(netjabber-0)
XMPP::Conn: SendWithID: out(<iq id='netjabber-0' type='get'><query xmlns='jabber:iq:auth'><username>jid_otpravl</username></query></iq>)
XMPP::Conn: SendXML: sent(<iq id='netjabber-0' type='get'><query xmlns='jabber:iq:auth'><username>jid_otpravl</username></query></iq>)
XML::Stream: Send: (<iq id='netjabber-0' type='get'><query xmlns='jabber:iq:auth'><username>jid_otpravl</username></query></iq>)
XMPP::Conn: SendAndReceiveWithID: sent with id(netjabber-0)
XMPP::Conn: WaitForID: id(netjabber-0)
XMPP::Conn: ReceivedID: id(netjabber-0)
XMPP::Conn: ReceivedID: nope...
XMPP::Conn: WaitForID: haven't gotten it yet... let's wait for more packets
XMPP::Conn: Process: timeout(1)
XML::Stream: Read: buff(</stream:stream>)
XML::Stream: Node: _handle_close: sid(0ABB525B3C4C9A70) sax(XML::Stream::Parser=HASH(0x8743248)) tag(stream:stream)
XML::Stream: Node: _handle_close: check( -1 )
XML::Stream: Node: _handle_close: rootTag(stream:stream) tag(stream:stream)
XML::Stream: Process: block(0)
Use of uninitialized value in string eq at /usr/local/bin/sendxmpp line 368.
Error 'AuthSend': [?]
XML::Stream: Send: (</stream:stream>)
XML::Stream: SetCallBacks: tag(node) func(CODE(0x8743194))
XMPP::Conn: Disconnect: bye bye
sendxmpp: Disconnect
[root@nagiosserver /usr/home/serge]# 

с опцией -t тоже пробовал

Код: Выделить всё

echo "tekst" | sendxmpp -t -d -s "test" my_jabber_jid@gmail.com 
не помогло - совершенно аналогичная ошибка




во все это время это время строки в файле /usr/local/lib/perl5/site_perl/5.8.9//Net/XMPP/Protocol.pm закоментированы

Код: Выделить всё

1807  #   if($self->{STREAM}->GetStreamFeature($self->GetStreamID(),"xmpp-sasl"))
1808  #   {
1809   #      return $self->AuthSASL(%args);
1810    # }

если те строки расскоментировать вот такая ошибка

Код: Выделить всё

[root@nagiosserver /usr/home/serge]# echo "tekst" | sendxmpp -t -d -s "test" my_jabber_jid@gmail.com 
sendxmpp: config: 'password' => 'my_password'
sendxmpp: config: 'jserver' => 'talk.google.com'
sendxmpp: config: 'port' => '5223'
sendxmpp: config: 'username' => 'jid_otpravl'
XML::Stream: new: hostname = (nagiosserver.local)
XML::Stream: SetCallBacks: tag(node) func(CODE(0x8690ffc))
XMPP::Conn: xmppCallbackInit: start
XMPP::Conn: SetCallBacks: tag(message) func(CODE(0x8690ec4))
XMPP::Conn: SetCallBacks: tag(presence) func(CODE(0x8691044))
XMPP::Conn: SetCallBacks: tag(iq) func(CODE(0x8690f0c))
XMPP::Conn: SetPresenceCallBacks: type(subscribe) func(CODE(0x8691170))
XMPP::Conn: SetPresenceCallBacks: type(subscribed) func(CODE(0x86913f8))
XMPP::Conn: SetPresenceCallBacks: type(unsubscribe) func(CODE(0x8691398))
XMPP::Conn: SetPresenceCallBacks: type(unsubscribed) func(CODE(0x86911ac))
XMPP::Conn: SetDirectXPathCallBacks: xpath(/[@xmlns="urn:ietf:params:xml:ns:xmpp-tls"]) func(CODE(0x869126c))
XMPP::Conn: SetDirectXPathCallBacks: xpath(/[@xmlns="urn:ietf:params:xml:ns:xmpp-sasl"]) func(CODE(0x869150c))
XMPP::Conn: xmppCallbackInit: stop
XMPP::Conn: Connect: host(talk.google.com:5223) namespace(jabber:client)
XMPP::Conn: Connect: timeout(10)
XML::Stream: Connect: type(tcpip)
XML::Stream: Connect: Convert normal socket to SSL
XML::Stream: Connect: sock(IO::Socket::INET=GLOB(0x869177c))
XML::Stream: LoadSSL: Load the IO::Socket::SSL module
XML::Stream: LoadSSL: Success
XML::Stream: Connect: ssl_sock(IO::Socket::SSL=GLOB(0x869177c))
XML::Stream: Connect: SSL: We are secure
XML::Stream: Connect: Got a connection
XML::Stream: Send: (<?xml version='1.0'?><stream:stream version='1.0' xmlns:stream='http://etherx.jabber.org/streams' xmlns='jabber:client' to='talk.google.com' from='nagiosserver.local' xml:lang='en' >)
XML::Stream: Read: buff(<stream:stream from="talk.google.com" id="CE32C8B04203506F" version="1.0" xmlns:stream="http://etherx.jabber.org/streams" xmlns="jabber:client">)
XML::Stream: _handle_root: sid(newconnection) sax(XML::Stream::Parser=HASH(0x87432b4)) tag(stream:stream) att( xmlns jabber:client xmlns:stream http://etherx.jabber.org/streams version 1.0 from talk.google.com id CE32C8B04203506F )
XML::Stream: Read: buff(<stream:features><mechanisms xmlns="urn:ietf:params:xml:ns:xmpp-sasl"><mechanism>PLAIN</mechanism><mechanism>X-GOOGLE-TOKEN</mechanism></mechanisms></stream:features>)
XML::Stream: Node: _handle_element: sid(CE32C8B04203506F) sax(XML::Stream::Parser=HASH(0x87432b4)) tag(stream:features) att( )
XML::Stream: Node: _handle_element: check( -1 )
XML::Stream: Node: _handle_element: sid(CE32C8B04203506F) sax(XML::Stream::Parser=HASH(0x87432b4)) tag(mechanisms) att( xmlns urn:ietf:params:xml:ns:xmpp-sasl )
XML::Stream: Node: _handle_element: check( 0 )
XML::Stream: Node: _handle_element: sid(CE32C8B04203506F) sax(XML::Stream::Parser=HASH(0x87432b4)) tag(mechanism) att( )
XML::Stream: Node: _handle_element: check( 1 )
XML::Stream: Node: _handle_cdata: sid(CE32C8B04203506F) sax(XML::Stream::Parser=HASH(0x87432b4)) cdata(PLAIN)
XML::Stream: Node: _handle_cdata: sax(XML::Stream::Parser=HASH(0x87432b4)) cdata(PLAIN)
XML::Stream: Node: _handle_close: sid(CE32C8B04203506F) sax(XML::Stream::Parser=HASH(0x87432b4)) tag(mechanism)
XML::Stream: Node: _handle_close: check( 2 )
XML::Stream: Node: _handle_close: check2( 1 )
XML::Stream: Node: _handle_element: sid(CE32C8B04203506F) sax(XML::Stream::Parser=HASH(0x87432b4)) tag(mechanism) att( )
XML::Stream: Node: _handle_element: check( 1 )
XML::Stream: Node: _handle_cdata: sid(CE32C8B04203506F) sax(XML::Stream::Parser=HASH(0x87432b4)) cdata(X-GOOGLE-TOKEN)
XML::Stream: Node: _handle_cdata: sax(XML::Stream::Parser=HASH(0x87432b4)) cdata(X-GOOGLE-TOKEN)
XML::Stream: Node: _handle_close: sid(CE32C8B04203506F) sax(XML::Stream::Parser=HASH(0x87432b4)) tag(mechanism)
XML::Stream: Node: _handle_close: check( 2 )
XML::Stream: Node: _handle_close: check2( 1 )
XML::Stream: Node: _handle_close: sid(CE32C8B04203506F) sax(XML::Stream::Parser=HASH(0x87432b4)) tag(mechanisms)
XML::Stream: Node: _handle_close: check( 1 )
XML::Stream: Node: _handle_close: check2( 0 )
XML::Stream: Node: _handle_close: sid(CE32C8B04203506F) sax(XML::Stream::Parser=HASH(0x87432b4)) tag(stream:features)
XML::Stream: Node: _handle_close: check( 0 )
XML::Stream: Node: _handle_close: check2( -1 )
XML::Stream: Process: block(1)
XML::Stream: Read: buff(<stream:error><host-unknown xmlns="urn:ietf:params:xml:ns:xmpp-streams"/><str:text xmlns:str="urn:ietf:params:xml:ns:xmpp-streams">Set the 'to' attribute of stream element to the domain part of the user's JID. Example: to='gmail.com'.</str:text></stream:error>)
XML::Stream: Node: _handle_element: sid(CE32C8B04203506F) sax(XML::Stream::Parser=HASH(0x87432b4)) tag(stream:error) att( )
XML::Stream: Node: _handle_element: check( -1 )
XML::Stream: Node: _handle_element: sid(CE32C8B04203506F) sax(XML::Stream::Parser=HASH(0x87432b4)) tag(host-unknown) att( xmlns urn:ietf:params:xml:ns:xmpp-streams )
XML::Stream: Node: _handle_element: check( 0 )
XML::Stream: Node: _handle_close: sid(CE32C8B04203506F) sax(XML::Stream::Parser=HASH(0x87432b4)) tag(host-unknown)
XML::Stream: Node: _handle_close: check( 1 )
XML::Stream: Node: _handle_close: check2( 0 )
XML::Stream: Node: _handle_element: sid(CE32C8B04203506F) sax(XML::Stream::Parser=HASH(0x87432b4)) tag(str:text) att( xmlns:str urn:ietf:params:xml:ns:xmpp-streams )
XML::Stream: Node: _handle_element: check( 0 )
XML::Stream: Node: _handle_cdata: sid(CE32C8B04203506F) sax(XML::Stream::Parser=HASH(0x87432b4)) cdata(Set the 'to' attribute of stream element to the domain part of the user's JID. Example: to='gmail.com'.)
XML::Stream: Node: _handle_cdata: sax(XML::Stream::Parser=HASH(0x87432b4)) cdata(Set the 'to' attribute of stream element to the domain part of the user's JID. Example: to='gmail.com'.)
XML::Stream: Node: _handle_close: sid(CE32C8B04203506F) sax(XML::Stream::Parser=HASH(0x87432b4)) tag(str:text)
XML::Stream: Node: _handle_close: check( 1 )
XML::Stream: Node: _handle_close: check2( 0 )
XML::Stream: Node: _handle_close: sid(CE32C8B04203506F) sax(XML::Stream::Parser=HASH(0x87432b4)) tag(stream:error)
XML::Stream: Node: _handle_close: check( 0 )
XML::Stream: Node: _handle_close: check2( -1 )
XML::Stream: Process: block(0)
XMPP::Conn: Connect: connection made
XML::Stream: SetCallBacks: tag(node) func(CODE(0x8691650))
sendxmpp: Connect: 1
XMPP::Conn: AuthSASL: shiney new auth
XML::Stream: Send: (<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>Zm1iY25hZ2lvc0B0YWxrLmdvb2dsZS5jb20AZm1iY25hZ2lvcwBkZXJzZXllcw==</auth>)
XMPP::Conn: AuthSASL: haven't authed yet... let's wait.
XMPP::Conn: Process: timeout(1)
XML::Stream: Read: buff(</stream:stream>)
XML::Stream: Node: _handle_close: sid(CE32C8B04203506F) sax(XML::Stream::Parser=HASH(0x87432b4)) tag(stream:stream)
XML::Stream: Node: _handle_close: check( -1 )
XML::Stream: Node: _handle_close: rootTag(stream:stream) tag(stream:stream)
XML::Stream: Process: block(0)
Use of uninitialized value in string eq at /usr/local/bin/sendxmpp line 368.
Error 'AuthSend': [?]
XML::Stream: Send: (</stream:stream>)
XML::Stream: SetCallBacks: tag(node) func(CODE(0x8743200))
XMPP::Conn: Disconnect: bye bye
sendxmpp: Disconnect


если я меняю в /root/.sendxmpprc строку так

то ошибка такая

Код: Выделить всё

[root@nagiosserver /usr/home/serge]# echo "tekst" | sendxmpp -t -d -s "test" my_jabber_jid@gmail.com 
sendxmpp: config: 'password' => 'my_password'
sendxmpp: config: 'jserver' => 'gmail.com'
sendxmpp: config: 'port' => '0'
sendxmpp: config: 'username' => 'jid_otpravl'
XML::Stream: new: hostname = (nagiosserver.local)
XML::Stream: SetCallBacks: tag(node) func(CODE(0x8690ffc))
XMPP::Conn: xmppCallbackInit: start
XMPP::Conn: SetCallBacks: tag(message) func(CODE(0x8690ec4))
XMPP::Conn: SetCallBacks: tag(presence) func(CODE(0x8691044))
XMPP::Conn: SetCallBacks: tag(iq) func(CODE(0x8690f0c))
XMPP::Conn: SetPresenceCallBacks: type(subscribe) func(CODE(0x8691170))
XMPP::Conn: SetPresenceCallBacks: type(subscribed) func(CODE(0x86913f8))
XMPP::Conn: SetPresenceCallBacks: type(unsubscribe) func(CODE(0x8691398))
XMPP::Conn: SetPresenceCallBacks: type(unsubscribed) func(CODE(0x86911ac))
XMPP::Conn: SetDirectXPathCallBacks: xpath(/[@xmlns="urn:ietf:params:xml:ns:xmpp-tls"]) func(CODE(0x869126c))
XMPP::Conn: SetDirectXPathCallBacks: xpath(/[@xmlns="urn:ietf:params:xml:ns:xmpp-sasl"]) func(CODE(0x869150c))
XMPP::Conn: xmppCallbackInit: stop
XMPP::Conn: Connect: host(gmail.com:5222) namespace(jabber:client)
XMPP::Conn: Connect: timeout(10)
XML::Stream: Connect: type(tcpip)
Use of uninitialized value in string eq at /usr/local/bin/sendxmpp line 368.
Error 'Connect': [HASH(0x8691710)]
XML::Stream: SetCallBacks: tag(node) func(CODE(0x8697870))
XMPP::Conn: Disconnect: bye bye
sendxmpp: Disconnect
[root@nagiosserver /usr/home/serge]# 

если я указываю порты - здесь указываю 5222

Код: Выделить всё

[root@nagiosserver /usr/home/serge]# echo "tekst" | sendxmpp -t -d -s "test" my_jabber_jid@gmail.com 
sendxmpp: config: 'password' => 'my_password'
sendxmpp: config: 'jserver' => 'gmail.com'
sendxmpp: config: 'port' => '5222'
sendxmpp: config: 'username' => 'jid_otpravl'
XML::Stream: new: hostname = (nagiosserver.local)
XML::Stream: SetCallBacks: tag(node) func(CODE(0x8690ffc))
XMPP::Conn: xmppCallbackInit: start
XMPP::Conn: SetCallBacks: tag(message) func(CODE(0x8690ec4))
XMPP::Conn: SetCallBacks: tag(presence) func(CODE(0x8691044))
XMPP::Conn: SetCallBacks: tag(iq) func(CODE(0x8690f0c))
XMPP::Conn: SetPresenceCallBacks: type(subscribe) func(CODE(0x8691170))
XMPP::Conn: SetPresenceCallBacks: type(subscribed) func(CODE(0x86913f8))
XMPP::Conn: SetPresenceCallBacks: type(unsubscribe) func(CODE(0x8691398))
XMPP::Conn: SetPresenceCallBacks: type(unsubscribed) func(CODE(0x86911ac))
XMPP::Conn: SetDirectXPathCallBacks: xpath(/[@xmlns="urn:ietf:params:xml:ns:xmpp-tls"]) func(CODE(0x869126c))
XMPP::Conn: SetDirectXPathCallBacks: xpath(/[@xmlns="urn:ietf:params:xml:ns:xmpp-sasl"]) func(CODE(0x869150c))
XMPP::Conn: xmppCallbackInit: stop
XMPP::Conn: Connect: host(gmail.com:5222) namespace(jabber:client)
XMPP::Conn: Connect: timeout(10)
XML::Stream: Connect: type(tcpip)
Use of uninitialized value in string eq at /usr/local/bin/sendxmpp line 368.
Error 'Connect': [HASH(0x8691710)]
XML::Stream: SetCallBacks: tag(node) func(CODE(0x8697870))
XMPP::Conn: Disconnect: bye bye
sendxmpp: Disconnect
[root@nagiosserver /usr/home/serge]# 
а здесь указываю порт 5223

Код: Выделить всё

[root@nagiosserver /usr/home/serge]# echo "tekst" | sendxmpp -t -d -s "test" my_jabber_jid@gmail.com 
sendxmpp: config: 'password' => 'my_password'
sendxmpp: config: 'jserver' => 'gmail.com'
sendxmpp: config: 'port' => '5223'
sendxmpp: config: 'username' => 'jid_otpravl'
XML::Stream: new: hostname = (nagiosserver.local)
XML::Stream: SetCallBacks: tag(node) func(CODE(0x8690ffc))
XMPP::Conn: xmppCallbackInit: start
XMPP::Conn: SetCallBacks: tag(message) func(CODE(0x8690ec4))
XMPP::Conn: SetCallBacks: tag(presence) func(CODE(0x8691044))
XMPP::Conn: SetCallBacks: tag(iq) func(CODE(0x8690f0c))
XMPP::Conn: SetPresenceCallBacks: type(subscribe) func(CODE(0x8691170))
XMPP::Conn: SetPresenceCallBacks: type(subscribed) func(CODE(0x86913f8))
XMPP::Conn: SetPresenceCallBacks: type(unsubscribe) func(CODE(0x8691398))
XMPP::Conn: SetPresenceCallBacks: type(unsubscribed) func(CODE(0x86911ac))
XMPP::Conn: SetDirectXPathCallBacks: xpath(/[@xmlns="urn:ietf:params:xml:ns:xmpp-tls"]) func(CODE(0x869126c))
XMPP::Conn: SetDirectXPathCallBacks: xpath(/[@xmlns="urn:ietf:params:xml:ns:xmpp-sasl"]) func(CODE(0x869150c))
XMPP::Conn: xmppCallbackInit: stop
XMPP::Conn: Connect: host(gmail.com:5223) namespace(jabber:client)
XMPP::Conn: Connect: timeout(10)
XML::Stream: Connect: type(tcpip)
Use of uninitialized value in string eq at /usr/local/bin/sendxmpp line 368.
Error 'Connect': [HASH(0x8691710)]
XML::Stream: SetCallBacks: tag(node) func(CODE(0x8697870))
XMPP::Conn: Disconnect: bye bye
sendxmpp: Disconnect
[root@nagiosserver /usr/home/serge]# 


а вот вывод ошибок когда закоментировал только строку

Код: Выделить всё

1809       #  return $self->AuthSASL(%args);  
в файле /usr/local/lib/perl5/site_perl/5.8.9/Net/XMPP/Protocol.pm

Код: Выделить всё

[root@nagiosserver /usr/home/serge]# echo "tekst" | sendxmpp -t -d -s "test" my_jabber_jid@gmail.com 
sendxmpp: config: 'password' => 'my_password'
sendxmpp: config: 'jserver' => 'talk.google.com'
sendxmpp: config: 'port' => '5223'
sendxmpp: config: 'username' => 'jid_otpravl'
XML::Stream: new: hostname = (nagiosserver.local)
XML::Stream: SetCallBacks: tag(node) func(CODE(0x8690fe4))
XMPP::Conn: xmppCallbackInit: start
XMPP::Conn: SetCallBacks: tag(message) func(CODE(0x8690eac))
XMPP::Conn: SetCallBacks: tag(presence) func(CODE(0x869102c))
XMPP::Conn: SetCallBacks: tag(iq) func(CODE(0x8690ef4))
XMPP::Conn: SetPresenceCallBacks: type(subscribe) func(CODE(0x8691158))
XMPP::Conn: SetPresenceCallBacks: type(subscribed) func(CODE(0x86913e0))
XMPP::Conn: SetPresenceCallBacks: type(unsubscribe) func(CODE(0x8691380))
XMPP::Conn: SetPresenceCallBacks: type(unsubscribed) func(CODE(0x8691194))
XMPP::Conn: SetDirectXPathCallBacks: xpath(/[@xmlns="urn:ietf:params:xml:ns:xmpp-tls"]) func(CODE(0x8691254))
XMPP::Conn: SetDirectXPathCallBacks: xpath(/[@xmlns="urn:ietf:params:xml:ns:xmpp-sasl"]) func(CODE(0x86914f4))
XMPP::Conn: xmppCallbackInit: stop
XMPP::Conn: Connect: host(talk.google.com:5223) namespace(jabber:client)
XMPP::Conn: Connect: timeout(10)
XML::Stream: Connect: type(tcpip)
XML::Stream: Connect: Convert normal socket to SSL
XML::Stream: Connect: sock(IO::Socket::INET=GLOB(0x8691764))
XML::Stream: LoadSSL: Load the IO::Socket::SSL module
XML::Stream: LoadSSL: Success
XML::Stream: Connect: ssl_sock(IO::Socket::SSL=GLOB(0x8691764))
XML::Stream: Connect: SSL: We are secure
XML::Stream: Connect: Got a connection
XML::Stream: Send: (<?xml version='1.0'?><stream:stream version='1.0' xmlns:stream='http://etherx.jabber.org/streams' xmlns='jabber:client' to='talk.google.com' from='nagiosserver.local' xml:lang='en' >)
XML::Stream: Read: buff(<stream:stream from="talk.google.com" id="193D9AF6278842C4" version="1.0" xmlns:stream="http://etherx.jabber.org/streams" xmlns="jabber:client">)
XML::Stream: _handle_root: sid(newconnection) sax(XML::Stream::Parser=HASH(0x874329c)) tag(stream:stream) att( xmlns jabber:client xmlns:stream http://etherx.jabber.org/streams version 1.0 from talk.google.com id 193D9AF6278842C4 )
XML::Stream: Read: buff(<stream:features><mechanisms xmlns="urn:ietf:params:xml:ns:xmpp-sasl"><mechanism>PLAIN</mechanism><mechanism>X-GOOGLE-TOKEN</mechanism></mechanisms></stream:features>)
XML::Stream: Node: _handle_element: sid(193D9AF6278842C4) sax(XML::Stream::Parser=HASH(0x874329c)) tag(stream:features) att( )
XML::Stream: Node: _handle_element: check( -1 )
XML::Stream: Node: _handle_element: sid(193D9AF6278842C4) sax(XML::Stream::Parser=HASH(0x874329c)) tag(mechanisms) att( xmlns urn:ietf:params:xml:ns:xmpp-sasl )
XML::Stream: Node: _handle_element: check( 0 )
XML::Stream: Node: _handle_element: sid(193D9AF6278842C4) sax(XML::Stream::Parser=HASH(0x874329c)) tag(mechanism) att( )
XML::Stream: Node: _handle_element: check( 1 )
XML::Stream: Node: _handle_cdata: sid(193D9AF6278842C4) sax(XML::Stream::Parser=HASH(0x874329c)) cdata(PLAIN)
XML::Stream: Node: _handle_cdata: sax(XML::Stream::Parser=HASH(0x874329c)) cdata(PLAIN)
XML::Stream: Node: _handle_close: sid(193D9AF6278842C4) sax(XML::Stream::Parser=HASH(0x874329c)) tag(mechanism)
XML::Stream: Node: _handle_close: check( 2 )
XML::Stream: Node: _handle_close: check2( 1 )
XML::Stream: Node: _handle_element: sid(193D9AF6278842C4) sax(XML::Stream::Parser=HASH(0x874329c)) tag(mechanism) att( )
XML::Stream: Node: _handle_element: check( 1 )
XML::Stream: Node: _handle_cdata: sid(193D9AF6278842C4) sax(XML::Stream::Parser=HASH(0x874329c)) cdata(X-GOOGLE-TOKEN)
XML::Stream: Node: _handle_cdata: sax(XML::Stream::Parser=HASH(0x874329c)) cdata(X-GOOGLE-TOKEN)
XML::Stream: Node: _handle_close: sid(193D9AF6278842C4) sax(XML::Stream::Parser=HASH(0x874329c)) tag(mechanism)
XML::Stream: Node: _handle_close: check( 2 )
XML::Stream: Node: _handle_close: check2( 1 )
XML::Stream: Node: _handle_close: sid(193D9AF6278842C4) sax(XML::Stream::Parser=HASH(0x874329c)) tag(mechanisms)
XML::Stream: Node: _handle_close: check( 1 )
XML::Stream: Node: _handle_close: check2( 0 )
XML::Stream: Node: _handle_close: sid(193D9AF6278842C4) sax(XML::Stream::Parser=HASH(0x874329c)) tag(stream:features)
XML::Stream: Node: _handle_close: check( 0 )
XML::Stream: Node: _handle_close: check2( -1 )
XML::Stream: Process: block(1)
XML::Stream: Read: buff(<stream:error><host-unknown xmlns="urn:ietf:params:xml:ns:xmpp-streams"/><str:text xmlns:str="urn:ietf:params:xml:ns:xmpp-streams">Set the 'to' attribute of stream element to the domain part of the user's JID. Example: to='gmail.com'.</str:text></stream:error>)
XML::Stream: Node: _handle_element: sid(193D9AF6278842C4) sax(XML::Stream::Parser=HASH(0x874329c)) tag(stream:error) att( )
XML::Stream: Node: _handle_element: check( -1 )
XML::Stream: Node: _handle_element: sid(193D9AF6278842C4) sax(XML::Stream::Parser=HASH(0x874329c)) tag(host-unknown) att( xmlns urn:ietf:params:xml:ns:xmpp-streams )
XML::Stream: Node: _handle_element: check( 0 )
XML::Stream: Node: _handle_close: sid(193D9AF6278842C4) sax(XML::Stream::Parser=HASH(0x874329c)) tag(host-unknown)
XML::Stream: Node: _handle_close: check( 1 )
XML::Stream: Node: _handle_close: check2( 0 )
XML::Stream: Node: _handle_element: sid(193D9AF6278842C4) sax(XML::Stream::Parser=HASH(0x874329c)) tag(str:text) att( xmlns:str urn:ietf:params:xml:ns:xmpp-streams )
XML::Stream: Node: _handle_element: check( 0 )
XML::Stream: Node: _handle_cdata: sid(193D9AF6278842C4) sax(XML::Stream::Parser=HASH(0x874329c)) cdata(Set the 'to' attribute of stream element to the domain part of the user's JID. Example: to='gmail.com'.)
XML::Stream: Node: _handle_cdata: sax(XML::Stream::Parser=HASH(0x874329c)) cdata(Set the 'to' attribute of stream element to the domain part of the user's JID. Example: to='gmail.com'.)
XML::Stream: Node: _handle_close: sid(193D9AF6278842C4) sax(XML::Stream::Parser=HASH(0x874329c)) tag(str:text)
XML::Stream: Node: _handle_close: check( 1 )
XML::Stream: Node: _handle_close: check2( 0 )
XML::Stream: Node: _handle_close: sid(193D9AF6278842C4) sax(XML::Stream::Parser=HASH(0x874329c)) tag(stream:error)
XML::Stream: Node: _handle_close: check( 0 )
XML::Stream: Node: _handle_close: check2( -1 )
XML::Stream: Process: block(0)
XMPP::Conn: Connect: connection made
XML::Stream: SetCallBacks: tag(node) func(CODE(0x8691638))
sendxmpp: Connect: 1
XMPP::Conn: AuthIQAuth: old school auth
XMPP::Conn: SendAndReceiveWithID: object(Net::XMPP::IQ=HASH(0x879e50c))
XMPP::Conn: SendWithID: id(netjabber-0)
XMPP::Conn: SendWithID: in(<iq type='get'><query xmlns='jabber:iq:auth'><username>jid_otpravl</username></query></iq>)
XMPP::Conn: RegisterID: tag(iq) id(netjabber-0)
XMPP::Conn: SendWithID: out(<iq id='netjabber-0' type='get'><query xmlns='jabber:iq:auth'><username>jid_otpravl</username></query></iq>)
XMPP::Conn: SendXML: sent(<iq id='netjabber-0' type='get'><query xmlns='jabber:iq:auth'><username>jid_otpravl</username></query></iq>)
XML::Stream: Send: (<iq id='netjabber-0' type='get'><query xmlns='jabber:iq:auth'><username>jid_otpravl</username></query></iq>)
XMPP::Conn: SendAndReceiveWithID: sent with id(netjabber-0)
XMPP::Conn: WaitForID: id(netjabber-0)
XMPP::Conn: ReceivedID: id(netjabber-0)
XMPP::Conn: ReceivedID: nope...
XMPP::Conn: WaitForID: haven't gotten it yet... let's wait for more packets
XMPP::Conn: Process: timeout(1)
XML::Stream: Read: buff(</stream:stream>)
XML::Stream: Node: _handle_close: sid(193D9AF6278842C4) sax(XML::Stream::Parser=HASH(0x874329c)) tag(stream:stream)
XML::Stream: Node: _handle_close: check( -1 )
XML::Stream: Node: _handle_close: rootTag(stream:stream) tag(stream:stream)
XML::Stream: Process: block(0)
Use of uninitialized value in string eq at /usr/local/bin/sendxmpp line 368.
Error 'AuthSend': [?]
XML::Stream: Send: (</stream:stream>)
XML::Stream: SetCallBacks: tag(node) func(CODE(0x87431e8))
XMPP::Conn: Disconnect: bye bye
sendxmpp: Disconnect

а сейчас вывод к выше . т.е когда закоментирована одна строка в файле /usr/local/lib/perl5/site_perl/5.8.9/Net/XMPP/Protocol.pm и в файле .sendxmpprc логин и пароль задан так

Код: Выделить всё

[root@nagiosserver /usr/home/serge]# echo "tekst" | sendxmpp -t -d -s "test" my_jabber_jid@gmail.com 
sendxmpp: config: 'password' => 'my_password'
sendxmpp: config: 'jserver' => 'gmail.com'
sendxmpp: config: 'port' => '0'
sendxmpp: config: 'username' => 'jid_otpravl'
XML::Stream: new: hostname = (nagiosserver.local)
XML::Stream: SetCallBacks: tag(node) func(CODE(0x8690fe4))
XMPP::Conn: xmppCallbackInit: start
XMPP::Conn: SetCallBacks: tag(message) func(CODE(0x8690eac))
XMPP::Conn: SetCallBacks: tag(presence) func(CODE(0x869102c))
XMPP::Conn: SetCallBacks: tag(iq) func(CODE(0x8690ef4))
XMPP::Conn: SetPresenceCallBacks: type(subscribe) func(CODE(0x8691158))
XMPP::Conn: SetPresenceCallBacks: type(subscribed) func(CODE(0x86913e0))
XMPP::Conn: SetPresenceCallBacks: type(unsubscribe) func(CODE(0x8691380))
XMPP::Conn: SetPresenceCallBacks: type(unsubscribed) func(CODE(0x8691194))
XMPP::Conn: SetDirectXPathCallBacks: xpath(/[@xmlns="urn:ietf:params:xml:ns:xmpp-tls"]) func(CODE(0x8691254))
XMPP::Conn: SetDirectXPathCallBacks: xpath(/[@xmlns="urn:ietf:params:xml:ns:xmpp-sasl"]) func(CODE(0x86914f4))
XMPP::Conn: xmppCallbackInit: stop
XMPP::Conn: Connect: host(gmail.com:5222) namespace(jabber:client)
XMPP::Conn: Connect: timeout(10)
XML::Stream: Connect: type(tcpip)
Use of uninitialized value in string eq at /usr/local/bin/sendxmpp line 368.
Error 'Connect': [HASH(0x86916f8)]
XML::Stream: SetCallBacks: tag(node) func(CODE(0x8697858))
XMPP::Conn: Disconnect: bye bye
sendxmpp: Disconnect
[root@nagiosserver /usr/home/serge]# 

а здесь когда я добавил

Код: Выделить всё

 jid_otpravl@gmail.com:5223 my_password 

Код: Выделить всё

[root@nagiosserver /usr/home/serge]# echo "tekst" | sendxmpp -t -d -s "test" my_jabber_jid@gmail.com 
sendxmpp: config: 'password' => 'my_password'
sendxmpp: config: 'jserver' => 'gmail.com'
sendxmpp: config: 'port' => '5223'
sendxmpp: config: 'username' => 'jid_otpravl'
XML::Stream: new: hostname = (nagiosserver.local)
XML::Stream: SetCallBacks: tag(node) func(CODE(0x8690fe4))
XMPP::Conn: xmppCallbackInit: start
XMPP::Conn: SetCallBacks: tag(message) func(CODE(0x8690eac))
XMPP::Conn: SetCallBacks: tag(presence) func(CODE(0x869102c))
XMPP::Conn: SetCallBacks: tag(iq) func(CODE(0x8690ef4))
XMPP::Conn: SetPresenceCallBacks: type(subscribe) func(CODE(0x8691158))
XMPP::Conn: SetPresenceCallBacks: type(subscribed) func(CODE(0x86913e0))
XMPP::Conn: SetPresenceCallBacks: type(unsubscribe) func(CODE(0x8691380))
XMPP::Conn: SetPresenceCallBacks: type(unsubscribed) func(CODE(0x8691194))
XMPP::Conn: SetDirectXPathCallBacks: xpath(/[@xmlns="urn:ietf:params:xml:ns:xmpp-tls"]) func(CODE(0x8691254))
XMPP::Conn: SetDirectXPathCallBacks: xpath(/[@xmlns="urn:ietf:params:xml:ns:xmpp-sasl"]) func(CODE(0x86914f4))
XMPP::Conn: xmppCallbackInit: stop
XMPP::Conn: Connect: host(gmail.com:5223) namespace(jabber:client)
XMPP::Conn: Connect: timeout(10)
XML::Stream: Connect: type(tcpip)
Use of uninitialized value in string eq at /usr/local/bin/sendxmpp line 368.
Error 'Connect': [HASH(0x86916f8)]
XML::Stream: SetCallBacks: tag(node) func(CODE(0x8697858))
XMPP::Conn: Disconnect: bye bye
sendxmpp: Disconnect



пробовал и так завел сееб другую учетку от которой буду отправлять в джаббер

Код: Выделить всё

[root@nagiosserver /usr/home/serge]# echo test | sendxmpp -v -u jid_otpravl@jabber.ru -p my_password -j jabber.ru supotnitskiy@gmail.com
Use of uninitialized value in concatenation (.) or string at /usr/local/lib/perl5/site_perl/5.8.9/XML/Stream.pm line 763.
Use of uninitialized value in string eq at /usr/local/bin/sendxmpp line 368.
Error 'Connect': [HASH(0x86916bc)]
sendxmpp: Disconnect



вот строка 763 /usr/local/lib/perl5/site_perl/5.8.9/XML/Stream.pm

Код: Выделить всё

 763             $self->debug(1,"Connect: ssl_sock($self->{SIDS}->{newconnection}->{sock})");

а вот строка 368 в файле /usr/local/bin/sendxmpp

Код: Выделить всё

368     if ($res == 0) {

Т.е. везде ошибка в 368 строке файла /usr/local/bin/sendxmpp, что делать не знаю

Хостинговая компания Host-Food.ru
Хостинг HostFood.ru
 

Услуги хостинговой компании Host-Food.ru

Хостинг HostFood.ru

Тарифы на хостинг в России, от 12 рублей: https://www.host-food.ru/tariffs/hosting/
Тарифы на виртуальные сервера (VPS/VDS/KVM) в РФ, от 189 руб.: https://www.host-food.ru/tariffs/virtualny-server-vps/
Выделенные сервера, Россия, Москва, от 2000 рублей (HP Proliant G5, Intel Xeon E5430 (2.66GHz, Quad-Core, 12Mb), 8Gb RAM, 2x300Gb SAS HDD, P400i, 512Mb, BBU):
https://www.host-food.ru/tariffs/vydelennyi-server-ds/
Недорогие домены в популярных зонах: https://www.host-food.ru/domains/

Аватара пользователя
hizel
дядя поня
Сообщения: 9031
Зарегистрирован: 2007-06-29 10:05:02
Откуда: Выборг

Re: Обсуждение статьи про SendXMPP

Непрочитанное сообщение hizel » 2011-02-25 17:36:38

security/p5-Authen-SASL установлен?
В дурацкие игры он не играет. Он просто жуткий, чу-чу, паровозик, и зовут его Блейн. Блейн --- это Боль.

sergicus
ефрейтор
Сообщения: 68
Зарегистрирован: 2009-07-13 10:36:18

Re: Обсуждение статьи про SendXMPP

Непрочитанное сообщение sergicus » 2011-02-25 17:47:14

hizel писал(а):security/p5-Authen-SASL установлен?
да, и причем с поддержкой керберос (как в статье). Хотя при сборке то окошко не появлялось, я заходил в директорию /usr/ports/security/p5-Authen-SASL и смотрел make config - там поддержка включена

sergicus
ефрейтор
Сообщения: 68
Зарегистрирован: 2009-07-13 10:36:18

Re: Обсуждение статьи про SendXMPP

Непрочитанное сообщение sergicus » 2011-02-26 12:14:10

полностью переустановил sendxmpp и связанные с ним программы

Теперь такая ошибка

Код: Выделить всё

[root@nagiosserver /usr/home/serge]# printf  "%b" "***** Nagios Jabber Test **** " | /usr/local/bin/sendxmpp -t -d -s "Jabber Test Alert" my_jabber_jid@gmail.com
sendxmpp: config: 'password' => 'my_password'
sendxmpp: config: 'jserver' => 'jabber.ru'
sendxmpp: config: 'port' => '0'
sendxmpp: config: 'username' => 'jid_otpravl'
XML::Stream: new: hostname = (nagiosserver.local)
XML::Stream: SetCallBacks: tag(node) func(CODE(0x8690ffc))
XMPP::Conn: xmppCallbackInit: start
XMPP::Conn: SetCallBacks: tag(message) func(CODE(0x8690ec4))
XMPP::Conn: SetCallBacks: tag(presence) func(CODE(0x8691044))
XMPP::Conn: SetCallBacks: tag(iq) func(CODE(0x8690f0c))
XMPP::Conn: SetPresenceCallBacks: type(subscribe) func(CODE(0x8691170))
XMPP::Conn: SetPresenceCallBacks: type(subscribed) func(CODE(0x86913f8))
XMPP::Conn: SetPresenceCallBacks: type(unsubscribe) func(CODE(0x8691398))
XMPP::Conn: SetPresenceCallBacks: type(unsubscribed) func(CODE(0x86911ac))
XMPP::Conn: SetDirectXPathCallBacks: xpath(/[@xmlns="urn:ietf:params:xml:ns:xmpp-tls"]) func(CODE(0x869126c))
XMPP::Conn: SetDirectXPathCallBacks: xpath(/[@xmlns="urn:ietf:params:xml:ns:xmpp-sasl"]) func(CODE(0x869150c))
XMPP::Conn: xmppCallbackInit: stop
XMPP::Conn: Connect: host(jabber.ru:5222) namespace(jabber:client)
XMPP::Conn: Connect: timeout(10)
XML::Stream: Connect: type(tcpip)
XML::Stream: Connect: Got a connection
XML::Stream: Send: (<?xml version='1.0'?><stream:stream version='1.0' xmlns:stream='http://etherx.jabber.org/streams' xmlns='jabber:client' to='jabber.ru' from='nagiosserver.local' xml:lang='en' >)
XML::Stream: Read: buff(<?xml version='1.0'?><stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='3674216333' from='jabber.ru' version='1.0' xml:lang='ru'><stream:features><starttls xmlns='urn:ietf:params:xml:ns:xmpp-tls'/><compression xmlns='http://jabber.org/features/compress'><method>zlib</method></compression><mechanisms xmlns='urn:ietf:params:xml:ns:xmpp-sasl'><mechanism>PLAIN</mechanism><mechanism>DIGEST-MD5</mechanism></mechanisms><register xmlns='http://jabber.org/features/iq-register'/></stream:features>)
XML::Stream: _handle_root: sid(newconnection) sax(XML::Stream::Parser=HASH(0x8697b88)) tag(stream:stream) att( xmlns:stream http://etherx.jabber.org/streams xmlns jabber:client version 1.0 from jabber.ru id 3674216333 xml:lang ru )
XML::Stream: Node: _handle_element: sid(newconnection) sax(XML::Stream::Parser=HASH(0x8697b88)) tag(stream:features) att( )
XML::Stream: Node: _handle_element: check( -1 )
XML::Stream: Node: _handle_element: sid(newconnection) sax(XML::Stream::Parser=HASH(0x8697b88)) tag(starttls) att( xmlns urn:ietf:params:xml:ns:xmpp-tls )
XML::Stream: Node: _handle_element: check( 0 )
XML::Stream: Node: _handle_close: sid(newconnection) sax(XML::Stream::Parser=HASH(0x8697b88)) tag(starttls)
XML::Stream: Node: _handle_close: check( 1 )
XML::Stream: Node: _handle_close: check2( 0 )
XML::Stream: Node: _handle_element: sid(newconnection) sax(XML::Stream::Parser=HASH(0x8697b88)) tag(compression) att( xmlns http://jabber.org/features/compress )
XML::Stream: Node: _handle_element: check( 0 )
XML::Stream: Node: _handle_element: sid(newconnection) sax(XML::Stream::Parser=HASH(0x8697b88)) tag(method) att( )
XML::Stream: Node: _handle_element: check( 1 )
XML::Stream: Node: _handle_cdata: sid(newconnection) sax(XML::Stream::Parser=HASH(0x8697b88)) cdata(zlib)
XML::Stream: Node: _handle_cdata: sax(XML::Stream::Parser=HASH(0x8697b88)) cdata(zlib)
XML::Stream: Node: _handle_close: sid(newconnection) sax(XML::Stream::Parser=HASH(0x8697b88)) tag(method)
XML::Stream: Node: _handle_close: check( 2 )
XML::Stream: Node: _handle_close: check2( 1 )
XML::Stream: Node: _handle_close: sid(newconnection) sax(XML::Stream::Parser=HASH(0x8697b88)) tag(compression)
XML::Stream: Node: _handle_close: check( 1 )
XML::Stream: Node: _handle_close: check2( 0 )
XML::Stream: Node: _handle_element: sid(newconnection) sax(XML::Stream::Parser=HASH(0x8697b88)) tag(mechanisms) att( xmlns urn:ietf:params:xml:ns:xmpp-sasl )
XML::Stream: Node: _handle_element: check( 0 )
XML::Stream: Node: _handle_element: sid(newconnection) sax(XML::Stream::Parser=HASH(0x8697b88)) tag(mechanism) att( )
XML::Stream: Node: _handle_element: check( 1 )
XML::Stream: Node: _handle_cdata: sid(newconnection) sax(XML::Stream::Parser=HASH(0x8697b88)) cdata(PLAIN)
XML::Stream: Node: _handle_cdata: sax(XML::Stream::Parser=HASH(0x8697b88)) cdata(PLAIN)
XML::Stream: Node: _handle_close: sid(newconnection) sax(XML::Stream::Parser=HASH(0x8697b88)) tag(mechanism)
XML::Stream: Node: _handle_close: check( 2 )
XML::Stream: Node: _handle_close: check2( 1 )
XML::Stream: Node: _handle_element: sid(newconnection) sax(XML::Stream::Parser=HASH(0x8697b88)) tag(mechanism) att( )
XML::Stream: Node: _handle_element: check( 1 )
XML::Stream: Node: _handle_cdata: sid(newconnection) sax(XML::Stream::Parser=HASH(0x8697b88)) cdata(DIGEST-MD5)
XML::Stream: Node: _handle_cdata: sax(XML::Stream::Parser=HASH(0x8697b88)) cdata(DIGEST-MD5)
XML::Stream: Node: _handle_close: sid(newconnection) sax(XML::Stream::Parser=HASH(0x8697b88)) tag(mechanism)
XML::Stream: Node: _handle_close: check( 2 )
XML::Stream: Node: _handle_close: check2( 1 )
XML::Stream: Node: _handle_close: sid(newconnection) sax(XML::Stream::Parser=HASH(0x8697b88)) tag(mechanisms)
XML::Stream: Node: _handle_close: check( 1 )
XML::Stream: Node: _handle_close: check2( 0 )
XML::Stream: Node: _handle_element: sid(newconnection) sax(XML::Stream::Parser=HASH(0x8697b88)) tag(register) att( xmlns http://jabber.org/features/iq-register )
XML::Stream: Node: _handle_element: check( 0 )
XML::Stream: Node: _handle_close: sid(newconnection) sax(XML::Stream::Parser=HASH(0x8697b88)) tag(register)
XML::Stream: Node: _handle_close: check( 1 )
XML::Stream: Node: _handle_close: check2( 0 )
XML::Stream: Node: _handle_close: sid(newconnection) sax(XML::Stream::Parser=HASH(0x8697b88)) tag(stream:features)
XML::Stream: Node: _handle_close: check( 0 )
XML::Stream: Node: _handle_close: check2( -1 )
XMPP::Conn: Connect: connection made
XML::Stream: SetCallBacks: tag(node) func(CODE(0x8691650))
XML::Stream: Send: (<starttls xmlns='urn:ietf:params:xml:ns:xmpp-tls'/>)
XML::Stream: Read: buff(<proceed xmlns='urn:ietf:params:xml:ns:xmpp-tls'/>)
XML::Stream: Node: _handle_element: sid(3674216333) sax(XML::Stream::Parser=HASH(0x8697b88)) tag(proceed) att( xmlns urn:ietf:params:xml:ns:xmpp-tls )
XML::Stream: Node: _handle_element: check( -1 )
XML::Stream: Node: _handle_close: sid(3674216333) sax(XML::Stream::Parser=HASH(0x8697b88)) tag(proceed)
XML::Stream: Node: _handle_close: check( 0 )
XML::Stream: Node: _handle_close: check2( -1 )
XML::Stream: TLSClientProceed: Convert normal socket to SSL
XML::Stream: TLSClientProceed: sock(IO::Socket::INET=GLOB(0x869177c))
XML::Stream: LoadSSL: Load the IO::Socket::SSL module
XML::Stream: LoadSSL: Success
XML::Stream: TLSClientProceed: ssl_sock(IO::Socket::SSL=GLOB(0x869177c))
XML::Stream: TLSClientProceed: SSL: We are secure
XML::Stream: Process: block(0)
XML::Stream: Send: (<?xml version='1.0'?><stream:stream version='1.0' xmlns:stream='http://etherx.jabber.org/streams' xmlns='jabber:client' to='jabber.ru' from='nagiosserver.local' xml:lang='en' >)
XML::Stream: Read: buff(<?xml version='1.0'?><stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='893956657' from='jabber.ru' version='1.0' xml:lang='ru'>)
XML::Stream: _handle_root: sid(3674216333) sax(XML::Stream::Parser=HASH(0x86df488)) tag(stream:stream) att( xmlns:stream http://etherx.jabber.org/streams xmlns jabber:client version 1.0 from jabber.ru id 893956657 xml:lang ru )
XML::Stream: Read: buff(<stream:features><compression xmlns='http://jabber.org/features/compress'><method>zlib</method></compression><mechanisms xmlns='urn:ietf:params:xml:ns:xmpp-sasl'><mechanism>PLAIN</mechanism><mechanism>DIGEST-MD5</mechanism></mechanisms><register xmlns='http://jabber.org/features/iq-register'/></stream:features>)
XML::Stream: Node: _handle_element: sid(893956657) sax(XML::Stream::Parser=HASH(0x86df488)) tag(stream:features) att( )
XML::Stream: Node: _handle_element: check( -1 )
XML::Stream: Node: _handle_element: sid(893956657) sax(XML::Stream::Parser=HASH(0x86df488)) tag(compression) att( xmlns http://jabber.org/features/compress )
XML::Stream: Node: _handle_element: check( 0 )
XML::Stream: Node: _handle_element: sid(893956657) sax(XML::Stream::Parser=HASH(0x86df488)) tag(method) att( )
XML::Stream: Node: _handle_element: check( 1 )
XML::Stream: Node: _handle_cdata: sid(893956657) sax(XML::Stream::Parser=HASH(0x86df488)) cdata(zlib)
XML::Stream: Node: _handle_cdata: sax(XML::Stream::Parser=HASH(0x86df488)) cdata(zlib)
XML::Stream: Node: _handle_close: sid(893956657) sax(XML::Stream::Parser=HASH(0x86df488)) tag(method)
XML::Stream: Node: _handle_close: check( 2 )
XML::Stream: Node: _handle_close: check2( 1 )
XML::Stream: Node: _handle_close: sid(893956657) sax(XML::Stream::Parser=HASH(0x86df488)) tag(compression)
XML::Stream: Node: _handle_close: check( 1 )
XML::Stream: Node: _handle_close: check2( 0 )
XML::Stream: Node: _handle_element: sid(893956657) sax(XML::Stream::Parser=HASH(0x86df488)) tag(mechanisms) att( xmlns urn:ietf:params:xml:ns:xmpp-sasl )
XML::Stream: Node: _handle_element: check( 0 )
XML::Stream: Node: _handle_element: sid(893956657) sax(XML::Stream::Parser=HASH(0x86df488)) tag(mechanism) att( )
XML::Stream: Node: _handle_element: check( 1 )
XML::Stream: Node: _handle_cdata: sid(893956657) sax(XML::Stream::Parser=HASH(0x86df488)) cdata(PLAIN)
XML::Stream: Node: _handle_cdata: sax(XML::Stream::Parser=HASH(0x86df488)) cdata(PLAIN)
XML::Stream: Node: _handle_close: sid(893956657) sax(XML::Stream::Parser=HASH(0x86df488)) tag(mechanism)
XML::Stream: Node: _handle_close: check( 2 )
XML::Stream: Node: _handle_close: check2( 1 )
XML::Stream: Node: _handle_element: sid(893956657) sax(XML::Stream::Parser=HASH(0x86df488)) tag(mechanism) att( )
XML::Stream: Node: _handle_element: check( 1 )
XML::Stream: Node: _handle_cdata: sid(893956657) sax(XML::Stream::Parser=HASH(0x86df488)) cdata(DIGEST-MD5)
XML::Stream: Node: _handle_cdata: sax(XML::Stream::Parser=HASH(0x86df488)) cdata(DIGEST-MD5)
XML::Stream: Node: _handle_close: sid(893956657) sax(XML::Stream::Parser=HASH(0x86df488)) tag(mechanism)
XML::Stream: Node: _handle_close: check( 2 )
XML::Stream: Node: _handle_close: check2( 1 )
XML::Stream: Node: _handle_close: sid(893956657) sax(XML::Stream::Parser=HASH(0x86df488)) tag(mechanisms)
XML::Stream: Node: _handle_close: check( 1 )
XML::Stream: Node: _handle_close: check2( 0 )
XML::Stream: Node: _handle_element: sid(893956657) sax(XML::Stream::Parser=HASH(0x86df488)) tag(register) att( xmlns http://jabber.org/features/iq-register )
XML::Stream: Node: _handle_element: check( 0 )
XML::Stream: Node: _handle_close: sid(893956657) sax(XML::Stream::Parser=HASH(0x86df488)) tag(register)
XML::Stream: Node: _handle_close: check( 1 )
XML::Stream: Node: _handle_close: check2( 0 )
XML::Stream: Node: _handle_close: sid(893956657) sax(XML::Stream::Parser=HASH(0x86df488)) tag(stream:features)
XML::Stream: Node: _handle_close: check( 0 )
XML::Stream: Node: _handle_close: check2( -1 )
XML::Stream: Process: block(0)
sendxmpp: Connect: 1
XMPP::Conn: AuthSASL: shiney new auth
XML::Stream: Send: (<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='DIGEST-MD5'></auth>)
XMPP::Conn: AuthSASL: haven't authed yet... let's wait.
XMPP::Conn: Process: timeout(1)
XML::Stream: Read: buff(<challenge xmlns='urn:ietf:params:xml:ns:xmpp-sasl'>bm9uY2U9IjM2NTU4OTY1NjEiLHFvcD0iYXV0aCIsY2hhcnNldD11dGYtOCxhbGdvcml0aG09bWQ1LXNlc3M=</challenge>)
XML::Stream: Node: _handle_element: sid(893956657) sax(XML::Stream::Parser=HASH(0x86df488)) tag(challenge) att( xmlns urn:ietf:params:xml:ns:xmpp-sasl )
XML::Stream: Node: _handle_element: check( -1 )
XML::Stream: Node: _handle_cdata: sid(893956657) sax(XML::Stream::Parser=HASH(0x86df488)) cdata(bm9uY2U9IjM2NTU4OTY1NjEiLHFvcD0iYXV0aCIsY2hhcnNldD11dGYtOCxhbGdvcml0aG09bWQ1LXNlc3M=)
XML::Stream: Node: _handle_cdata: sax(XML::Stream::Parser=HASH(0x86df488)) cdata(bm9uY2U9IjM2NTU4OTY1NjEiLHFvcD0iYXV0aCIsY2hhcnNldD11dGYtOCxhbGdvcml0aG09bWQ1LXNlc3M=)
XML::Stream: Node: _handle_close: sid(893956657) sax(XML::Stream::Parser=HASH(0x86df488)) tag(challenge)
XML::Stream: Node: _handle_close: check( 0 )
XML::Stream: Node: _handle_close: check2( -1 )
XML::Stream: Send: (<response xmlns='urn:ietf:params:xml:ns:xmpp-sasl'>YXV0aHppZD0iZm1iY25hZ2lvc0BqYWJiZXIucnUiLGNoYXJzZXQ9dXRmLTgsY25vbmNlPSIwM2JiZGYyNzE5MDU3MmI2YzVmN2M2OGVkMjZlYzE2OCIsZGlnZXN0LXVyaT0ieG1wcC9qYWJiZXIucnUiLG5jPTAwMDAwMDAxLG5vbmNlPSIzNjU1ODk2NTYxIixxb3A9YXV0aCxyZXNwb25zZT02ZDdlOTQ4ZmY2OTcxNGMxMmRkYjBjMjg5ZDc2Yzc0ZCx1c2VybmFtZT0iZm1iY25hZ2lvcyI=</response>)
XML::Stream: Process: block(0)
XMPP::Conn: AuthSASL: haven't authed yet... let's wait.
XMPP::Conn: Process: timeout(1)
XML::Stream: Read: buff(<challenge xmlns='urn:ietf:params:xml:ns:xmpp-sasl'>cnNwYXV0aD01MzE4YWZhYmNiMGQ2NWQwZjlhNTJlOTk1Njc2MTIzYQ==</challenge>)
XML::Stream: Node: _handle_element: sid(893956657) sax(XML::Stream::Parser=HASH(0x86df488)) tag(challenge) att( xmlns urn:ietf:params:xml:ns:xmpp-sasl )
XML::Stream: Node: _handle_element: check( -1 )
XML::Stream: Node: _handle_cdata: sid(893956657) sax(XML::Stream::Parser=HASH(0x86df488)) cdata(cnNwYXV0aD01MzE4YWZhYmNiMGQ2NWQwZjlhNTJlOTk1Njc2MTIzYQ==)
XML::Stream: Node: _handle_cdata: sax(XML::Stream::Parser=HASH(0x86df488)) cdata(cnNwYXV0aD01MzE4YWZhYmNiMGQ2NWQwZjlhNTJlOTk1Njc2MTIzYQ==)
XML::Stream: Node: _handle_close: sid(893956657) sax(XML::Stream::Parser=HASH(0x86df488)) tag(challenge)
XML::Stream: Node: _handle_close: check( 0 )
XML::Stream: Node: _handle_close: check2( -1 )
XML::Stream: Send: (<response xmlns='urn:ietf:params:xml:ns:xmpp-sasl'></response>)
XML::Stream: Process: block(0)
XMPP::Conn: AuthSASL: haven't authed yet... let's wait.
XMPP::Conn: Process: timeout(1)
XML::Stream: Read: buff(<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>)
XML::Stream: Node: _handle_element: sid(893956657) sax(XML::Stream::Parser=HASH(0x86df488)) tag(success) att( xmlns urn:ietf:params:xml:ns:xmpp-sasl )
XML::Stream: Node: _handle_element: check( -1 )
XML::Stream: Node: _handle_close: sid(893956657) sax(XML::Stream::Parser=HASH(0x86df488)) tag(success)
XML::Stream: Node: _handle_close: check( 0 )
XML::Stream: Node: _handle_close: check2( -1 )
XML::Stream: Process: block(0)
XMPP::Conn: AuthSASL: We authed!
XML::Stream: Send: (<?xml version='1.0'?><stream:stream version='1.0' xmlns:stream='http://etherx.jabber.org/streams' xmlns='jabber:client' to='jabber.ru' from='nagiosserver.local' xml:lang='en' >)
XML::Stream: Read: buff(<?xml version='1.0'?><stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='2426955796' from='jabber.ru' version='1.0' xml:lang='ru'>)
XML::Stream: _handle_root: sid(893956657) sax(XML::Stream::Parser=HASH(0x8812c34)) tag(stream:stream) att( xmlns:stream http://etherx.jabber.org/streams xmlns jabber:client version 1.0 from jabber.ru id 2426955796 xml:lang ru )
XML::Stream: Read: buff(<stream:features><bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'/><session xmlns='urn:ietf:params:xml:ns:xmpp-session'/></stream:features>)
XML::Stream: Node: _handle_element: sid(2426955796) sax(XML::Stream::Parser=HASH(0x8812c34)) tag(stream:features) att( )
XML::Stream: Node: _handle_element: check( -1 )
XML::Stream: Node: _handle_element: sid(2426955796) sax(XML::Stream::Parser=HASH(0x8812c34)) tag(bind) att( xmlns urn:ietf:params:xml:ns:xmpp-bind )
XML::Stream: Node: _handle_element: check( 0 )
XML::Stream: Node: _handle_close: sid(2426955796) sax(XML::Stream::Parser=HASH(0x8812c34)) tag(bind)
XML::Stream: Node: _handle_close: check( 1 )
XML::Stream: Node: _handle_close: check2( 0 )
XML::Stream: Node: _handle_element: sid(2426955796) sax(XML::Stream::Parser=HASH(0x8812c34)) tag(session) att( xmlns urn:ietf:params:xml:ns:xmpp-session )
XML::Stream: Node: _handle_element: check( 0 )
XML::Stream: Node: _handle_close: sid(2426955796) sax(XML::Stream::Parser=HASH(0x8812c34)) tag(session)
XML::Stream: Node: _handle_close: check( 1 )
XML::Stream: Node: _handle_close: check2( 0 )
XML::Stream: Node: _handle_close: sid(2426955796) sax(XML::Stream::Parser=HASH(0x8812c34)) tag(stream:features)
XML::Stream: Node: _handle_close: check( 0 )
XML::Stream: Node: _handle_close: check2( -1 )
XML::Stream: Process: block(0)
XMPP::Conn: AuthSASL: We got a new session. sid(2426955796)
XMPP::Conn: AuthSASL: Binding to resource
XMPP::Conn: BindResource: Binding to resource
XMPP::Conn: BindResource: resource(sendxmpp)
XMPP::Conn: SendAndReceiveWithID: object(Net::XMPP::IQ=HASH(0x86f20dc))
XMPP::Conn: SendWithID: id(netjabber-0)
XMPP::Conn: SendWithID: in(<iq type='set'><bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'><resource>sendxmpp</resource></bind></iq>)
XMPP::Conn: RegisterID: tag(iq) id(netjabber-0)
XMPP::Conn: SendWithID: out(<iq id='netjabber-0' type='set'><bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'><resource>sendxmpp</resource></bind></iq>)
XMPP::Conn: SendXML: sent(<iq id='netjabber-0' type='set'><bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'><resource>sendxmpp</resource></bind></iq>)
XML::Stream: Send: (<iq id='netjabber-0' type='set'><bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'><resource>sendxmpp</resource></bind></iq>)
XMPP::Conn: SendAndReceiveWithID: sent with id(netjabber-0)
XMPP::Conn: WaitForID: id(netjabber-0)
XMPP::Conn: ReceivedID: id(netjabber-0)
XMPP::Conn: ReceivedID: nope...
XMPP::Conn: WaitForID: haven't gotten it yet... let's wait for more packets
XMPP::Conn: Process: timeout(1)
XML::Stream: Read: buff(<iq id='netjabber-0' type='result'><bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'><jid>jid_otpravl@jabber.ru/sendxmpp</jid></bind></iq>)
XML::Stream: Node: _handle_element: sid(2426955796) sax(XML::Stream::Parser=HASH(0x8812c34)) tag(iq) att( type result id netjabber-0 )
XML::Stream: Node: _handle_element: check( -1 )
XML::Stream: Node: _handle_element: sid(2426955796) sax(XML::Stream::Parser=HASH(0x8812c34)) tag(bind) att( xmlns urn:ietf:params:xml:ns:xmpp-bind )
XML::Stream: Node: _handle_element: check( 0 )
XML::Stream: Node: _handle_element: sid(2426955796) sax(XML::Stream::Parser=HASH(0x8812c34)) tag(jid) att( )
XML::Stream: Node: _handle_element: check( 1 )
XML::Stream: Node: _handle_cdata: sid(2426955796) sax(XML::Stream::Parser=HASH(0x8812c34)) cdata(jid_otpravl@jabber.ru/sendxmpp)
XML::Stream: Node: _handle_cdata: sax(XML::Stream::Parser=HASH(0x8812c34)) cdata(jid_otpravl@jabber.ru/sendxmpp)
XML::Stream: Node: _handle_close: sid(2426955796) sax(XML::Stream::Parser=HASH(0x8812c34)) tag(jid)
XML::Stream: Node: _handle_close: check( 2 )
XML::Stream: Node: _handle_close: check2( 1 )
XML::Stream: Node: _handle_close: sid(2426955796) sax(XML::Stream::Parser=HASH(0x8812c34)) tag(bind)
XML::Stream: Node: _handle_close: check( 1 )
XML::Stream: Node: _handle_close: check2( 0 )
XML::Stream: Node: _handle_close: sid(2426955796) sax(XML::Stream::Parser=HASH(0x8812c34)) tag(iq)
XML::Stream: Node: _handle_close: check( 0 )
XML::Stream: Node: _handle_close: check2( -1 )
XMPP::Conn: CallBack: sid(2426955796) received(<iq id='netjabber-0' type='result'><bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'><jid>jid_otpravl@jabber.ru/sendxmpp</jid></bind></iq>)
XMPP::Conn: CallBack: tag(iq)
XMPP::Conn: CallBack: id(netjabber-0)
XMPP::Conn: CallBack: we either want it or were waiting for it.
XMPP::Conn: CallBack: check directxpath
XMPP::Conn: CallBack: check directxpath(/[@xmlns="urn:ietf:params:xml:ns:xmpp-sasl"])
XMPP::Conn: CallBack: check directxpath(/[@xmlns="urn:ietf:params:xml:ns:xmpp-tls"])
XMPP::Conn: BuildObject: tag(iq) package(Net::XMPP::IQ)
XMPP::Conn: CheckID: tag(iq) id(netjabber-0)
XMPP::Conn: CheckID: we have that here somewhere...
XMPP::Conn: CallBack: found registry entry: tag(iq) id(netjabber-0)
XMPP::Conn: DeregisterID: tag(iq) id(netjabber-0)
XMPP::Conn: CallBack: they still want it... we still got it...
XMPP::Conn: GotID: id(netjabber-0) xml(<iq id='netjabber-0' type='result'><bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'><jid>jid_otpravl@jabber.ru/sendxmpp</jid></bind></iq>)
XML::Stream: Process: block(0)
XMPP::Conn: ReceivedID: id(netjabber-0)
XMPP::Conn: ReceivedID: id(netjabber-0)
XMPP::Conn: WaitForID: we got it!
XMPP::Conn: GetID: id(netjabber-0)
XMPP::Conn: ReceivedID: id(netjabber-0)
XMPP::Conn: CleanID: id(netjabber-0)
XMPP::Conn: AuthSASL: Starting session
XMPP::Conn: SendAndReceiveWithID: object(Net::XMPP::IQ=HASH(0x881cc48))
XMPP::Conn: SendWithID: id(netjabber-1)
XMPP::Conn: SendWithID: in(<iq type='set'><session xmlns='urn:ietf:params:xml:ns:xmpp-session'/></iq>)
XMPP::Conn: RegisterID: tag(iq) id(netjabber-1)
XMPP::Conn: SendWithID: out(<iq id='netjabber-1' type='set'><session xmlns='urn:ietf:params:xml:ns:xmpp-session'/></iq>)
XMPP::Conn: SendXML: sent(<iq id='netjabber-1' type='set'><session xmlns='urn:ietf:params:xml:ns:xmpp-session'/></iq>)
XML::Stream: Send: (<iq id='netjabber-1' type='set'><session xmlns='urn:ietf:params:xml:ns:xmpp-session'/></iq>)
XMPP::Conn: SendAndReceiveWithID: sent with id(netjabber-1)
XMPP::Conn: WaitForID: id(netjabber-1)
XMPP::Conn: ReceivedID: id(netjabber-1)
XMPP::Conn: ReceivedID: nope...
XMPP::Conn: WaitForID: haven't gotten it yet... let's wait for more packets
XMPP::Conn: Process: timeout(1)
XML::Stream: Read: buff(<iq type='result' id='netjabber-1'><session xmlns='urn:ietf:params:xml:ns:xmpp-session'/></iq>)
XML::Stream: Node: _handle_element: sid(2426955796) sax(XML::Stream::Parser=HASH(0x8812c34)) tag(iq) att( id netjabber-1 type result )
XML::Stream: Node: _handle_element: check( -1 )
XML::Stream: Node: _handle_element: sid(2426955796) sax(XML::Stream::Parser=HASH(0x8812c34)) tag(session) att( xmlns urn:ietf:params:xml:ns:xmpp-session )
XML::Stream: Node: _handle_element: check( 0 )
XML::Stream: Node: _handle_close: sid(2426955796) sax(XML::Stream::Parser=HASH(0x8812c34)) tag(session)
XML::Stream: Node: _handle_close: check( 1 )
XML::Stream: Node: _handle_close: check2( 0 )
XML::Stream: Node: _handle_close: sid(2426955796) sax(XML::Stream::Parser=HASH(0x8812c34)) tag(iq)
XML::Stream: Node: _handle_close: check( 0 )
XML::Stream: Node: _handle_close: check2( -1 )
XMPP::Conn: CallBack: sid(2426955796) received(<iq id='netjabber-1' type='result'><session xmlns='urn:ietf:params:xml:ns:xmpp-session'/></iq>)
XMPP::Conn: CallBack: tag(iq)
XMPP::Conn: CallBack: id(netjabber-1)
XMPP::Conn: CallBack: we either want it or were waiting for it.
XMPP::Conn: CallBack: check directxpath
XMPP::Conn: CallBack: check directxpath(/[@xmlns="urn:ietf:params:xml:ns:xmpp-sasl"])
XMPP::Conn: CallBack: check directxpath(/[@xmlns="urn:ietf:params:xml:ns:xmpp-tls"])
XMPP::Conn: BuildObject: tag(iq) package(Net::XMPP::IQ)
XMPP::Conn: CheckID: tag(iq) id(netjabber-1)
XMPP::Conn: CheckID: we have that here somewhere...
XMPP::Conn: CallBack: found registry entry: tag(iq) id(netjabber-1)
XMPP::Conn: DeregisterID: tag(iq) id(netjabber-1)
XMPP::Conn: CallBack: they still want it... we still got it...
XMPP::Conn: GotID: id(netjabber-1) xml(<iq id='netjabber-1' type='result'><session xmlns='urn:ietf:params:xml:ns:xmpp-session'/></iq>)
XML::Stream: Process: block(0)
XMPP::Conn: ReceivedID: id(netjabber-1)
XMPP::Conn: ReceivedID: id(netjabber-1)
XMPP::Conn: WaitForID: we got it!
XMPP::Conn: GetID: id(netjabber-1)
XMPP::Conn: ReceivedID: id(netjabber-1)
XMPP::Conn: CleanID: id(netjabber-1)
sendxmpp: AuthSend: ok
XMPP::Conn: SendXML: sent(<message to='my_jabber_jid@gmail.com'><body>***** Nagios Jabber Test **** </body><subject>Jabber Test Alert</subject></message>)
XML::Stream: Send: (<message to='my_jabber_jid@gmail.com'><body>***** Nagios Jabber Test **** </body><subject>Jabber Test Alert</subject></message>)
sendxmpp: MessageSend
XML::Stream: Send: (</stream:stream>)
XML::Stream: SetCallBacks: tag(node) func(CODE(0x86f2094))
XMPP::Conn: Disconnect: bye bye
sendxmpp: Disconnect
[root@nagiosserver /usr/home/serge]# 

без отладочной информации

Код: Выделить всё

[root@nagiosserver /usr/home/serge]# echo test | sendxmpp -v -u jid_otpravl@jabber.ru -p my_password -j jabber.ru my_jabber_jid@gmail.com
sendxmpp: Connect: 1
Error 'AuthSend': error: not-authorized[?]
sendxmpp: Disconnect



после комментипрования return $self->AuthSASL(%args); в /usr/local/lib/perl5/site_perl/5.8.9/Net/XMPP/Protocol.pm
ошибка немного сменилась

Код: Выделить всё

[root@nagiosserver /usr/home/serge]# echo test | sendxmpp -v -u jid_otpravl@jabber.ru -p my_password -j jabber.ru my_jabber_jid@gmail.com
sendxmpp: Connect: 1
Error 'AuthSend': 503: [?]
sendxmpp: Disconnect
а вот с отладочными данными

Код: Выделить всё

[root@nagiosserver /usr/home/serge]# echo test | sendxmpp -d -v -u jid_otpravl@jabber.ru -p my_password -j jabber.ru my_jabber_jid@gmail.com
XML::Stream: new: hostname = (nagiosserver.local)
XML::Stream: SetCallBacks: tag(node) func(CODE(0x8691050))
XMPP::Conn: xmppCallbackInit: start
XMPP::Conn: SetCallBacks: tag(message) func(CODE(0x8690ffc))
XMPP::Conn: SetCallBacks: tag(presence) func(CODE(0x8690ed0))
XMPP::Conn: SetCallBacks: tag(iq) func(CODE(0x8690f18))
XMPP::Conn: SetPresenceCallBacks: type(subscribe) func(CODE(0x8690f90))
XMPP::Conn: SetPresenceCallBacks: type(subscribed) func(CODE(0x86913a4))
XMPP::Conn: SetPresenceCallBacks: type(unsubscribe) func(CODE(0x8691344))
XMPP::Conn: SetPresenceCallBacks: type(unsubscribed) func(CODE(0x8691404))
XMPP::Conn: SetDirectXPathCallBacks: xpath(/[@xmlns="urn:ietf:params:xml:ns:xmpp-tls"]) func(CODE(0x8691218))
XMPP::Conn: SetDirectXPathCallBacks: xpath(/[@xmlns="urn:ietf:params:xml:ns:xmpp-sasl"]) func(CODE(0x86914c4))
XMPP::Conn: xmppCallbackInit: stop
XMPP::Conn: Connect: host(jabber.ru:5222) namespace(jabber:client)
XMPP::Conn: Connect: timeout(10)
XML::Stream: Connect: type(tcpip)
XML::Stream: Connect: Got a connection
XML::Stream: Send: (<?xml version='1.0'?><stream:stream version='1.0' xmlns:stream='http://etherx.jabber.org/streams' xmlns='jabber:client' to='jabber.ru' from='nagiosserver.local' xml:lang='en' >)
XML::Stream: Read: buff(<?xml version='1.0'?><stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='1726447603' from='jabber.ru' version='1.0' xml:lang='ru'><stream:features><starttls xmlns='urn:ietf:params:xml:ns:xmpp-tls'/><compression xmlns='http://jabber.org/features/compress'><method>zlib</method></compression><mechanisms xmlns='urn:ietf:params:xml:ns:xmpp-sasl'><mechanism>PLAIN</mechanism><mechanism>DIGEST-MD5</mechanism></mechanisms><register xmlns='http://jabber.org/features/iq-register'/></stream:features>)
XML::Stream: _handle_root: sid(newconnection) sax(XML::Stream::Parser=HASH(0x8697b40)) tag(stream:stream) att( xmlns:stream http://etherx.jabber.org/streams xmlns jabber:client version 1.0 from jabber.ru id 1726447603 xml:lang ru )
XML::Stream: Node: _handle_element: sid(newconnection) sax(XML::Stream::Parser=HASH(0x8697b40)) tag(stream:features) att( )
XML::Stream: Node: _handle_element: check( -1 )
XML::Stream: Node: _handle_element: sid(newconnection) sax(XML::Stream::Parser=HASH(0x8697b40)) tag(starttls) att( xmlns urn:ietf:params:xml:ns:xmpp-tls )
XML::Stream: Node: _handle_element: check( 0 )
XML::Stream: Node: _handle_close: sid(newconnection) sax(XML::Stream::Parser=HASH(0x8697b40)) tag(starttls)
XML::Stream: Node: _handle_close: check( 1 )
XML::Stream: Node: _handle_close: check2( 0 )
XML::Stream: Node: _handle_element: sid(newconnection) sax(XML::Stream::Parser=HASH(0x8697b40)) tag(compression) att( xmlns http://jabber.org/features/compress )
XML::Stream: Node: _handle_element: check( 0 )
XML::Stream: Node: _handle_element: sid(newconnection) sax(XML::Stream::Parser=HASH(0x8697b40)) tag(method) att( )
XML::Stream: Node: _handle_element: check( 1 )
XML::Stream: Node: _handle_cdata: sid(newconnection) sax(XML::Stream::Parser=HASH(0x8697b40)) cdata(zlib)
XML::Stream: Node: _handle_cdata: sax(XML::Stream::Parser=HASH(0x8697b40)) cdata(zlib)
XML::Stream: Node: _handle_close: sid(newconnection) sax(XML::Stream::Parser=HASH(0x8697b40)) tag(method)
XML::Stream: Node: _handle_close: check( 2 )
XML::Stream: Node: _handle_close: check2( 1 )
XML::Stream: Node: _handle_close: sid(newconnection) sax(XML::Stream::Parser=HASH(0x8697b40)) tag(compression)
XML::Stream: Node: _handle_close: check( 1 )
XML::Stream: Node: _handle_close: check2( 0 )
XML::Stream: Node: _handle_element: sid(newconnection) sax(XML::Stream::Parser=HASH(0x8697b40)) tag(mechanisms) att( xmlns urn:ietf:params:xml:ns:xmpp-sasl )
XML::Stream: Node: _handle_element: check( 0 )
XML::Stream: Node: _handle_element: sid(newconnection) sax(XML::Stream::Parser=HASH(0x8697b40)) tag(mechanism) att( )
XML::Stream: Node: _handle_element: check( 1 )
XML::Stream: Node: _handle_cdata: sid(newconnection) sax(XML::Stream::Parser=HASH(0x8697b40)) cdata(PLAIN)
XML::Stream: Node: _handle_cdata: sax(XML::Stream::Parser=HASH(0x8697b40)) cdata(PLAIN)
XML::Stream: Node: _handle_close: sid(newconnection) sax(XML::Stream::Parser=HASH(0x8697b40)) tag(mechanism)
XML::Stream: Node: _handle_close: check( 2 )
XML::Stream: Node: _handle_close: check2( 1 )
XML::Stream: Node: _handle_element: sid(newconnection) sax(XML::Stream::Parser=HASH(0x8697b40)) tag(mechanism) att( )
XML::Stream: Node: _handle_element: check( 1 )
XML::Stream: Node: _handle_cdata: sid(newconnection) sax(XML::Stream::Parser=HASH(0x8697b40)) cdata(DIGEST-MD5)
XML::Stream: Node: _handle_cdata: sax(XML::Stream::Parser=HASH(0x8697b40)) cdata(DIGEST-MD5)
XML::Stream: Node: _handle_close: sid(newconnection) sax(XML::Stream::Parser=HASH(0x8697b40)) tag(mechanism)
XML::Stream: Node: _handle_close: check( 2 )
XML::Stream: Node: _handle_close: check2( 1 )
XML::Stream: Node: _handle_close: sid(newconnection) sax(XML::Stream::Parser=HASH(0x8697b40)) tag(mechanisms)
XML::Stream: Node: _handle_close: check( 1 )
XML::Stream: Node: _handle_close: check2( 0 )
XML::Stream: Node: _handle_element: sid(newconnection) sax(XML::Stream::Parser=HASH(0x8697b40)) tag(register) att( xmlns http://jabber.org/features/iq-register )
XML::Stream: Node: _handle_element: check( 0 )
XML::Stream: Node: _handle_close: sid(newconnection) sax(XML::Stream::Parser=HASH(0x8697b40)) tag(register)
XML::Stream: Node: _handle_close: check( 1 )
XML::Stream: Node: _handle_close: check2( 0 )
XML::Stream: Node: _handle_close: sid(newconnection) sax(XML::Stream::Parser=HASH(0x8697b40)) tag(stream:features)
XML::Stream: Node: _handle_close: check( 0 )
XML::Stream: Node: _handle_close: check2( -1 )
XMPP::Conn: Connect: connection made
XML::Stream: SetCallBacks: tag(node) func(CODE(0x8691608))
sendxmpp: Connect: 1
XMPP::Conn: AuthIQAuth: old school auth
XMPP::Conn: SendAndReceiveWithID: object(Net::XMPP::IQ=HASH(0x86c00c8))
XMPP::Conn: SendWithID: id(netjabber-0)
XMPP::Conn: SendWithID: in(<iq type='get'><query xmlns='jabber:iq:auth'><username>jid_otpravl@jabber.ru</username></query></iq>)
XMPP::Conn: RegisterID: tag(iq) id(netjabber-0)
XMPP::Conn: SendWithID: out(<iq id='netjabber-0' type='get'><query xmlns='jabber:iq:auth'><username>jid_otpravl@jabber.ru</username></query></iq>)
XMPP::Conn: SendXML: sent(<iq id='netjabber-0' type='get'><query xmlns='jabber:iq:auth'><username>jid_otpravl@jabber.ru</username></query></iq>)
XML::Stream: Send: (<iq id='netjabber-0' type='get'><query xmlns='jabber:iq:auth'><username>jid_otpravl@jabber.ru</username></query></iq>)
XMPP::Conn: SendAndReceiveWithID: sent with id(netjabber-0)
XMPP::Conn: WaitForID: id(netjabber-0)
XMPP::Conn: ReceivedID: id(netjabber-0)
XMPP::Conn: ReceivedID: nope...
XMPP::Conn: WaitForID: haven't gotten it yet... let's wait for more packets
XMPP::Conn: Process: timeout(1)
XML::Stream: Read: buff(<iq from='jabber.ru' id='netjabber-0' type='error'><error code='503' type='cancel'><service-unavailable xmlns='urn:ietf:params:xml:ns:xmpp-stanzas'/></error></iq>)
XML::Stream: Node: _handle_element: sid(1726447603) sax(XML::Stream::Parser=HASH(0x8697b40)) tag(iq) att( from jabber.ru type error id netjabber-0 )
XML::Stream: Node: _handle_element: check( -1 )
XML::Stream: Node: _handle_element: sid(1726447603) sax(XML::Stream::Parser=HASH(0x8697b40)) tag(error) att( type cancel code 503 )
XML::Stream: Node: _handle_element: check( 0 )
XML::Stream: Node: _handle_element: sid(1726447603) sax(XML::Stream::Parser=HASH(0x8697b40)) tag(service-unavailable) att( xmlns urn:ietf:params:xml:ns:xmpp-stanzas )
XML::Stream: Node: _handle_element: check( 1 )
XML::Stream: Node: _handle_close: sid(1726447603) sax(XML::Stream::Parser=HASH(0x8697b40)) tag(service-unavailable)
XML::Stream: Node: _handle_close: check( 2 )
XML::Stream: Node: _handle_close: check2( 1 )
XML::Stream: Node: _handle_close: sid(1726447603) sax(XML::Stream::Parser=HASH(0x8697b40)) tag(error)
XML::Stream: Node: _handle_close: check( 1 )
XML::Stream: Node: _handle_close: check2( 0 )
XML::Stream: Node: _handle_close: sid(1726447603) sax(XML::Stream::Parser=HASH(0x8697b40)) tag(iq)
XML::Stream: Node: _handle_close: check( 0 )
XML::Stream: Node: _handle_close: check2( -1 )
XMPP::Conn: CallBack: sid(1726447603) received(<iq from='jabber.ru' id='netjabber-0' type='error'><error code='503' type='cancel'><service-unavailable xmlns='urn:ietf:params:xml:ns:xmpp-stanzas'/></error></iq>)
XMPP::Conn: CallBack: tag(iq)
XMPP::Conn: CallBack: id(netjabber-0)
XMPP::Conn: CallBack: we either want it or were waiting for it.
XMPP::Conn: CallBack: check directxpath
XMPP::Conn: CallBack: check directxpath(/[@xmlns="urn:ietf:params:xml:ns:xmpp-sasl"])
XMPP::Conn: CallBack: check directxpath(/[@xmlns="urn:ietf:params:xml:ns:xmpp-tls"])
XMPP::Conn: BuildObject: tag(iq) package(Net::XMPP::IQ)
XMPP::Conn: CheckID: tag(iq) id(netjabber-0)
XMPP::Conn: CheckID: we have that here somewhere...
XMPP::Conn: CallBack: found registry entry: tag(iq) id(netjabber-0)
XMPP::Conn: DeregisterID: tag(iq) id(netjabber-0)
XMPP::Conn: CallBack: they still want it... we still got it...
XMPP::Conn: GotID: id(netjabber-0) xml(<iq from='jabber.ru' id='netjabber-0' type='error'><error code='503' type='cancel'><service-unavailable xmlns='urn:ietf:params:xml:ns:xmpp-stanzas'/></error></iq>)
XML::Stream: Process: block(0)
XMPP::Conn: ReceivedID: id(netjabber-0)
XMPP::Conn: ReceivedID: id(netjabber-0)
XMPP::Conn: WaitForID: we got it!
XMPP::Conn: GetID: id(netjabber-0)
XMPP::Conn: ReceivedID: id(netjabber-0)
XMPP::Conn: CleanID: id(netjabber-0)
Error 'AuthSend': 503: [?]
XML::Stream: Send: (</stream:stream>)
XML::Stream: SetCallBacks: tag(node) func(CODE(0x8697ac8))
XMPP::Conn: Disconnect: bye bye
sendxmpp: Disconnect

я смотрел в инете , решения этой ошибки не нашел (вернее нашел как здесь - везде рекомендуется комментировать return $self->AuthSASL(%args); )

Аватара пользователя
Cancer
Гл. Кастратор
Сообщения: 1269
Зарегистрирован: 2008-03-25 12:21:36
Откуда: г. Ростов-на-Дону
Контактная информация:

Re: Обсуждение статьи про SendXMPP

Непрочитанное сообщение Cancer » 2011-02-28 20:58:48

У меня кстати тоже не работает с gmail.com и jabber.ru
Походу он не работает нормально с ejabberd.
А вот с OpenFire нормально работает!

sergicus
ефрейтор
Сообщения: 68
Зарегистрирован: 2009-07-13 10:36:18

Re: Обсуждение статьи про SendXMPP

Непрочитанное сообщение sergicus » 2011-02-28 21:51:13

Cancer писал(а):У меня кстати тоже не работает с gmail.com и jabber.ru
Походу он не работает нормально с ejabberd.
А вот с OpenFire нормально работает!
может посоветуйте на каком джаббер сайте завести аккаунт

Bayerische
капитан
Сообщения: 1820
Зарегистрирован: 2010-12-25 20:41:50
Откуда: Хлебная столица

Re: Обсуждение статьи про SendXMPP

Непрочитанное сообщение Bayerische » 2011-06-03 14:20:09

sergicus
Да их полно, выбирай любой... Я в последнее время забугорными пользуюсь. Что-то недоверяю отечественным сервисам, шпиономания появилась.

Cancer
Спасибо за статью, за 10 минут всё наладил! Теперь буду баловаться :)

Homer
проходил мимо
Сообщения: 8
Зарегистрирован: 2011-05-21 8:25:11

Re: Обсуждение статьи про SendXMPP

Непрочитанное сообщение Homer » 2011-06-19 11:30:04

У меня вот какая-ошибка при включении TLS.
#echo test |sendxmpp -t xxx@jabber.ru
Invalid or unreadable path specified for ssl_ca_path. at /usr/local/lib/perl5/site_perl/5.12.3/XML/Stream.pm line 753.

Без -t всё ходит.
Можно как-то подправить без изменения исходников?

Sniper60
проходил мимо
Сообщения: 4
Зарегистрирован: 2010-09-28 18:25:24

Re: Обсуждение статьи про SendXMPP

Непрочитанное сообщение Sniper60 » 2011-11-11 22:28:09

Код: Выделить всё

===>   p5-Net-XMPP-1.02.04 depends on file: /usr/local/bin/perl5.10.1 - found
===>  Configuring for p5-Net-XMPP-1.02.04
[b]Can't locate version/vpp.pm[/b] in @INC (@INC contains: /usr/local/lib/perl5/5.10.1/BSDPAN /usr/local/lib/perl5/site_perl/5.10.1/mach /usr/local/lib/perl5/site_perl/5.10.1 /usr/local/lib/perl5/5.10.1/mach /usr/local/lib/perl5/5.10.1 .) at (eval 14) line 2.
BEGIN failed--compilation aborted at (eval 14) line 2.
Compilation failed in require at /usr/local/lib/perl5/site_perl/5.10.1/Module/Metadata.pm line 19.
BEGIN failed--compilation aborted at /usr/local/lib/perl5/site_perl/5.10.1/Module/Metadata.pm line 19.
Compilation failed in require at /usr/local/lib/perl5/site_perl/5.10.1/Module/Build/ModuleInfo.pm line 10.
Compilation failed in require at /usr/local/lib/perl5/site_perl/5.10.1/Module/Build/Base.pm line 23.
BEGIN failed--compilation aborted at /usr/local/lib/perl5/site_perl/5.10.1/Module/Build/Base.pm line 23.
Compilation failed in require at /usr/local/lib/perl5/site_perl/5.10.1/Module/Build.pm line 15.
BEGIN failed--compilation aborted at /usr/local/lib/perl5/site_perl/5.10.1/Module/Build.pm line 15.
Compilation failed in require at /usr/local/lib/perl5/site_perl/5.10.1/Module/Build/Compat.pm line 11.
BEGIN failed--compilation aborted at /usr/local/lib/perl5/site_perl/5.10.1/Module/Build/Compat.pm line 11.
Compilation failed in require at ./Makefile.PL line 3.
BEGIN failed--compilation aborted at ./Makefile.PL line 3.
*** Error code 2
как бы отдельно установить p5-Net-XMPP, чтоб этот затык пройти в установке?

Аватара пользователя
thefree
лейтенант
Сообщения: 980
Зарегистрирован: 2008-12-29 9:23:19
Откуда: Весёлая Страна

Re: Обсуждение статьи про SendXMPP

Непрочитанное сообщение thefree » 2011-11-12 11:27:05

у вас трабла с локале, какая версия стоит http://www.freshports.org/devel/p5-version/ ?
Не судите меня строго, Я не волшебник, а только учусь!
http://planetbsd.ru - RSS-агрегатор *BSD по Рунету

StainlessRat
проходил мимо

Обсуждение статьи про SendXMPP

Непрочитанное сообщение StainlessRat » 2016-10-11 20:22:20

Для пользования опции -t (для тех кто не читает MAN) надо пользовать опцию -a /путь к открытому сертификату сервера/ssl_ca_path.pem
Берется из клиента jabber.