Ad Widget

Collapse

Get item values from databases

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • nima0102
    Senior Member
    • May 2010
    • 106

    #1

    Get item values from databases

    Hi
    I need to gather items from different server,these items are not equal,so I could not use "aggregate item" for our purpose!
    I decide to write bash script so that fetch given items from database directly and return our needed result.
    Apparently zabbix provides "API" for interact to zabbix server.
    1- Is it possible with API we can fetch items's value directly from database??
    2- Is it possible with API we can push data for one host or one item?
    3- Which API do you suggest?

    Thanks for any help or guidance
  • ruswold
    Senior Member
    • Mar 2010
    • 210

    #2
    Originally posted by nima0102
    Hi
    I need to gather items from different server,these items are not equal,so I could not use "aggregate item" for our purpose!
    I decide to write bash script so that fetch given items from database directly and return our needed result.
    Apparently zabbix provides "API" for interact to zabbix server.
    1- Is it possible with API we can fetch items's value directly from database??
    2- Is it possible with API we can push data for one host or one item?
    3- Which API do you suggest?

    Thanks for any help or guidance
    1. http://www.zabbix.com/documentation/...ges/zabbix_get
    2. http://www.zabbix.com/documentation/.../zabbix_sender

    Comment

    • alixen
      Senior Member
      • Apr 2006
      • 474

      #3
      Hi,

      These methods won't get data already stored in Zabbix database.

      We use an external script to directly extract data from DB with mysql client.

      I suppose that it could be done with Zabbix API but we have developed our scripts on 1.6 when API was not available.

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

      Comment

      • nima0102
        Senior Member
        • May 2010
        • 106

        #4
        Thanks for your attention.
        I had to fetch needed item's value directly from database by script.

        Anyhow thanks again.

        Comment

        Working...