-
Mini-Howto: Jabber Alerts
Hello,
I have found very useful to receive pandora alerts with jabber.
With the Snmp Console we get real-time events and We need real-time alerts too, jabber alerts could be a way
Howto:
In the client side:
1) Install a jabber client (gaim (apt or http://gaim.sourceforge.net) is a very good option)
2) Register an account (In gaim: Configure an account a click in the register button)
3) Login with your account.In the pandora server side:
1) Install sendxmpp (apt-get install sendxmpp): With this tool, we can send jabber messages.
2) Create a file in your home directory with the name “.sendxmpprc” (without quotation marks)
3) Edit the file:
[email protected] password
4) Grant permissions: chmod 0600 .sendxmpprcNow you can send messages, example:
$echo “Hello” | sendxmpp -s pandora [email protected]
-s: subject
In the Pandora Web Console add a new alert and configure the fields variables like you want.
And that’s all.
——————-
Off-topic
——————-sendxmpp is a very good tool. you can send your system logs somewhere, as new lines appear:
$ tail -f /var/log/syslog ? sendxmpp -i [email protected]
Greetings