Error: Invalid parameter "/rules/applications/createMissing": a boolean is expected

XMLWordPrintable

    • Type: Incident report
    • Resolution: Incomplete
    • Priority: Major
    • None
    • Affects Version/s: 3.4.7
    • Component/s: API (A)
    • None

      Hi Zabbix team,

      I have a script written in Perl which use Zabbix API to automatically import XML templates. My script was working fine on Zabbix 3.2 but I know get the following error while executing the configuration.import function :

      Error: Invalid parameter "/rules/applications/createMissing": a boolean is expected

      Here is how the API call, /rules/applications/createMissing is set to 'true' so I do not understand why I got this error. I've tried to changed 'true' to 1 but it does not help.

      $ZABBIX->do("configuration.import", { format => "xml",
      source => $XML,
      rules => {
      templates =>

      { updateExisting => 'true', createMissing => 'true' },
      templateScreens => { updateExisting => 'true', createMissing => 'true', deleteMissing => 'true' },
      discoveryRules => { updateExisting => 'true', createMissing => 'true', deleteMissing => 'true' },
      applications => { deleteMissing => 'true', createMissing => 'true' },
      items => { updateExisting => 'true', createMissing => 'true', deleteMissing => 'true' },
      triggers => { updateExisting => 'true', createMissing => 'true', deleteMissing => 'true' },
      graphs => { updateExisting => 'true', createMissing => 'true', deleteMissing => 'true' },
      valueMaps => { updateExisting => 'true', createMissing => 'true' }

      }})

      Regards,
      Quentin

            Assignee:
            Unassigned
            Reporter:
            Quentin Vuillemin
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved: