Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
Ant_Devops
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
mayi-operation
Ant_Devops
Commits
0ea2a744
Commit
0ea2a744
authored
Oct 20, 2018
by
杜崇铭
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Test zabbix mod
parent
6304b427
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
7 additions
and
9 deletions
+7
-9
README.md
+1
-1
host.yml.examples
+5
-6
roles/zabbix_agent/templates/zabbix_agentd.conf
+1
-1
zabbix.retry
+0
-1
No files found.
README.md
View file @
0ea2a744
...
@@ -10,7 +10,7 @@
...
@@ -10,7 +10,7 @@
1.
个人环境安装ansible,使用pip工具安装(需要Python3)。pip3 install ansible即可完成。
1.
个人环境安装ansible,使用pip工具安装(需要Python3)。pip3 install ansible即可完成。
2.
git clone http://code.mayi888.com/operation/Ant_Devops.git
2.
git clone http://code.mayi888.com/operation/Ant_Devops.git
3.
cd Ant_Devops
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
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环境。
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
7.
运行 ansible-playbook -i host.yml -u root standard.yml
...
...
host.yml.examples
View file @
0ea2a744
[local]
[local]
local1
[zabbix_server]
[zabbix_server]
118.25.142.187
web1
[zabbix_agent]
[zabbix_agent]
106.15.184.18
agent1:19221
106.15.184.19
agent219221
106.15.184.20
\ No newline at end of file
\ No newline at end of file
roles/zabbix_agent/templates/zabbix_agentd.conf
View file @
0ea2a744
...
@@ -7,7 +7,7 @@ LogFileSize=0
...
@@ -7,7 +7,7 @@ LogFileSize=0
##### Passive checks related
##### Passive checks related
Server
=
1
18
.
25
.
142
.
187
Server
=
1
27
.
0
.
0
.
1
### Option: ServerActive
### Option: ServerActive
...
...
zabbix.retry
deleted
100644 → 0
View file @
6304b427
118.25.142.187
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment