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

"maintenance.create" fails to create maintenance

XMLWordPrintable

    • Icon: Incident report Incident report
    • Resolution: Fixed
    • Icon: Minor Minor
    • 1.8.3, 1.8.5
    • 1.8.3
    • API (A)
    • None
    • Debian Lenny
      ZabbixAPI v1.0 php lib

      "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?

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

              Created:
              Updated:
              Resolved: