【ansible&zabbix】ansible-playbook调用zabbix-api自动添加主机

一、实验环境

操作系统:CentOS7.5 Minimal 


二、软件安装

# yum  -y install epel-release

# yum  -y install ansible 


# yum  -y install python-setuptools

# easy_install  pip

# pip install zabbix-api


三、参考链接


Monitoring modules

https://docs.ansible.com/ansible/2.5/modules/list_of_monitoring_modules.html


ansible-playbook调用zabbix-api自动添加主机

https://blog.csdn.net/wh211212/article/details/82763493


使用ansible添加zabbix的主机监控

https://blog.csdn.net/felix_yujing/article/details/78166295


Zabbix Documentation 4.0

https://www.zabbix.com/documentation/4.2/manual/api/reference/hostinterface/object


zabbix-agent-playbook

https://github.com/w4rppy/zabbix-agent-playbook


ansible批量添加hosts到zabbix-server

http://blog.hhzzer.com/posts/57e090d5


Docs » zabbix_host – Create/update/delete Zabbix hosts

https://docs.ansible.com/ansible/latest/modules/zabbix_host_module.html


curl: (51) Unable to communicate securely with peer: requested domain name does not match the server's certificate.报错

https://www.cnblogs.com/weifeng1463/p/8582921.html


Ansible  zabbix_host 模块出现  SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed错误

https://blog.csdn.net/wszhtc/article/details/79467024

https://blog.csdn.net/hou_angela/article/details/80492468


Certificate verification in Python standard library HTTP clients

https://access.redhat.com/articles/2039753#controlling-certificate-verification-7


A specific template import via zabbix_template module in Ansible fails with HTTP 500

https://support.zabbix.com/browse/ZBX-15282


Json/Yaml转换

http://blog.w3cub.com/tools/jsonyamlconvert


YAML、YML在线编辑器(格式化校验)

https://www.bejson.com/validators/yaml_editor

最后编辑于
©著作权归作者所有,转载或内容合作请联系作者
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

推荐阅读更多精彩内容