ansible运行报错:CryptographyDeprecationWarning,本文旨在解决该问题。
分类:
其他好文 时间:
2020-09-17 22:44:47
阅读次数:
58
概述SNMPTrap监控主要用于设备发生故障时的主动通知的监控接收SNMPtrap与查询启用SNMP的设备相反。在这种情况下,信息发送自启用SNMP的设备并由Zabbix收集或“trapped”。通常在某些条件更改时发送trap,并且代理通过端口162连接到服务器(相反的,代理端的161端口是用于查询代理的)。使用trap可以检测在查询间隔期间发生的一些可能被查询数据遗漏的短期问题。在Zabbix
分类:
其他好文 时间:
2020-09-17 22:41:11
阅读次数:
19
Zabbix 监控服务端、客户端都已经部署完成,被监控主机已经添加,Zabbix 监控运行正常。那么接下来我们就要考虑如果出现故障的时候报警机制了 选择做为报警的第三方有很多,比如钉钉、邮件、企业微信、QQ群等等... 在Zabbix服务端设置报警,当被监控主机宕机或者达到触发器预设值时,会自动发送 ...
分类:
其他好文 时间:
2020-09-17 19:52:33
阅读次数:
34
内置变量ansible_version获取到ansible的版本号ansibletest70-mdebug-a"msg={{ansible_version}}"内置变量hostvars操作当前主机时获取到其他主机中的信息name:"play1:Gatherfactsoftest71"hosts:test71remote_user:rootname:"
分类:
其他好文 时间:
2020-09-17 17:20:47
阅读次数:
79
通过item和with_items对重复操作进行循环执行示例:hosts:jack6_1remote_user:rootgather_facts:notasks:name:touchfilefile:path:"{{item}}"state:touchwith_items:"a""b""c"在jack6_1主机上创建三
分类:
其他好文 时间:
2020-09-17 17:20:16
阅读次数:
39
with_items遍历列表中每个元素,包括嵌套列表with_list将嵌套列表作为整体元素遍历with_together将多个列表中的子列表元素,一起输出,不成对则null补位示例:hosts:jack6_1remote_user:rootgather_facts:notasks:debug:msg:"{{item}}"with_items:[1,2,3][a,b]debug
分类:
其他好文 时间:
2020-09-17 17:19:57
阅读次数:
31
with_indexed_items示例:hosts:jack6_1remote_user:rootgather_facts:notasks:debug:msg:"{{item}}"with_indexed_items:[t1,t2][t3,[t4,t5]][t6]输出结果如下:[root@jack7-1work]#ansible-playbook--syntax-checki
分类:
其他好文 时间:
2020-09-17 17:19:41
阅读次数:
32
with_indexed_items示例:hosts:jack6_1remote_user:rootgather_facts:notasks:debug:msg:"{{item}}"with_indexed_items:[t1,t2][t3,[t4,t5]][t6]输出结果如下:[root@jack7-1work]#ansible-playbook--syntax-checki
分类:
其他好文 时间:
2020-09-17 17:19:20
阅读次数:
33