Uploaded image for project: 'ZABBIX BUGS AND ISSUES'
  1. ZABBIX BUGS AND ISSUES
  2. ZBX-3134

"maintenance.create" fails to create maintenance

    XMLWordPrintable

    Details

    • Type: Incident report
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 1.8.3
    • Fix Version/s: 1.8.3, 1.8.5
    • Component/s: API (A)
    • Labels:
      None
    • Environment:
      Debian Lenny
      ZabbixAPI v1.0 php lib

      Description

      "auth":"0000000000000000000000000000","method":"maintenance.create","id":1,"params":{"hosts":[

      {"hostid":"10052"}

      ],"description":"test","active_since":"1286576441","active_till":"1286590656","name":"test","maintenance_type":"0"},"jsonrpc":"2.0"

      (with the auth obviously changed)gives an error

      [ CMaintenance::create ] At least one host or group should be selected.

      10052 definitely exists:

      mysql> select hostid,host from hosts where hostid="10052";
      -----------------------+

      hostid host

      -----------------------+

      10052 tamarao.tvo.org

      -----------------------+
      1 row in set (0.00 sec)

      Also, I can't seem to specify the maintenance period, is this a feature request or a documentation bug?

        Attachments

          Activity

            People

            Assignee:
            Unassigned Unassigned
            Reporter:
            timdau Paul
            Votes:
            1 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: