Welcome to Pandora FMS Community!

Find answers, ask questions, and connect with our community around the world.

  • Mini-Howto: Jabber Alerts

    Posted by Azabel on agosto 24, 2006 at 15:28

    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 .sendxmpprc

    Now 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

    Azabel replied 18 years, 3 months ago 2 Members · 2 Replies
  • 2 Replies
  • Sancho

    Administrator
    agosto 26, 2006 at 00:13
    2229 Karma points
    Community awards: bulb Bright ideas
    Community rank: tentacle_master_icon Tentacle Master
    Like it
    Up
    0
    Down
    Drop it
    ::

    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)

  • Azabel

    Member
    septiembre 1, 2006 at 19:39
    0 Karma points
    Community rank: tentacle-noob-1 Tentacle noob
    Like it
    Up
    0
    Down
    Drop it
    ::

    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!