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

Can't update maintenance timeperiod via API

XMLWordPrintable

    • Icon: Incident report Incident report
    • Resolution: Duplicate
    • Icon: Major Major
    • None
    • 2.4.5
    • API (A)
    • None
    • Linux

      According to the manual "The maintenanceid property must be defined for each maintenance, all other properties are optional." but in practice all the following are mandatory:
      active_since
      active_till
      hostids
      groupids

      This is because the $updMaintenances array with the current maintenance values is filled-in but not used afterwards when merging/checking new values.

      The problem starts in CMaintenance.php:514

            Unassigned Unassigned
            sivann Spiros Ioannou
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: