Pages: [1]   Go Down
Author Topic: Mini-Howto: Jabber Alerts  (Read 514 times)
0 Members and 2 Guests are viewing this topic.
Azabel
Newbie
*

Karma: 0
Offline Offline

Posts: 8


View Profile
« on: August 24, 2006, 12:28:20 PM »

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:
            useraccount@jabber.org password
4) Grant permissions: chmod 0600 .sendxmpprc

Now you can send messages, example:

$echo "Hello" | sendxmpp -s pandora useracount@jabber.org

       -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 sysadmin@myjabberserver.com


Greetings
« Last Edit: January 01, 1970, 01:00:00 AM by Azabel » Logged

Sancho Lerena
Administrator
Expert member
*****

Karma: 24
Offline Offline

Posts: 1151


I can see everything... with my glasses :-)


View Profile WWW
« Reply #1 on: August 25, 2006, 09:13:19 PM »

Whoaw... I'll include in 1.2 doc. By the way, I'll post in Wiki...
 (http://www.openideas.info/wiki/index.php/Main_Page)
« Last Edit: January 01, 1970, 01:00:00 AM by nil » Logged

-- See you in the other screen.

Azabel
Newbie
*

Karma: 0
Offline Offline

Posts: 8


View Profile
« Reply #2 on: September 01, 2006, 04:39:44 PM »

Hi,

It's necessary add the path of the configuration file in the command line, when we create the Jabber alert.

For example:

echo _field3_ | sendxmpp -s _field2_ -f /home/pandora/.sendxmpprc _field1_

_field1_ : destination account
_field2_ : subject
_field3_ : message

bye!
« Last Edit: January 01, 1970, 01:00:00 AM by Azabel » Logged

Pages: [1]   Go Up
Print
 
Jump to:  


SourceForge.net Logo  This site is monitored by Pandora FMS   ArticaST