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