一个与zabbix-agentd有关的playbooks任务
Posted
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了一个与zabbix-agentd有关的playbooks任务相关的知识,希望对你有一定的参考价值。
--- - hosts: urun remote_user: root tasks: - name: copy zabbix key config file copy: src=/etc/zabbix/zabbix_agentd.conf.d/get_disk_io.conf dest=/etc/zabbix/zabbix_agentd.conf.d/ - name: copy disk io script file copy: src=/etc/zabbix/get_sda_riops.py dest=/etc/zabbix/ - name: restart zabbix agentd service service: name=zabbix-agent state=restarted - hosts: zabbix remote_user: root tasks: - name: copy zabbix key config file copy: src=/etc/zabbix/zabbix_agentd.conf.d/get_disk_io.conf dest=/usr/local/etc/zabbix_agentd.conf.d/ - name: copy disk io script file copy: src=/etc/zabbix/get_sda_riops.py dest=/etc/zabbix/ - name: stop zabbix agentd service shell: pkill zabbix_agentd - name: start zabbix agentd service shell: zabbix_agentd
本文出自 “运维交流Q群:223843163” 博客,请务必保留此出处http://freshair.blog.51cto.com/8272891/1904837
以上是关于一个与zabbix-agentd有关的playbooks任务的主要内容,如果未能解决你的问题,请参考以下文章