Pandora FMS Community

Mini-Howto: Jabber Alerts

Azabel · 24 ago 2006, 15:28 · 3 mensajes · 82 visitas

  1. Inicio del debate

    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

  2. Whoaw... I'll include in 1.2 doc. By the way, I'll post in Wiki... ((Link not available anymore))

  3. 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!

Entra en tu cuenta para publicar.