ansible源码安装管理机实战:为Linux服务器安装zabbix的agent监控
$ ansible zabbix -m shell -a "tail -10/tmp/zabbix_agentd.log" -u root192.168.30.207 | SUCCESS | rc=0 >>
16708:20170123:173136.720 TLS support: NO
16708:20170123:173136.720 **************************
16708:20170123:173136.720 using configuration file: /etc/lnmp/zabbix-3.2.3/zabbix_agentd.conf
16708:20170123:173136.720 agent #0 started
16713:20170123:173136.721 agent #5 started
16712:20170123:173136.721 agent #4 started
16711:20170123:173136.721 agent #3 started
16713:20170123:173136.721 active check configuration update from started to fail (cannot connect to [:10051]: Connection refused)
16710:20170123:173136.721 agent #2 started
16709:20170123:173136.721 agent #1 started
192.168.30.206 | SUCCESS | rc=0 >>
16205:20170123:173141.102 TLS support: NO
16205:20170123:173141.102 **************************
16205:20170123:173141.102 using configuration file: /etc/lnmp/zabbix-3.2.3/zabbix_agentd.conf
16205:20170123:173141.102 agent #0 started
16210:20170123:173141.103 agent #5 started
16209:20170123:173141.103 agent #4 started
16208:20170123:173141.103 agent #3 started
16210:20170123:173141.104 active check configuration update from started to fail (cannot connect to [:10051]: Connection refused)
16207:20170123:173141.104 agent #2 started
16206:20170123:173141.104 agent #1 started
页:
[1]