Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Module zabbix_action maintenance_status requires unavailable operator #58747

Closed
sawicchiraw opened this issue Jul 5, 2019 · 6 comments
Closed
Labels
affects_2.8 This issue/PR affects Ansible v2.8 bug This issue/PR relates to a bug. collection Related to Ansible Collections work module This issue/PR relates to a module. monitoring Monitoring category needs_collection_redirect https://github.com/ansible/ansibullbot/blob/master/docs/collection_migration.md python3 support:community This issue/PR relates to code supported by the Ansible community. zabbix Zabbix community

Comments

@sawicchiraw
Copy link

SUMMARY
ISSUE TYPE
  • Bug Report
COMPONENT NAME

zabbix_action

ANSIBLE VERSION
ansible 2.8.2
  config file = None
  configured module search path = ['/root/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules']
  ansible python module location = /usr/local/lib/python3.5/dist-packages/ansible
  executable location = /usr/local/bin/ansible
  python version = 3.5.2 (default, Nov 12 2018, 13:43:14) [GCC 5.4.0 20160609]

CONFIGURATION
        conditions:
          - type: 'maintenance_status'
            operator: 'No'
            value: ''
            formulaid: A
OS / ENVIRONMENT

Linux zabbix 4.4.0-154-generic #181-Ubuntu SMP Tue Jun 25 05:29:03 UTC 2019 x86_64 x86_64 x86_64 GNU/Linux

STEPS TO REPRODUCE

zabbix 4.0, zabbix api Action object
https://www.zabbix.com/documentation/4.0/manual/api/reference/action/object
When Action operation-conditiontype is 16 - problem is suppressed, it requires new operator "10 - Yes; or 11 - No. "

lib/python3.5/dist-packages/ansible/modules/monitoring/zabbix/zabbix_action.py
line 1391~
try:
return to_numeric_value([
"=",
"<>",
"like",
"not like",
"in",
">=",
"<=",
"not in",
"dammy 8",
"dammy 9",
"Yes",
"No"], _condition['operator']
)

then I can add zabbix action with maintenance_status

EXPECTED RESULTS
ACTUAL RESULTS

@ansibot
Copy link
Contributor

ansibot commented Jul 5, 2019

Files identified in the description:

If these files are inaccurate, please update the component name section of the description or use the !component bot command.

click here for bot help

@ansibot
Copy link
Contributor

ansibot commented Jul 5, 2019

@ansibot ansibot added affects_2.8 This issue/PR affects Ansible v2.8 bug This issue/PR relates to a bug. module This issue/PR relates to a module. monitoring Monitoring category needs_triage Needs a first human triage before being processed. python3 support:community This issue/PR relates to code supported by the Ansible community. zabbix Zabbix community labels Jul 5, 2019
@D3DeFi
Copy link
Contributor

D3DeFi commented Jul 13, 2019

Hello, thank you for reporting this. @rubentsirunyan will you have time to look at this please?

@ansibot ansibot removed the needs_triage Needs a first human triage before being processed. label Jul 13, 2019
@D3DeFi
Copy link
Contributor

D3DeFi commented Dec 13, 2019

needs_contributor

@ansibot
Copy link
Contributor

ansibot commented Dec 13, 2019

@ansibot ansibot added the waiting_on_contributor This would be accepted but there are no plans to actively work on it. label Dec 13, 2019
@ansibot ansibot added collection Related to Ansible Collections work collection:community.zabbix needs_collection_redirect https://github.com/ansible/ansibullbot/blob/master/docs/collection_migration.md labels Apr 29, 2020
@D3DeFi
Copy link
Contributor

D3DeFi commented May 4, 2020

This issue has been moved to a collection repository for Zabbix content:
ansible-collections/community.zabbix#30

Please continue any further discussion there.

close_me

@ansibot ansibot closed this as completed May 4, 2020
@ansible ansible locked and limited conversation to collaborators Jun 1, 2020
@sivel sivel removed the waiting_on_contributor This would be accepted but there are no plans to actively work on it. label Dec 3, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
affects_2.8 This issue/PR affects Ansible v2.8 bug This issue/PR relates to a bug. collection Related to Ansible Collections work module This issue/PR relates to a module. monitoring Monitoring category needs_collection_redirect https://github.com/ansible/ansibullbot/blob/master/docs/collection_migration.md python3 support:community This issue/PR relates to code supported by the Ansible community. zabbix Zabbix community
Projects
None yet
Development

No branches or pull requests

4 participants