You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Zabbix 5.2 seems to be the last version to have "remote command" operation type, Zabbix 5.4 only has "global script".
Based on this, perhaps "custom_script" should be supported =< 5.2, "global_script" >= 5.4 ?
If that is correct, then the examples in the documentation would also need expanding, similar how in other modules there are different examples for different Zabbix versions.
Sorry about the confusion, I meant the fact that the only script example currently is "# Trigger action with multiple conditions and operations", and it would only work for Zabbix < 5.4.0. It might be useful to mention this, and have another example for >= 5.4.0 with "script_name".
Looking at the parameter table, it is possible that "script_name" would need a note that it's supported for >= 5.4.0, and "command" for > 5.4.0.
I guess the same thing for "custom_script" and maybe for "global_script"... if their usage is also version-restriced like that.
SUMMARY
Adding action fails on Zabbix 6.4: "/1/operations/1/opcommand": the parameter "scriptid" is missing
ISSUE TYPE
COMPONENT NAME
zabbix_action
ANSIBLE VERSION
CONFIGURATION
OS / ENVIRONMENT / Zabbix Version
Zabbix 6.4.8.
community.zabbix collection git clone from today.
STEPS TO REPRODUCE
Action task, based on examples in https://docs.ansible.com/ansible/latest/collections/community/zabbix/zabbix_action_module.html .
What works:
Zabbix 5.2 seems to be the last version to have "remote command" operation type, Zabbix 5.4 only has "global script".
Based on this, perhaps "custom_script" should be supported =< 5.2, "global_script" >= 5.4 ?
If that is correct, then the examples in the documentation would also need expanding, similar how in other modules there are different examples for different Zabbix versions.
EXPECTED RESULTS
Action created or a meaningful error message.
ACTUAL RESULTS
Fails with:
The text was updated successfully, but these errors were encountered: