Ad Widget

Collapse

Help with API

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • akbar415
    Senior Member
    • May 2015
    • 119

    #1

    Help with API

    According to Zabbix API documentation the parameter 'search' "Accepts an array, where the keys are property names, and the values are strings to search for. "

    So what I'm trying to do in the code below is search for text fields that contain the word "Access" or "XSD".


    Code:
    for h in HostID:
        gatilho = zapi.trigger.get(
            host='apacheserver01',
            expandDescription = 'true',
            output='extend',
            search={'description':['Access','XSD']},
    )

    Somebody can help me to do that?
Working...