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

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

XMLWordPrintable

    • Icon: Incident report Incident report
    • Resolution: Incomplete
    • Icon: Major Major
    • None
    • 3.4.7
    • 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

            Unassigned Unassigned
            20k Quentin Vuillemin
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved: