Ad Widget

Collapse

Change host notes via api

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • nms_user
    Member
    • Feb 2009
    • 43

    #1

    Change host notes via api

    Hello,

    Is it possible to edit the host profile settings via Zabbix API (fields "Location" or "Notes" for example)?

    I browsed the help for the api already but didn't find anything helpful.

    Regards
  • eskytthe
    Senior Member
    Zabbix Certified Specialist
    • May 2011
    • 363

    #2
    I found this for ver. 2.x:
    http://www.zabbix.com/documentation/...pi/host/update
    - look at "inventory"

    I do not know how to do it in 1.8.x - but I have this link for doing it direct in the database:

    BR
    Erik

    Comment

    • Pavels
      Member
      • Oct 2011
      • 83

      #3
      In 1.8 you can update it using host.update. For example:

      Code:
      {
      "hostid": 123,
      "profile": { "location": "loc", "notes": "note" }
      }

      Comment

      Working...