• Icon: Incident report Incident report
    • Resolution: Won't fix
    • Icon: Major Major
    • None
    • 2.0.11
    • API (A)
    • None
    • rhel 6.3

      when one below python api script, a error "Site needs HTTP authentication. Error: <urlopen error timed out>" prompted.

      trigger_expression1 = "{"+ZEN_HOST + ":" + ZEN_KEY + ".regexp(\[S1\])}>0 & {"+ZEN_HOST + ":" + ZEN_KEY + ".regexp(\[CLEARED\])}=0"
      
      try:
          create_trigger1 = zapi.trigger.create(
              {
                      "description": "{ITEM.VALUE}",
                      "type": 1,
                      "value_flags": 1,
                      "priority": 5,
                      "flags" : 0,
                      "expression": (trigger_expression1),
                      "url" : "tr_comments.php?triggerid={TRIGGER.ID}"
              }
          )
      except Exception as e:
              print e
      

            Unassigned Unassigned
            dennisho Dennis Ho
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: