Ad Widget

Collapse

Add items dynamically

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • sarathyme
    Member
    • Mar 2009
    • 58

    #1

    Add items dynamically

    i want add items to zabbix dynamically from a java code, please let me if it can be done.

    These are the ways i am thinking,
    1) Direct update to database
    2) Import items from code

    please suggest me a better way to do this.


    (By the way, do not think the requirement is crazy, adding items dynamically we really that functionality. we have a code that captures new clients info, as and when it finds a client it would wants to add to zabbix...........)

    Thanks
    Vijay
  • underguiz
    Junior Member
    • Jun 2009
    • 4

    #2
    I did it using a combination of Visual Basic script and curl to post a new item to items.php while I was using zabbix 1.4, but now that i've upgraded to 1.8 it doesn't work anymore because of the sessionid in the url that the frontend uses now.
    I am thinking in a way to insert a new row in the items table, not sure if it will work..

    Comment

    • alixen
      Senior Member
      • Apr 2006
      • 474

      #3
      Hi,

      If you are using Zabbix 1.8, you should look at new API:
      http://www.zabbix.com/documentation/...i/objects/item

      Regards,
      Alixen
      http://www.alixen.fr/zabbix.html

      Comment

      • underguiz
        Junior Member
        • Jun 2009
        • 4

        #4
        care to show me some examples?

        Comment

        • alixen
          Senior Member
          • Apr 2006
          • 474

          #5
          Originally posted by underguiz
          care to show me some examples?
          I'd love to do it, but I am still discovering 1.8 new features.
          API is on my checklist but I haven't started to play with it yet.

          Regards,
          Alixen
          http://www.alixen.fr/zabbix.html

          Comment

          • underguiz
            Junior Member
            • Jun 2009
            • 4

            #6
            ok, thanks anyway.

            Comment

            • richlv
              Senior Member
              Zabbix Certified Trainer
              Zabbix Certified SpecialistZabbix Certified Professional
              • Oct 2005
              • 3112

              #7
              you could try looking at zabcon for some inspiration


              http://www.zabbix.com/wiki/?do=search&id=zabcon
              Zabbix 3.0 Network Monitoring book

              Comment

              • underguiz
                Junior Member
                • Jun 2009
                • 4

                #8
                Ok thanks, i'll take a look.

                Comment

                Working...