我正在尝试在我的Ubuntu服务器12.04 LTS上configurationsendxmpp,使用它将来自Munin / monitoring的通知发送给Gtalk。
安装了以下应用程序:
$ sudo apt-get install sendxmpp
尝试做一些testing/聊天,但它没有做一些错误如下:
$ echo "This is a gtalk test" | sendxmpp -t -u user1 -o gmail.com -p pa55word [email protected] Use of uninitialized value $args{"file"} in lc at /usr/share/perl5/Net/XMPP/Debug.pm line 154.
我没有任何线索究竟是什么错误是关于:
"Use of uninitialized value $args{"file"} in lc at /usr/share/perl5/Net/XMPP/Debug.pm line 154."
甚至执行help命令显示这个错误:
$ sendxmpp --help Use of uninitialized value $args{"file"} in lc at /usr/share/perl5/Net/XMPP/Debug.pm line 154. sendxmpp version 1.22 Copyright (c) 2004 - 2005 Dirk-Jan C. Binnema Copyright (c) 2006 - 2007 Lubomir Host 'rajo' usage: sendxmpp [options] <recipient1> [<recipient2> ...] or refer to the the sendxmpp manpage
可能是某种错误 ?
“未初始化的值”消息是一个无害的警告; 你可以忽略它。
看来sendxmpp不会查看SRVlogging,所以您需要明确告诉它连接到talk.google.com 。 您还需要确保user1在user2的名单(即您已发送并接受联系请求)。
最好将密码存储在configuration文件中,而不是在命令行中指定密码。 在~/.sendxmpprcinput以下内容,然后chmod 600 :
[email protected];talk.google.com pa55word gmail.com
然后,您应该可以使用sendxmpp -t [email protected]发送消息。