What options are available on Ubuntu 14.04 to send XMPP (Jabber) messages using a command-line client?
Background: I want to configure XMPP notifications for my Icinga server.
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It only takes a minute to sign up.Sign up to join this community
You can use
sendxmpp for that, here's a link to the manpage:
echo "hello bob!" | sendxmpp -s hello firstname.lastname@example.org
Found a somewhat hidden tool that also works for my XMPP server with SSL:
lm-send-async.c example which comes with libloudmouth1-dev package allows to send XMPP messages. But one has to compile it first:
cp -av /usr/share/doc/libloudmouth1-dev/examples/lm-send-async.c.gz . gunzip lm-send-async.c.gz gcc -o lm-send-async lm-send-async.c `pkg-config --cflags --libs loudmouth-1.0`
Send a message:
./lm-send-async --server bar.net --username email@example.com --password F00BAR \ --fingerprint "11:22:33:44:55:66:77:88:99:AA:BB:CC:DD:EE:FF:00:11:22:33:44" \ --recipient firstname.lastname@example.org --message "Hello World!"