Ad Widget

Collapse

Message forwarding from Zabbix to Tivoli using zabbix 1.4.6

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • HEMA1
    Member
    • Jun 2008
    • 33

    #1

    Message forwarding from Zabbix to Tivoli using zabbix 1.4.6

    I am forwarding Alarms (messages) to Tivoli that part works fine



    Configure: Zabbix Trigger
    {Template Linux general:system.localtime.fuzzytime(10).last(0)}=0

    comments:
    check NTP, restart it with ???






    However
    what i would like to do is forward comments to Tivoli,
    Is there someone that has any experience doing message forwarding “Comments” from Zabbix to Tivoli ?

    The other thing that I would like to do is to forward the host group the node belongs to?

    TNX

    Hema1
  • xs-
    Senior Member
    Zabbix Certified Specialist
    • Dec 2007
    • 393

    #2
    DISCLAIMER
    You must be able to write scripts (pref something different than shell script). You must also have decent sql knowledge and know how tivoli and its agents work!

    I have interfaced with HP OpenView, i assume this is basically the same thing.
    The whole trick is to use the same method as sending an alert email to a user.
    I assume you already setup your triggers correctly.


    1. Create a new media
    New media, path to some script (which you will need to make)
    This script gets 2 parameters:
    <send to> <message>
    The send to bit is configurable per user's media definition, and is required. this is some string. Remember this, in your script always ignore the first argument!

    2. Create a tivoli interface user
    Dedicated interface user, hook up the newly created media, in send-to place one word (which you will ignore as stated above).

    2. Create actions
    You basically need just one. But this really depends on which info is available in message macro's (variables).
    Below is an example of a message meant for such an interface:
    {TRIGGER.ID}::{STATUS}::{HOSTNAME}::SOME_TIVOLI_GR OUP::{HOSTNAME}/{IPADDRESS} - {TRIGGER.SEVERITY} - {TRIGGER.NAME}
    In the above example your tivoli interface could create a message based on info with :: as field separator, the last bit would be the message itself (parsable by tivoli).

    4. Install a tivoli agent on the zabbix server
    You will need this to pass messages to tivoli. configure and test it.

    5. Write a script which receives the message and passes this to tivoli
    If you want to be able create and clear events in tivoli, you need a unique id's to refer to when creating / clearing events. I believe tivoli provides a unique id string when you create a message with the client (like HPOV does).
    You will also need some data store (i.e. create an extra table in the zabbix db for example) to store this ID together with zabbix info you send to the script.
    In your script you will need an action for creating (based on the 'ON' status) and clearing (based on the 'OFF' status), so you will need to start by parsing the text you sent from zabbix.




    These are just the basic steps, you will need to play around with it depending on how good you want the interface to be.
    I dont know if the comment part is contained in a macro/variable, you will need to check the docs.

    I hope this will put you on the correct path.

    Comment

    Working...