а то вот какие у меня ошибки , эксперементировал пока не кончилась фантазия, в интернете ничего про мою ошибку нет
Код: Выделить всё
[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
Код: Выделить всё
[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 строку так
jid_otpravl@gmail.com 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' => '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]#
Код: Выделить всё
[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);
Код: Выделить всё
[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 логин и пароль задан так
jid_otpravl@gmail.com 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' => '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, что делать не знаю