-
Notifications
You must be signed in to change notification settings - Fork 313
When creating a zabbix_item on a host of type zabbix_agent, snmp_trap… #1481
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
When creating a zabbix_item on a host of type zabbix_agent, snmp_trap… #1481
Conversation
Thanks for your interest in contributing.
Fix all the errors and push. Also you are taking "main" interface but the host can have multiple interfaces of different types. It would be nice to be able to select interface by IP/FQDN and type, can you look into this as well? |
f9333e6
to
1e91815
Compare
Did some improvements as requested |
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #1481 +/- ##
==========================================
+ Coverage 79.00% 79.10% +0.09%
==========================================
Files 47 47
Lines 5955 5992 +37
Branches 1537 1552 +15
==========================================
+ Hits 4705 4740 +35
- Misses 770 771 +1
- Partials 480 481 +1 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
tests/integration/targets/test_zabbix_item/tasks/zabbix_tests.yml
Outdated
Show resolved
Hide resolved
tests/integration/targets/test_zabbix_item/tasks/zabbix_tests.yml
Outdated
Show resolved
Hide resolved
tests/integration/targets/test_zabbix_item/tasks/zabbix_tests.yml
Outdated
Show resolved
Hide resolved
tests/integration/targets/test_zabbix_item/tasks/zabbix_tests.yml
Outdated
Show resolved
Hide resolved
Please create a changelog fragment in https://github.com/ansible-collections/community.zabbix/tree/main/changelogs/fragments mentioning that now we support more item types. |
Please create a changelog fragment in https://github.com/ansible-collections/community.zabbix/tree/main/changelogs/fragments mentioning that now we support more item types. And rebase against main, then all the integration tests will pass. |
a7ba03e
to
3f8b1e5
Compare
…, snmp_agent, ipmi_agent or jmx_agent, we must provide the interfaceid
3f8b1e5
to
4e0703f
Compare
Implemented the requested remarks & rebased against main |
Thanks for contributing! |
SUMMARY
When creating a zabbix_item directly on a host using type zabbix_agent, snmp_trap, snmp_agent, ipmi_agent or jmx_agent, we must provide the interfaceid according to the zabbix API. This PR does implement this.
Fixes #1478
ISSUE TYPE
COMPONENT NAME
community.zabbix.zabbix_item
ADDITIONAL INFORMATION
Detailed information in #1478