【ansible&zabbix】ansible-playbook調(diào)用zabbix-api自動(dòng)添加主機(jī)

一、實(shí)驗(yàn)環(huán)境

操作系統(tǒng):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調(diào)用zabbix-api自動(dòng)添加主機(jī)

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


使用ansible添加zabbix的主機(jī)監(jiān)控

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.報(bào)錯(cuò)

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


Ansible? zabbix_host 模塊出現(xiàn)? SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed錯(cuò)誤

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轉(zhuǎn)換

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


YAML、YML在線編輯器(格式化校驗(yàn))

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

最后編輯于
?著作權(quán)歸作者所有,轉(zhuǎn)載或內(nèi)容合作請(qǐng)聯(lián)系作者
【社區(qū)內(nèi)容提示】社區(qū)部分內(nèi)容疑似由AI輔助生成,瀏覽時(shí)請(qǐng)結(jié)合常識(shí)與多方信息審慎甄別。
平臺(tái)聲明:文章內(nèi)容(如有圖片或視頻亦包括在內(nèi))由作者上傳并發(fā)布,文章內(nèi)容僅代表作者本人觀點(diǎn),簡(jiǎn)書(shū)系信息發(fā)布平臺(tái),僅提供信息存儲(chǔ)服務(wù)。

相關(guān)閱讀更多精彩內(nèi)容

友情鏈接更多精彩內(nèi)容