Commit 0ea2a744 by 杜崇铭

Test zabbix mod

parent 6304b427
......@@ -10,7 +10,7 @@
1. 个人环境安装ansible,使用pip工具安装(需要Python3)。pip3 install ansible即可完成。
2. git clone http://code.mayi888.com/operation/Ant_Devops.git
3. cd Ant_Devops
4. 设置免密认证。文档:https://blog.csdn.net/furzoom/article/details/79139570
4. 设置免密认证。文档:https://blog.csdn.net/furzoom/article/details/79139570(如果免密认证失败,请在第七步加-k参数)
5. 修改host.yml.examples中内容为远程主机公网地址,并重命名此文件为host.yml
6. 修改roles/nginx/templates/examples.conf或roles/nginx/templates/examplesadmin.conf内容,把文中“examples”替换成需要的URL。其中,roles/nginx/templates/examples.conf适合前后分离的web环境。roles/nginx/templates/examplesadmin.conf适合用到“统一管理平台”的web环境。
7. 运行 ansible-playbook -i host.yml -u root standard.yml
......
[local]
local1
[zabbix_server]
118.25.142.187
web1
[zabbix_agent]
106.15.184.18
106.15.184.19
106.15.184.20
\ No newline at end of file
agent1:19221
agent219221
\ No newline at end of file
......@@ -7,7 +7,7 @@ LogFileSize=0
##### Passive checks related
Server=118.25.142.187
Server=127.0.0.1
### Option: ServerActive
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment