Commit 4c230cff by see.liuh@gmail.com

------------

1. 错别字修改,ansible的脚本叫playbook不是playback
2. 增加4.4 4.5自定义监测项相关说明
3. 增加vproc使用方法和原理。vproc脚本源码在awesome_script/vproc/vproc.py
4. 离线安装包更新,增加了vaserver的几个自定义监控项:

- 增加zabbix_agent_proxy_tx1/bin/vproc 。
- zabbix_agent_proxy_tx1/etc/zabbix_agentd.conf和zabbix_agent_proxy_tx1/etc/zabbix_agentd.conf.d更新

5. 增加zabbix监控模板:
smb://192.168.9.1/公共模块/繁星/繁星二代/自检系统/zabbix_template
。新部署的zabbix将模板导入即可
1 parent 05947704
{
"python.pythonPath": "/usr/bin/python"
}
\ No newline at end of file \ No newline at end of file
# ansible_playback
存放自己写好的ansible playback文件。需要在当前文件添加文档,简述用法和注意事项
## playback1
说明...
\ No newline at end of file \ No newline at end of file
# ansible_playbook
存放自己写好的ansible playbook文件。需要在当前文件添加文档,简述用法和注意事项
## playbook1
说明...
\ No newline at end of file \ No newline at end of file
...@@ -2,7 +2,10 @@ ...@@ -2,7 +2,10 @@
跟运维相关的好脚本,分享一下吧。 跟运维相关的好脚本,分享一下吧。
## script1 ## vproc
说明... 脚本说明见文档中vproc章节。
在设备上运行时将vproc.py改名vproc, 应用程序中会执行vproc脚本
vproc_testcase.py是简单的单元测试
#!/usr/bin/python
# encoding:utf-8
#######################################################
# author: liuh 2018-10-24
# version: v1.0
# copy to device /usr/local/bin/vproc
#######################################################
import sys
import getopt
import os
import shutil
#######################config#####################
ROOT_PATH="/root/UserApp/vproc"
##################################################
def usage():
print("""
useage: vproc command [options]
there are vproc commands:
read read a key's value
write write a key's value
clean remove group of items
write command options:
[+]-k any, --key=any | status item key.
[+]-v any, --value=any | status item value.
example:
vproc write --key=vaserver.va0.cameraname --value=camera1
vproc write --key=vaserver.va0.playok --value=1
read command options:
[+]-k any, --key=any | status item key.
example:
vproc read --key=vaserver.va0.cameraname
if executed write command example, it would be print camera1
clean command options:
[+]-p any, --path=any | the items's group key path
example:
vproc clean --path=vaserver.va0
if executed write command example, the dir:VPROC_ROOT/vaserver/va0 would be remove.
""")
def write_single_status(key, value):
paths = key.split('.')
paths_len = len(paths)
if(paths_len<2):
print("invalid key path, must be greater than 2 level")
sys.exit(-1)
if(paths_len>50):
print("invalid key path, level too deep")
sys.exit(-1)
fullpath = ROOT_PATH
for path in (paths[:-1]):
fullpath = fullpath+ "/" + path
if not os.path.exists(fullpath):
os.makedirs(fullpath)
fullpath = fullpath+"/"+paths[-1]
with open(fullpath, 'w') as f:
f.write(value)
def read_single_status(key):
paths = key.split('.')
paths_len = len(paths)
if(paths_len<2):
print("invalid key path, must be greater than 2 level")
sys.exit(-1)
fullpath = ROOT_PATH
for path in paths:
fullpath = fullpath+ "/" + path
if not os.path.exists(fullpath):
return ""
str=""
with open(fullpath, 'r') as f:
strs=f.readlines()
if(len(strs)>0):
str = strs[0]
return str
def remove_items(key_path):
paths = key_path.split('.')
paths_len = len(paths)
if(paths_len<1):
print("invalid key path, must be greater than 1 level")
sys.exit(-1)
fullpath = ROOT_PATH
for path in paths:
fullpath = fullpath+ "/" + path
if(os.path.exists(fullpath)):
if(os.path.isfile(fullpath)):
os.remove(fullpath)
# print("remove {}".format(fullpath))
if(os.path.isdir(fullpath)):
shutil.rmtree(fullpath)
# print("rmdir {}".format(fullpath))
else:
print("no suck file or dir: {}".format(fullpath))
def main():
argc = len(sys.argv)
if argc < 3 or (sys.argv[1]!= "read" and sys.argv[1]!= "write" and sys.argv[1]!= "clean"):
usage()
sys.exit(-1)
try:
options,args = getopt.getopt(sys.argv[2:],"-h-k:-v:-p:",["help","key=","value=", "path="])
except getopt.GetoptError:
print("error: invalid args")
sys.exit(-1)
keys=[]
values=[]
key_path=[]
if(sys.argv[1] == "write"):
for name,value in options:
if name in ("-h","--help"):
usage()
if name in ("-k","--key"):
keys.append(value)
if name in ("-v","--value"):
values.append(value)
keys_len = len(keys)
values_len = len(values)
if keys_len != values_len:
print("invalid args, keys count is {}, values count is {}".format(keys_len, values_len))
sys.exit(-1)
for index in range(len(keys)):
write_single_status(keys[index], values[index])
sys.exit(0)
if(sys.argv[1] == "read"):
for name,value in options:
if name in ("-h","--help"):
usage()
if name in ("-k","--key"):
keys.append(value)
if name in ("-v","--value"):
values.append(value)
for index in range(len(keys)):
readvalue = read_single_status(keys[index])
if(len(values)>0):
if(index < len(values)-1):
defaultvalue = values[index]
else:
defaultvalue = values[0]
if(readvalue == "" and len(values)>0):
print(defaultvalue)
else:
print(readvalue)
sys.exit(0)
if(sys.argv[1] == "clean"):
for name,value in options:
if name in ("-h","--help"):
usage()
if name in ("-p","--path"):
key_path.append(value)
for index in range(len(key_path)):
remove_items(key_path[index])
sys.exit(0)
if __name__ == '__main__':
main()
import os
print("--------------------testcase write value-------------------")
res = os.popen("python vproc write --key=vaserver.va0.cameraname --value=name1").read();
print(res)
print("--------------------testcase read value-------------------")
res = os.popen("python vproc read --key=vaserver.va0.cameraname").read();
print(res)
print("--------------------testcase help, shoud print 3 times-------------------")
res = os.popen("python vproc --help").read();
print(res)
res = os.popen("python vproc read").read();
print(res)
res = os.popen("python vproc").read();
print(res)
print("--------------------testcase read value, shoud print null-------------------")
res = os.popen("python vproc read --key=vaserver.lalalal").read();
print(res)
print("--------------------testcase read value, shoud print invalid args 2 times-------------------")
res = os.popen("python vproc write --key=vaserver --value=123").read();
print(res)
res = os.popen("python vproc write --key=vaserver.fffff ").read();
print(res)
print("--------------------testcase remove items-------------------")
res = os.popen("python vproc clean --path=vaserver.va0 ").read();
print(res)
...@@ -3,7 +3,7 @@ ansible集群管理工具 ...@@ -3,7 +3,7 @@ ansible集群管理工具
离线安装包: smb://192.168.9.1/公共模块/繁星/繁星二代/自检系统/ansible_offline_tx1 离线安装包: smb://192.168.9.1/公共模块/繁星/繁星二代/自检系统/ansible_offline_tx1
playback实例在 ansible_playback_example 目录。 playbook实例在 ansible_playbook_example 目录。
在繁星中增加ansible,作为集群管理工具。ansible工作的流程是,读取/etc/ansible/hosts主机列表,批量的、自动的使用ssh远程到主机上执行指令,我们可以用它获得子节点的状态,批量配置、更新程序 在繁星中增加ansible,作为集群管理工具。ansible工作的流程是,读取/etc/ansible/hosts主机列表,批量的、自动的使用ssh远程到主机上执行指令,我们可以用它获得子节点的状态,批量配置、更新程序
...@@ -12,7 +12,7 @@ playback实例在 ansible_playback_example 目录。 ...@@ -12,7 +12,7 @@ playback实例在 ansible_playback_example 目录。
1. 写python或shell脚本,在脚本中编写复杂的指令组合,利用ansible的command模块将脚本和所需文件上传、执行。--此方法学习成本低,易上手。初级使用方法 1. 写python或shell脚本,在脚本中编写复杂的指令组合,利用ansible的command模块将脚本和所需文件上传、执行。--此方法学习成本低,易上手。初级使用方法
2. 使用ansible提供的module+playback。 module相当于shell命令(copy/ls/ps/apt-get等等),playback相当于shell脚本,将module组合执行。 --此方法需要需要学习各module的功能和参数,playback语法(yml),优点是反馈更清晰,流程掌控更好,playback比shell和python好写些。 2. 使用ansible提供的module+playbook。 module相当于shell命令(copy/ls/ps/apt-get等等),playbook相当于shell脚本,将module组合执行。 --此方法需要需要学习各module的功能和参数,playbook语法(yml),优点是反馈更清晰,流程掌控更好,playbook比shell和python好写些。
3. 编写python脚本,使用ansible-api。 --此方法最高级,我能想到的需要使用此方法的应用途径:需要解析反馈信息并根据反馈做出不同反应;需要在自己的服务中利用ansible实现批量控制功能,比如批量升级服务,需要将各子节点升级进度,升级状态,错误信息反馈到web。 3. 编写python脚本,使用ansible-api。 --此方法最高级,我能想到的需要使用此方法的应用途径:需要解析反馈信息并根据反馈做出不同反应;需要在自己的服务中利用ansible实现批量控制功能,比如批量升级服务,需要将各子节点升级进度,升级状态,错误信息反馈到web。
...@@ -102,9 +102,9 @@ playback实例在 ansible_playback_example 目录。 ...@@ -102,9 +102,9 @@ playback实例在 ansible_playback_example 目录。
`ansible starnet -m command -a "bash /home/ubuntu/ansible_offline_tx1/install.sh"` `ansible starnet -m command -a "bash /home/ubuntu/ansible_offline_tx1/install.sh"`
以上两条指令结合,可满足大部分需求。 以上两条指令结合,可满足大部分需求。
- playback方式 - playbook方式
playback文件内容: playbook文件内容:
.. code-block:: shell .. code-block:: shell
...@@ -124,11 +124,11 @@ playback文件内容: ...@@ -124,11 +124,11 @@ playback文件内容:
保存 ansible_offline_tx1.yml 保存 ansible_offline_tx1.yml
执行playback 执行playbook
.. code-block:: shell .. code-block:: shell
ansible-playback ansible_offline_tx1.yml ansible-playbook ansible_offline_tx1.yml
ansible提供了非常多的module,常用模块使用方法:https://www.cnblogs.com/zhaojiedi1992/p/zhaojiedi_linux_032_ansible02.html。 ansible提供了非常多的module,常用模块使用方法:https://www.cnblogs.com/zhaojiedi1992/p/zhaojiedi_linux_032_ansible02.html。
......
...@@ -16,7 +16,7 @@ filebeat使用源码放在主机上编译。 elk三个工程使用官方下载 ...@@ -16,7 +16,7 @@ filebeat使用源码放在主机上编译。 elk三个工程使用官方下载
filebeat编译安装参考: filebeat编译安装参考:
https://blog.csdn.net/lk142500/article/details/7953584 https://blog.csdn.net/lk142500/article/details/79535849
ubuntu14安装golang1.10: ubuntu14安装golang1.10:
......
...@@ -171,3 +171,158 @@ Dashboard可以浏览状态、报警等,Edit dashboard可以自定义。比如 ...@@ -171,3 +171,158 @@ Dashboard可以浏览状态、报警等,Edit dashboard可以自定义。比如
这是最基本的使用,后续添加如何自定义监测项,利用api批量添加主机、动态管理监测项等功能。 这是最基本的使用,后续添加如何自定义监测项,利用api批量添加主机、动态管理监测项等功能。
模板
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
繁星2代模板已放在sdv上 smb://192.168.9.1/公共模块/繁星/繁星二代/自检系统/zabbix_template
自定义监测项
-------------------------------------------------
zabbix的监测项有两种:
1. 上报型
zabbix item type选择 traper。需配合zabbix_sender使用
2. 查询型
zabbix item type选择 agent
如果没有特殊需求,均采用查询型,走vproc流程。
应用程序使用vproc将状态写到文件,zabbix_agentd用vproc查询各状态的值,采用这种方式的原因:
- zabbix的交互压力可控,查询频率在web上配一下就好了。
- 应用程序写状态的操作与zabbix解耦。即使没有zabbix,我们在调试程序时也可以使用vproc,可以用命令行查询检测项的值。有助于调试
vproc后面章节有详细介绍
繁星增加自定义监测项典型流程
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
细节可以自行百度“zabbix增加自定义item”
界面上操作可参考:https://blog.csdn.net/u012062455/article/details/53257059
zabbix_agentd端操作可参考:https://www.cnblogs.com/mingerlcm/p/7754076.html
以繁星2代为例。假设我们要在slave模板中增加vaserver的“进程号”、“是否授权”两个监测项。
1. 在zabbix web端增加检测项
监测项是添加到模板中的,添加后所有使用该模板的主机均生效,修改starnet_tx1_slave_tp模板
- 点击Configuration->Template 。
- 点击starnet_tx1_slave_tp行的items。
- 点右上角的Create item
- 填写具体信息并保存
2. 在zabbix_agentd端配置
- 确保/usr/local/etc/zabbix_agentd.conf中有配置
.. code-block:: shell
UnsafeUserParameters=1
Include=/usr/local/etc/zabbix_agentd.conf.d/*.conf
- 在/usr/local/etc/zabbix_agentd.conf.d/vaserver.conf增加命令行,如果没有可新建文件
.. code-block:: shell
# UserParameter=后面是key值,必须跟web上配置的相同。逗号后面的是查询这个值所执行的指令。
# 进程号很简单,shell命令就能搞定
UserParameter=vaserver.pid,pgrep VAServer
# license状态是需要应用程序开发者写入到vproc系统中(/root/UserApp/vproc/vaserver/license文件内容)的。在这里用vproc工具进行查询。如果没查到,返回0
UserParameter=vaserver.license,vproc read --key=vaserver.license --value=0
3. 重启zabbix_agentd。过一会在web上就能看到了。
vproc
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
vproc是python编写的工具
类似linux proc系统,应用程序调用vproc脚本将监测项状态值持续更新到指定文件中。外部可读取文件值,得知应用程序的运行情况。
vproc工具有3种用法。
- 写:
.. code-block:: shell
# 此命令将创建文件 ROOT_VPROC/app/group1/group2/item,文件内容为value1
./vproc write --key=app.group1.gourp2.item --value=value1
- 读:
.. code-block:: shell
# 将ROOT_VPROC/app/group1/group2/item文件内容打印出来
./vproc read --key=app.group1.gourp2.item
- 重置:
.. code-block:: shell
# 删除ROOT_VPROC/app/group1/目录。相当于重置状态值
./vproc clean --path=app.group1
所有key值均采用 app.[group1.gourp2...groupn].item方式组织。末端item为文件,记录监测项的值,前面是多级目录。比如key值vaserver.va0.cameraname,记录状态值的文件为VPORC_ROOT/vaserver/va0/cameraname。
单个监测项更新状态频率不宜过快。建议间隔时间1分钟以上
**注意**: 建议在程序(以及能代表一组的流程)启动时、关闭时重置状态,**避免旧的状态值干扰**。拿vaserver举例:
有vaserver.event_count(发出了多少事件) ; vaserver.va0.taskname(分析通道0的任务名称); vaserver.va1.taskname
vaserver启动和退出时应调用
.. code-block:: shell
./vproc clean --path=vaserver
vaserver启动、关闭一个va时(假设是编号0)应调用
.. code-block:: shell
./vproc clean --path=vaserver.va0
自定义监测项列表
-------------------------------------------------
VAServer
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
+------------------------------------+-------+----------------------------------------+
| key | 类型 | 说明 |
+====================================+=======+========================================+
| vaserver.va0.taskname | Text | 任务名称 |
+------------------------------------+-------+----------------------------------------+
| vaserver.va0.taskid | Text | 任务id |
+------------------------------------+-------+----------------------------------------+
| vaserver.va0.cameraname | Text | 相机名称 |
+------------------------------------+-------+----------------------------------------+
| vaserver.va0.cameraid | Text | 相机id |
+------------------------------------+-------+----------------------------------------+
| vaserver.va0.playok | int | 是否点播成功,实际接收到流后再更新状态 |
+------------------------------------+-------+----------------------------------------+
| vaserver.va0.sendresultcount | int | 对外发送了多少条结果,1分钟更新一次 |
+------------------------------------+-------+----------------------------------------+
| vaserver.va[1...n].bigtaskname | 同va0 | 同va0 |
| | | |
| ... | | |
| | | |
| vaserver.va[1...n].sendresultcount | | |
+------------------------------------+-------+----------------------------------------+
| vaserver.license | int | 授权状态,check license后更新 |
+------------------------------------+-------+----------------------------------------+
修订历史 修订历史
================ ================
2018.10.24
------------
1. 错别字修改,ansible的脚本叫playbook不是playback
2. 增加4.4 4.5自定义监测项相关说明
3. 增加vproc使用方法和原理。vproc脚本源码在awesome_script/vproc/vproc.py
4. 离线安装包更新,增加了vaserver的几个自定义监控项:
- 增加zabbix_agent_proxy_tx1/bin/vproc 。
- zabbix_agent_proxy_tx1/etc/zabbix_agentd.conf和zabbix_agent_proxy_tx1/etc/zabbix_agentd.conf.d更新
5. 增加zabbix监控模板: smb://192.168.9.1/公共模块/繁星/繁星二代/自检系统/zabbix_template 。新部署的zabbix将模板导入即可
2018.10.17 2018.10.17
------------ ------------
......
...@@ -161,12 +161,12 @@ ...@@ -161,12 +161,12 @@
<div class="section" id="ansible"> <div class="section" id="ansible">
<h1>2. ansible集群管理工具<a class="headerlink" href="#ansible" title="Permalink to this headline"></a></h1> <h1>2. ansible集群管理工具<a class="headerlink" href="#ansible" title="Permalink to this headline"></a></h1>
<p>离线安装包: <a class="reference external" href="smb://192.168.9.1">smb://192.168.9.1</a>/公共模块/繁星/繁星二代/自检系统/ansible_offline_tx1</p> <p>离线安装包: <a class="reference external" href="smb://192.168.9.1">smb://192.168.9.1</a>/公共模块/繁星/繁星二代/自检系统/ansible_offline_tx1</p>
<p>playback实例在 ansible_playback_example 目录。</p> <p>playbook实例在 ansible_playbook_example 目录。</p>
<p>在繁星中增加ansible,作为集群管理工具。ansible工作的流程是,读取/etc/ansible/hosts主机列表,批量的、自动的使用ssh远程到主机上执行指令,我们可以用它获得子节点的状态,批量配置、更新程序</p> <p>在繁星中增加ansible,作为集群管理工具。ansible工作的流程是,读取/etc/ansible/hosts主机列表,批量的、自动的使用ssh远程到主机上执行指令,我们可以用它获得子节点的状态,批量配置、更新程序</p>
<p>我们有三种使用方法:</p> <p>我们有三种使用方法:</p>
<ol class="arabic simple"> <ol class="arabic simple">
<li>写python或shell脚本,在脚本中编写复杂的指令组合,利用ansible的command模块将脚本和所需文件上传、执行。–此方法学习成本低,易上手。初级使用方法</li> <li>写python或shell脚本,在脚本中编写复杂的指令组合,利用ansible的command模块将脚本和所需文件上传、执行。–此方法学习成本低,易上手。初级使用方法</li>
<li>使用ansible提供的module+playback。 module相当于shell命令(copy/ls/ps/apt-get等等),playback相当于shell脚本,将module组合执行。 –此方法需要需要学习各module的功能和参数,playback语法(yml),优点是反馈更清晰,流程掌控更好,playback比shell和python好写些。</li> <li>使用ansible提供的module+playbook。 module相当于shell命令(copy/ls/ps/apt-get等等),playbook相当于shell脚本,将module组合执行。 –此方法需要需要学习各module的功能和参数,playbook语法(yml),优点是反馈更清晰,流程掌控更好,playbook比shell和python好写些。</li>
<li>编写python脚本,使用ansible-api。 –此方法最高级,我能想到的需要使用此方法的应用途径:需要解析反馈信息并根据反馈做出不同反应;需要在自己的服务中利用ansible实现批量控制功能,比如批量升级服务,需要将各子节点升级进度,升级状态,错误信息反馈到web。</li> <li>编写python脚本,使用ansible-api。 –此方法最高级,我能想到的需要使用此方法的应用途径:需要解析反馈信息并根据反馈做出不同反应;需要在自己的服务中利用ansible实现批量控制功能,比如批量升级服务,需要将各子节点升级进度,升级状态,错误信息反馈到web。</li>
</ol> </ol>
<p>中文说明文档:<a class="reference external" href="http://www.ansible.com.cn/docs/">http://www.ansible.com.cn/docs/</a></p> <p>中文说明文档:<a class="reference external" href="http://www.ansible.com.cn/docs/">http://www.ansible.com.cn/docs/</a></p>
...@@ -240,9 +240,9 @@ ansible all -m ping ...@@ -240,9 +240,9 @@ ansible all -m ping
</pre></div> </pre></div>
</div> </div>
<ul class="simple"> <ul class="simple">
<li>playback方式</li> <li>playbook方式</li>
</ul> </ul>
<p>playback文件内容:</p> <p>playbook文件内容:</p>
<div class="highlight-shell notranslate"><div class="highlight"><pre><span></span>--- <div class="highlight-shell notranslate"><div class="highlight"><pre><span></span>---
- hosts: starnet - hosts: starnet
sudo: yes sudo: yes
...@@ -259,8 +259,8 @@ ansible all -m ping ...@@ -259,8 +259,8 @@ ansible all -m ping
</pre></div> </pre></div>
</div> </div>
<p>保存 ansible_offline_tx1.yml</p> <p>保存 ansible_offline_tx1.yml</p>
<p>执行playback</p> <p>执行playbook</p>
<div class="highlight-shell notranslate"><div class="highlight"><pre><span></span>ansible-playback ansible_offline_tx1.yml <div class="highlight-shell notranslate"><div class="highlight"><pre><span></span>ansible-playbook ansible_offline_tx1.yml
</pre></div> </pre></div>
</div> </div>
<p>ansible提供了非常多的module,常用模块使用方法:<a class="reference external" href="https://www.cnblogs.com/zhaojiedi1992/p/zhaojiedi_linux_032_ansible02.html">https://www.cnblogs.com/zhaojiedi1992/p/zhaojiedi_linux_032_ansible02.html</a></p> <p>ansible提供了非常多的module,常用模块使用方法:<a class="reference external" href="https://www.cnblogs.com/zhaojiedi1992/p/zhaojiedi_linux_032_ansible02.html">https://www.cnblogs.com/zhaojiedi1992/p/zhaojiedi_linux_032_ansible02.html</a></p>
......
...@@ -178,7 +178,7 @@ ...@@ -178,7 +178,7 @@
<p>filebeat使用源码放在主机上编译。 elk三个工程使用官方下载的tar.gz的包。都是java程序,直接就能运行。</p> <p>filebeat使用源码放在主机上编译。 elk三个工程使用官方下载的tar.gz的包。都是java程序,直接就能运行。</p>
<p>繁星2代已编译好filebeat,其他平台需按照下面步骤编译:</p> <p>繁星2代已编译好filebeat,其他平台需按照下面步骤编译:</p>
<p>filebeat编译安装参考:</p> <p>filebeat编译安装参考:</p>
<p><a class="reference external" href="https://blog.csdn.net/lk142500/article/details/7953584">https://blog.csdn.net/lk142500/article/details/7953584</a></p> <p><a class="reference external" href="https://blog.csdn.net/lk142500/article/details/79535849">https://blog.csdn.net/lk142500/article/details/79535849</a></p>
<p>ubuntu14安装golang1.10:</p> <p>ubuntu14安装golang1.10:</p>
<p><a class="reference external" href="https://www.cnblogs.com/senlinyang/p/8777384.html">https://www.cnblogs.com/senlinyang/p/8777384.html</a></p> <p><a class="reference external" href="https://www.cnblogs.com/senlinyang/p/8777384.html">https://www.cnblogs.com/senlinyang/p/8777384.html</a></p>
</div> </div>
......
...@@ -101,6 +101,16 @@ ...@@ -101,6 +101,16 @@
</li> </li>
<li class="toctree-l2"><a class="reference internal" href="#id6">4.3. 使用</a><ul> <li class="toctree-l2"><a class="reference internal" href="#id6">4.3. 使用</a><ul>
<li class="toctree-l3"><a class="reference internal" href="#quick-start">4.3.1. quick start</a></li> <li class="toctree-l3"><a class="reference internal" href="#quick-start">4.3.1. quick start</a></li>
<li class="toctree-l3"><a class="reference internal" href="#id7">4.3.2. 模板</a></li>
</ul>
</li>
<li class="toctree-l2"><a class="reference internal" href="#id8">4.4. 自定义监测项</a><ul>
<li class="toctree-l3"><a class="reference internal" href="#id9">4.4.1. 繁星增加自定义监测项典型流程</a></li>
<li class="toctree-l3"><a class="reference internal" href="#vproc">4.4.2. vproc</a></li>
</ul>
</li>
<li class="toctree-l2"><a class="reference internal" href="#id10">4.5. 自定义监测项列表</a><ul>
<li class="toctree-l3"><a class="reference internal" href="#vaserver">4.5.1. VAServer</a></li>
</ul> </ul>
</li> </li>
</ul> </ul>
...@@ -297,6 +307,164 @@ info from server: <span class="s2">&quot;processed: 0; failed: 1; total: 1; seco ...@@ -297,6 +307,164 @@ info from server: <span class="s2">&quot;processed: 0; failed: 1; total: 1; seco
<img alt="_images/zabbix-07.png" src="_images/zabbix-07.png" /> <img alt="_images/zabbix-07.png" src="_images/zabbix-07.png" />
<p>这是最基本的使用,后续添加如何自定义监测项,利用api批量添加主机、动态管理监测项等功能。</p> <p>这是最基本的使用,后续添加如何自定义监测项,利用api批量添加主机、动态管理监测项等功能。</p>
</div> </div>
<div class="section" id="id7">
<h3>4.3.2. 模板<a class="headerlink" href="#id7" title="Permalink to this headline"></a></h3>
<p>繁星2代模板已放在sdv上 <a class="reference external" href="smb://192.168.9.1">smb://192.168.9.1</a>/公共模块/繁星/繁星二代/自检系统/zabbix_template</p>
</div>
</div>
<div class="section" id="id8">
<h2>4.4. 自定义监测项<a class="headerlink" href="#id8" title="Permalink to this headline"></a></h2>
<p>zabbix的监测项有两种:</p>
<ol class="arabic simple">
<li>上报型</li>
</ol>
<p>zabbix item type选择 traper。需配合zabbix_sender使用</p>
<ol class="arabic simple" start="2">
<li>查询型</li>
</ol>
<p>zabbix item type选择 agent</p>
<p>如果没有特殊需求,均采用查询型,走vproc流程。</p>
<p>应用程序使用vproc将状态写到文件,zabbix_agentd用vproc查询各状态的值,采用这种方式的原因:</p>
<ul class="simple">
<li>zabbix的交互压力可控,查询频率在web上配一下就好了。</li>
<li>应用程序写状态的操作与zabbix解耦。即使没有zabbix,我们在调试程序时也可以使用vproc,可以用命令行查询检测项的值。有助于调试</li>
</ul>
<p>vproc后面章节有详细介绍</p>
<div class="section" id="id9">
<h3>4.4.1. 繁星增加自定义监测项典型流程<a class="headerlink" href="#id9" title="Permalink to this headline"></a></h3>
<p>细节可以自行百度“zabbix增加自定义item”</p>
<p>界面上操作可参考:<a class="reference external" href="https://blog.csdn.net/u012062455/article/details/53257059">https://blog.csdn.net/u012062455/article/details/53257059</a></p>
<p>zabbix_agentd端操作可参考:<a class="reference external" href="https://www.cnblogs.com/mingerlcm/p/7754076.html">https://www.cnblogs.com/mingerlcm/p/7754076.html</a></p>
<p>以繁星2代为例。假设我们要在slave模板中增加vaserver的“进程号”、“是否授权”两个监测项。</p>
<ol class="arabic simple">
<li>在zabbix web端增加检测项</li>
</ol>
<p>监测项是添加到模板中的,添加后所有使用该模板的主机均生效,修改starnet_tx1_slave_tp模板</p>
<ul class="simple">
<li>点击Configuration-&gt;Template 。</li>
<li>点击starnet_tx1_slave_tp行的items。</li>
<li>点右上角的Create item</li>
<li>填写具体信息并保存</li>
</ul>
<ol class="arabic simple" start="2">
<li>在zabbix_agentd端配置</li>
</ol>
<ul class="simple">
<li>确保/usr/local/etc/zabbix_agentd.conf中有配置</li>
</ul>
<div class="highlight-shell notranslate"><div class="highlight"><pre><span></span><span class="nv">UnsafeUserParameters</span><span class="o">=</span><span class="m">1</span>
<span class="nv">Include</span><span class="o">=</span>/usr/local/etc/zabbix_agentd.conf.d/*.conf
</pre></div>
</div>
<ul class="simple">
<li>在/usr/local/etc/zabbix_agentd.conf.d/vaserver.conf增加命令行,如果没有可新建文件</li>
</ul>
<div class="highlight-shell notranslate"><div class="highlight"><pre><span></span><span class="c1"># UserParameter=后面是key值,必须跟web上配置的相同。逗号后面的是查询这个值所执行的指令。</span>
<span class="c1"># 进程号很简单,shell命令就能搞定</span>
<span class="nv">UserParameter</span><span class="o">=</span>vaserver.pid,pgrep VAServer
<span class="c1"># license状态是需要应用程序开发者写入到vproc系统中(/root/UserApp/vproc/vaserver/license文件内容)的。在这里用vproc工具进行查询。如果没查到,返回0</span>
<span class="nv">UserParameter</span><span class="o">=</span>vaserver.license,vproc <span class="nb">read</span> --key<span class="o">=</span>vaserver.license --value<span class="o">=</span><span class="m">0</span>
</pre></div>
</div>
<ol class="arabic simple" start="3">
<li>重启zabbix_agentd。过一会在web上就能看到了。</li>
</ol>
</div>
<div class="section" id="vproc">
<h3>4.4.2. vproc<a class="headerlink" href="#vproc" title="Permalink to this headline"></a></h3>
<p>vproc是python编写的工具</p>
<p>类似linux proc系统,应用程序调用vproc脚本将监测项状态值持续更新到指定文件中。外部可读取文件值,得知应用程序的运行情况。</p>
<p>vproc工具有3种用法。</p>
<ul class="simple">
<li>写:</li>
</ul>
<div class="highlight-shell notranslate"><div class="highlight"><pre><span></span><span class="c1"># 此命令将创建文件 ROOT_VPROC/app/group1/group2/item,文件内容为value1</span>
./vproc write --key<span class="o">=</span>app.group1.gourp2.item --value<span class="o">=</span>value1
</pre></div>
</div>
<ul class="simple">
<li>读:</li>
</ul>
<div class="highlight-shell notranslate"><div class="highlight"><pre><span></span><span class="c1"># 将ROOT_VPROC/app/group1/group2/item文件内容打印出来</span>
./vproc <span class="nb">read</span> --key<span class="o">=</span>app.group1.gourp2.item
</pre></div>
</div>
<ul class="simple">
<li>重置:</li>
</ul>
<div class="highlight-shell notranslate"><div class="highlight"><pre><span></span><span class="c1"># 删除ROOT_VPROC/app/group1/目录。相当于重置状态值</span>
./vproc clean --path<span class="o">=</span>app.group1
</pre></div>
</div>
<p>所有key值均采用 app.[group1.gourp2…groupn].item方式组织。末端item为文件,记录监测项的值,前面是多级目录。比如key值vaserver.va0.cameraname,记录状态值的文件为VPORC_ROOT/vaserver/va0/cameraname。</p>
<p>单个监测项更新状态频率不宜过快。建议间隔时间1分钟以上</p>
<p><strong>注意</strong>: 建议在程序(以及能代表一组的流程)启动时、关闭时重置状态,<strong>避免旧的状态值干扰</strong>。拿vaserver举例:</p>
<p>有vaserver.event_count(发出了多少事件) ; vaserver.va0.taskname(分析通道0的任务名称); vaserver.va1.taskname</p>
<p>vaserver启动和退出时应调用</p>
<div class="highlight-shell notranslate"><div class="highlight"><pre><span></span>./vproc clean --path<span class="o">=</span>vaserver
</pre></div>
</div>
<p>vaserver启动、关闭一个va时(假设是编号0)应调用</p>
<div class="highlight-shell notranslate"><div class="highlight"><pre><span></span>./vproc clean --path<span class="o">=</span>vaserver.va0
</pre></div>
</div>
</div>
</div>
<div class="section" id="id10">
<h2>4.5. 自定义监测项列表<a class="headerlink" href="#id10" title="Permalink to this headline"></a></h2>
<div class="section" id="vaserver">
<h3>4.5.1. VAServer<a class="headerlink" href="#vaserver" title="Permalink to this headline"></a></h3>
<table border="1" class="docutils">
<colgroup>
<col width="43%" />
<col width="8%" />
<col width="48%" />
</colgroup>
<thead valign="bottom">
<tr class="row-odd"><th class="head">key</th>
<th class="head">类型</th>
<th class="head">说明</th>
</tr>
</thead>
<tbody valign="top">
<tr class="row-even"><td>vaserver.va0.taskname</td>
<td>Text</td>
<td>任务名称</td>
</tr>
<tr class="row-odd"><td>vaserver.va0.taskid</td>
<td>Text</td>
<td>任务id</td>
</tr>
<tr class="row-even"><td>vaserver.va0.cameraname</td>
<td>Text</td>
<td>相机名称</td>
</tr>
<tr class="row-odd"><td>vaserver.va0.cameraid</td>
<td>Text</td>
<td>相机id</td>
</tr>
<tr class="row-even"><td>vaserver.va0.playok</td>
<td>int</td>
<td>是否点播成功,实际接收到流后再更新状态</td>
</tr>
<tr class="row-odd"><td>vaserver.va0.sendresultcount</td>
<td>int</td>
<td>对外发送了多少条结果,1分钟更新一次</td>
</tr>
<tr class="row-even"><td><p class="first">vaserver.va[1…n].bigtaskname</p>
<p></p>
<p class="last">vaserver.va[1…n].sendresultcount</p>
</td>
<td>同va0</td>
<td>同va0</td>
</tr>
<tr class="row-odd"><td>vaserver.license</td>
<td>int</td>
<td>授权状态,check license后更新</td>
</tr>
</tbody>
</table>
</div>
</div> </div>
</div> </div>
......
...@@ -88,9 +88,10 @@ ...@@ -88,9 +88,10 @@
<li class="toctree-l1"><a class="reference internal" href="30-elk.html">3. elk日志系统</a></li> <li class="toctree-l1"><a class="reference internal" href="30-elk.html">3. elk日志系统</a></li>
<li class="toctree-l1"><a class="reference internal" href="40-zabbix.html">4. zabbix监测系统</a></li> <li class="toctree-l1"><a class="reference internal" href="40-zabbix.html">4. zabbix监测系统</a></li>
<li class="toctree-l1 current"><a class="current reference internal" href="#">5. 修订历史</a><ul> <li class="toctree-l1 current"><a class="current reference internal" href="#">5. 修订历史</a><ul>
<li class="toctree-l2"><a class="reference internal" href="#id2">5.1. 2018.10.17</a></li> <li class="toctree-l2"><a class="reference internal" href="#id2">5.1. 2018.10.24</a></li>
<li class="toctree-l2"><a class="reference internal" href="#id3">5.2. 2018.10.10</a></li> <li class="toctree-l2"><a class="reference internal" href="#id3">5.2. 2018.10.17</a></li>
<li class="toctree-l2"><a class="reference internal" href="#id4">5.3. 2018.10.09</a></li> <li class="toctree-l2"><a class="reference internal" href="#id4">5.3. 2018.10.10</a></li>
<li class="toctree-l2"><a class="reference internal" href="#id5">5.4. 2018.10.09</a></li>
</ul> </ul>
</li> </li>
</ul> </ul>
...@@ -160,20 +161,36 @@ ...@@ -160,20 +161,36 @@
<div class="section" id="id1"> <div class="section" id="id1">
<h1>5. 修订历史<a class="headerlink" href="#id1" title="Permalink to this headline"></a></h1> <h1>5. 修订历史<a class="headerlink" href="#id1" title="Permalink to this headline"></a></h1>
<div class="section" id="id2"> <div class="section" id="id2">
<h2>5.1. 2018.10.17<a class="headerlink" href="#id2" title="Permalink to this headline"></a></h2> <h2>5.1. 2018.10.24<a class="headerlink" href="#id2" title="Permalink to this headline"></a></h2>
<ol class="arabic simple">
<li>错别字修改,ansible的脚本叫playbook不是playback</li>
<li>增加4.4 4.5自定义监测项相关说明</li>
<li>增加vproc使用方法和原理</li>
<li>离线安装包更新,增加了vaserver的几个自定义监控项:</li>
</ol>
<ul class="simple">
<li>增加zabbix_agent_proxy_tx1/bin/vproc 。</li>
<li>zabbix_agent_proxy_tx1/etc/zabbix_agentd.conf和zabbix_agent_proxy_tx1/etc/zabbix_agentd.conf.d更新</li>
</ul>
<ol class="arabic simple" start="5">
<li>增加zabbix监控模板: <a class="reference external" href="smb://192.168.9.1">smb://192.168.9.1</a>/公共模块/繁星/繁星二代/自检系统/zabbix_template 。新部署的zabbix将模板导入即可</li>
</ol>
</div>
<div class="section" id="id3">
<h2>5.2. 2018.10.17<a class="headerlink" href="#id3" title="Permalink to this headline"></a></h2>
<ol class="arabic simple"> <ol class="arabic simple">
<li>zabbix agent和proxy配置文件增加 AllowRoot=1,使其可以用root账户运行</li> <li>zabbix agent和proxy配置文件增加 AllowRoot=1,使其可以用root账户运行</li>
<li>错别字修改,watchman改成watchmen,明明是想用DC漫画的watchmen :)</li> <li>错别字修改,watchman改成watchmen,明明是想用DC漫画的watchmen :)</li>
</ol> </ol>
</div> </div>
<div class="section" id="id3"> <div class="section" id="id4">
<h2>5.2. 2018.10.10<a class="headerlink" href="#id3" title="Permalink to this headline"></a></h2> <h2>5.3. 2018.10.10<a class="headerlink" href="#id4" title="Permalink to this headline"></a></h2>
<ol class="arabic simple"> <ol class="arabic simple">
<li>修改了zabbix_agent安装方法。由deb包安装改成编译安装。deb版本较低,一些定义好的item不支持。改成3.4版本源码编译的,与zabbix_proxy一起安装</li> <li>修改了zabbix_agent安装方法。由deb包安装改成编译安装。deb版本较低,一些定义好的item不支持。改成3.4版本源码编译的,与zabbix_proxy一起安装</li>
</ol> </ol>
</div> </div>
<div class="section" id="id4"> <div class="section" id="id5">
<h2>5.3. 2018.10.09<a class="headerlink" href="#id4" title="Permalink to this headline"></a></h2> <h2>5.4. 2018.10.09<a class="headerlink" href="#id5" title="Permalink to this headline"></a></h2>
<ol class="arabic simple"> <ol class="arabic simple">
<li>新建文档,增加了watchmen各组件最基本的安装、配置、quickstart文档</li> <li>新建文档,增加了watchmen各组件最基本的安装、配置、quickstart文档</li>
</ol> </ol>
......
...@@ -3,7 +3,7 @@ ansible集群管理工具 ...@@ -3,7 +3,7 @@ ansible集群管理工具
离线安装包: smb://192.168.9.1/公共模块/繁星/繁星二代/自检系统/ansible_offline_tx1 离线安装包: smb://192.168.9.1/公共模块/繁星/繁星二代/自检系统/ansible_offline_tx1
playback实例在 ansible_playback_example 目录。 playbook实例在 ansible_playbook_example 目录。
在繁星中增加ansible,作为集群管理工具。ansible工作的流程是,读取/etc/ansible/hosts主机列表,批量的、自动的使用ssh远程到主机上执行指令,我们可以用它获得子节点的状态,批量配置、更新程序 在繁星中增加ansible,作为集群管理工具。ansible工作的流程是,读取/etc/ansible/hosts主机列表,批量的、自动的使用ssh远程到主机上执行指令,我们可以用它获得子节点的状态,批量配置、更新程序
...@@ -12,7 +12,7 @@ playback实例在 ansible_playback_example 目录。 ...@@ -12,7 +12,7 @@ playback实例在 ansible_playback_example 目录。
1. 写python或shell脚本,在脚本中编写复杂的指令组合,利用ansible的command模块将脚本和所需文件上传、执行。--此方法学习成本低,易上手。初级使用方法 1. 写python或shell脚本,在脚本中编写复杂的指令组合,利用ansible的command模块将脚本和所需文件上传、执行。--此方法学习成本低,易上手。初级使用方法
2. 使用ansible提供的module+playback。 module相当于shell命令(copy/ls/ps/apt-get等等),playback相当于shell脚本,将module组合执行。 --此方法需要需要学习各module的功能和参数,playback语法(yml),优点是反馈更清晰,流程掌控更好,playback比shell和python好写些。 2. 使用ansible提供的module+playbook。 module相当于shell命令(copy/ls/ps/apt-get等等),playbook相当于shell脚本,将module组合执行。 --此方法需要需要学习各module的功能和参数,playbook语法(yml),优点是反馈更清晰,流程掌控更好,playbook比shell和python好写些。
3. 编写python脚本,使用ansible-api。 --此方法最高级,我能想到的需要使用此方法的应用途径:需要解析反馈信息并根据反馈做出不同反应;需要在自己的服务中利用ansible实现批量控制功能,比如批量升级服务,需要将各子节点升级进度,升级状态,错误信息反馈到web。 3. 编写python脚本,使用ansible-api。 --此方法最高级,我能想到的需要使用此方法的应用途径:需要解析反馈信息并根据反馈做出不同反应;需要在自己的服务中利用ansible实现批量控制功能,比如批量升级服务,需要将各子节点升级进度,升级状态,错误信息反馈到web。
...@@ -102,9 +102,9 @@ playback实例在 ansible_playback_example 目录。 ...@@ -102,9 +102,9 @@ playback实例在 ansible_playback_example 目录。
`ansible starnet -m command -a "bash /home/ubuntu/ansible_offline_tx1/install.sh"` `ansible starnet -m command -a "bash /home/ubuntu/ansible_offline_tx1/install.sh"`
以上两条指令结合,可满足大部分需求。 以上两条指令结合,可满足大部分需求。
- playback方式 - playbook方式
playback文件内容: playbook文件内容:
.. code-block:: shell .. code-block:: shell
...@@ -124,11 +124,11 @@ playback文件内容: ...@@ -124,11 +124,11 @@ playback文件内容:
保存 ansible_offline_tx1.yml 保存 ansible_offline_tx1.yml
执行playback 执行playbook
.. code-block:: shell .. code-block:: shell
ansible-playback ansible_offline_tx1.yml ansible-playbook ansible_offline_tx1.yml
ansible提供了非常多的module,常用模块使用方法:https://www.cnblogs.com/zhaojiedi1992/p/zhaojiedi_linux_032_ansible02.html。 ansible提供了非常多的module,常用模块使用方法:https://www.cnblogs.com/zhaojiedi1992/p/zhaojiedi_linux_032_ansible02.html。
......
...@@ -16,7 +16,7 @@ filebeat使用源码放在主机上编译。 elk三个工程使用官方下载 ...@@ -16,7 +16,7 @@ filebeat使用源码放在主机上编译。 elk三个工程使用官方下载
filebeat编译安装参考: filebeat编译安装参考:
https://blog.csdn.net/lk142500/article/details/7953584 https://blog.csdn.net/lk142500/article/details/79535849
ubuntu14安装golang1.10: ubuntu14安装golang1.10:
......
...@@ -171,3 +171,158 @@ Dashboard可以浏览状态、报警等,Edit dashboard可以自定义。比如 ...@@ -171,3 +171,158 @@ Dashboard可以浏览状态、报警等,Edit dashboard可以自定义。比如
这是最基本的使用,后续添加如何自定义监测项,利用api批量添加主机、动态管理监测项等功能。 这是最基本的使用,后续添加如何自定义监测项,利用api批量添加主机、动态管理监测项等功能。
模板
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
繁星2代模板已放在sdv上 smb://192.168.9.1/公共模块/繁星/繁星二代/自检系统/zabbix_template
自定义监测项
-------------------------------------------------
zabbix的监测项有两种:
1. 上报型
zabbix item type选择 traper。需配合zabbix_sender使用
2. 查询型
zabbix item type选择 agent
如果没有特殊需求,均采用查询型,走vproc流程。
应用程序使用vproc将状态写到文件,zabbix_agentd用vproc查询各状态的值,采用这种方式的原因:
- zabbix的交互压力可控,查询频率在web上配一下就好了。
- 应用程序写状态的操作与zabbix解耦。即使没有zabbix,我们在调试程序时也可以使用vproc,可以用命令行查询检测项的值。有助于调试
vproc后面章节有详细介绍
繁星增加自定义监测项典型流程
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
细节可以自行百度“zabbix增加自定义item”
界面上操作可参考:https://blog.csdn.net/u012062455/article/details/53257059
zabbix_agentd端操作可参考:https://www.cnblogs.com/mingerlcm/p/7754076.html
以繁星2代为例。假设我们要在slave模板中增加vaserver的“进程号”、“是否授权”两个监测项。
1. 在zabbix web端增加检测项
监测项是添加到模板中的,添加后所有使用该模板的主机均生效,修改starnet_tx1_slave_tp模板
- 点击Configuration->Template 。
- 点击starnet_tx1_slave_tp行的items。
- 点右上角的Create item
- 填写具体信息并保存
2. 在zabbix_agentd端配置
- 确保/usr/local/etc/zabbix_agentd.conf中有配置
.. code-block:: shell
UnsafeUserParameters=1
Include=/usr/local/etc/zabbix_agentd.conf.d/*.conf
- 在/usr/local/etc/zabbix_agentd.conf.d/vaserver.conf增加命令行,如果没有可新建文件
.. code-block:: shell
# UserParameter=后面是key值,必须跟web上配置的相同。逗号后面的是查询这个值所执行的指令。
# 进程号很简单,shell命令就能搞定
UserParameter=vaserver.pid,pgrep VAServer
# license状态是需要应用程序开发者写入到vproc系统中(/root/UserApp/vproc/vaserver/license文件内容)的。在这里用vproc工具进行查询。如果没查到,返回0
UserParameter=vaserver.license,vproc read --key=vaserver.license --value=0
3. 重启zabbix_agentd。过一会在web上就能看到了。
vproc
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
vproc是python编写的工具
类似linux proc系统,应用程序调用vproc脚本将监测项状态值持续更新到指定文件中。外部可读取文件值,得知应用程序的运行情况。
vproc工具有3种用法。
- 写:
.. code-block:: shell
# 此命令将创建文件 ROOT_VPROC/app/group1/group2/item,文件内容为value1
./vproc write --key=app.group1.gourp2.item --value=value1
- 读:
.. code-block:: shell
# 将ROOT_VPROC/app/group1/group2/item文件内容打印出来
./vproc read --key=app.group1.gourp2.item
- 重置:
.. code-block:: shell
# 删除ROOT_VPROC/app/group1/目录。相当于重置状态值
./vproc clean --path=app.group1
所有key值均采用 app.[group1.gourp2...groupn].item方式组织。末端item为文件,记录监测项的值,前面是多级目录。比如key值vaserver.va0.cameraname,记录状态值的文件为VPORC_ROOT/vaserver/va0/cameraname。
单个监测项更新状态频率不宜过快。建议间隔时间1分钟以上
**注意**: 建议在程序(以及能代表一组的流程)启动时、关闭时重置状态,**避免旧的状态值干扰**。拿vaserver举例:
有vaserver.event_count(发出了多少事件) ; vaserver.va0.taskname(分析通道0的任务名称); vaserver.va1.taskname
vaserver启动和退出时应调用
.. code-block:: shell
./vproc clean --path=vaserver
vaserver启动、关闭一个va时(假设是编号0)应调用
.. code-block:: shell
./vproc clean --path=vaserver.va0
自定义监测项列表
-------------------------------------------------
VAServer
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
+------------------------------------+-------+----------------------------------------+
| key | 类型 | 说明 |
+====================================+=======+========================================+
| vaserver.va0.taskname | Text | 任务名称 |
+------------------------------------+-------+----------------------------------------+
| vaserver.va0.taskid | Text | 任务id |
+------------------------------------+-------+----------------------------------------+
| vaserver.va0.cameraname | Text | 相机名称 |
+------------------------------------+-------+----------------------------------------+
| vaserver.va0.cameraid | Text | 相机id |
+------------------------------------+-------+----------------------------------------+
| vaserver.va0.playok | int | 是否点播成功,实际接收到流后再更新状态 |
+------------------------------------+-------+----------------------------------------+
| vaserver.va0.sendresultcount | int | 对外发送了多少条结果,1分钟更新一次 |
+------------------------------------+-------+----------------------------------------+
| vaserver.va[1...n].bigtaskname | 同va0 | 同va0 |
| | | |
| ... | | |
| | | |
| vaserver.va[1...n].sendresultcount | | |
+------------------------------------+-------+----------------------------------------+
| vaserver.license | int | 授权状态,check license后更新 |
+------------------------------------+-------+----------------------------------------+
修订历史 修订历史
================ ================
2018.10.24
------------
1. 错别字修改,ansible的脚本叫playbook不是playback
2. 增加4.4 4.5自定义监测项相关说明
3. 增加vproc使用方法和原理
4. 离线安装包更新,增加了vaserver的几个自定义监控项:
- 增加zabbix_agent_proxy_tx1/bin/vproc 。
- zabbix_agent_proxy_tx1/etc/zabbix_agentd.conf和zabbix_agent_proxy_tx1/etc/zabbix_agentd.conf.d更新
5. 增加zabbix监控模板: smb://192.168.9.1/公共模块/繁星/繁星二代/自检系统/zabbix_template 。新部署的zabbix将模板导入即可
2018.10.17 2018.10.17
------------ ------------
......
...@@ -198,14 +198,25 @@ ...@@ -198,14 +198,25 @@
</li> </li>
<li class="toctree-l2"><a class="reference internal" href="40-zabbix.html#id6">4.3. 使用</a><ul> <li class="toctree-l2"><a class="reference internal" href="40-zabbix.html#id6">4.3. 使用</a><ul>
<li class="toctree-l3"><a class="reference internal" href="40-zabbix.html#quick-start">4.3.1. quick start</a></li> <li class="toctree-l3"><a class="reference internal" href="40-zabbix.html#quick-start">4.3.1. quick start</a></li>
<li class="toctree-l3"><a class="reference internal" href="40-zabbix.html#id7">4.3.2. 模板</a></li>
</ul>
</li>
<li class="toctree-l2"><a class="reference internal" href="40-zabbix.html#id8">4.4. 自定义监测项</a><ul>
<li class="toctree-l3"><a class="reference internal" href="40-zabbix.html#id9">4.4.1. 繁星增加自定义监测项典型流程</a></li>
<li class="toctree-l3"><a class="reference internal" href="40-zabbix.html#vproc">4.4.2. vproc</a></li>
</ul>
</li>
<li class="toctree-l2"><a class="reference internal" href="40-zabbix.html#id10">4.5. 自定义监测项列表</a><ul>
<li class="toctree-l3"><a class="reference internal" href="40-zabbix.html#vaserver">4.5.1. VAServer</a></li>
</ul> </ul>
</li> </li>
</ul> </ul>
</li> </li>
<li class="toctree-l1"><a class="reference internal" href="99-history.html">5. 修订历史</a><ul> <li class="toctree-l1"><a class="reference internal" href="99-history.html">5. 修订历史</a><ul>
<li class="toctree-l2"><a class="reference internal" href="99-history.html#id2">5.1. 2018.10.17</a></li> <li class="toctree-l2"><a class="reference internal" href="99-history.html#id2">5.1. 2018.10.24</a></li>
<li class="toctree-l2"><a class="reference internal" href="99-history.html#id3">5.2. 2018.10.10</a></li> <li class="toctree-l2"><a class="reference internal" href="99-history.html#id3">5.2. 2018.10.17</a></li>
<li class="toctree-l2"><a class="reference internal" href="99-history.html#id4">5.3. 2018.10.09</a></li> <li class="toctree-l2"><a class="reference internal" href="99-history.html#id4">5.3. 2018.10.10</a></li>
<li class="toctree-l2"><a class="reference internal" href="99-history.html#id5">5.4. 2018.10.09</a></li>
</ul> </ul>
</li> </li>
</ul> </ul>
......
Search.setIndex({docnames:["10-summary","20-ansible","30-elk","40-zabbix","99-history","index"],envversion:53,filenames:["10-summary.rst","20-ansible.rst","30-elk.rst","40-zabbix.rst","99-history.rst","index.rst"],objects:{},objnames:{},objtypes:{},terms:{"0\u914d\u7f6e":5,"133\u7684\u8bbe\u5907\u4e0a\u65e5\u5fd7\u6587\u4ef6\u8def\u5f84\u4e2d\u5305\u542b":2,"1\u8bf4\u660e\u5931\u8d25\u4e86":3,"4023a747a01a":3,"4\u7248\u672c\u6e90\u7801\u7f16\u8bd1\u7684":4,"\u4e00\u4e2a\u7e41\u661f\u67094\u4e2a\u7f51\u53e3":0,"\u4e00\u4e9b\u5b9a\u4e49\u597d\u7684item\u4e0d\u652f\u6301":4,"\u4e00\u8def\u56de\u8f66":1,"\u4e0a\u4f20\u6587\u4ef6\u5939":1,"\u4e0b\u9762\u4e24\u4e2a\u955c\u50cf\u4e0d\u9700\u8981\u547d\u540d":3,"\u4e0b\u9762\u5217\u51fa\u51e0\u4e2a\u4f7f\u7528\u5b9e\u4f8b":2,"\u4e0b\u9762\u7684\u8bf4\u660e\u53ea\u80fd\u4f5c\u4e3a\u53c2\u8003":3,"\u4e0d\u5b89\u5168":1,"\u4e0d\u9700\u8981\u8f93\u5165\u5bc6\u7801\u5c31\u80fd\u767b\u5f55\u5219\u8bf4\u660e\u6210\u529f":1,"\u4e0e\u5176\u4ed6\u5b50\u82af\u7247\u7ec4\u6210\u5185\u90e8\u5b50\u7f51\u7edc":0,"\u4e0ezabbix_proxy\u4e00\u8d77\u5b89\u88c5":4,"\u4e2d":2,"\u4e2d\u6587\u8bf4\u660e\u6587\u6863":1,"\u4e2d\u76843\u4e2a\u811a\u672c":3,"\u4e3b\u8282\u70b9":0,"\u4e3b\u8282\u70b9\u8fd0\u884c\u7684\u662fproxi":3,"\u4e3b\u82af\u7247\u6709\u53cc\u7f51\u53e3":0,"\u4e5f\u53ef\u4ee5\u7528root\u8d26\u6237":1,"\u4ea4\u4e92\u5f0f\u7528\u6237\u540d\u5bc6\u7801\u65b9\u5f0f":1,"\u4ec5\u4ee5\u4e0a\u914d\u7f6e":2,"\u4ece\u6e90\u7801\u62f7\u8d1d\u5230apache2":3,"\u4ece\u8282\u70b9":0,"\u4ee3\u53f7":0,"\u4ee3\u7406\u8f6c\u53d1":2,"\u4ee5\u4e0a\u4e24\u6761\u6307\u4ee4\u7ed3\u5408":1,"\u4ee5\u4e3b\u673a":2,"\u4f18\u70b9\u662f\u53cd\u9988\u66f4\u6e05\u6670":1,"\u4f1a\u5411192":1,"\u4f1a\u653e\u5728":3,"\u4f46\u662flogstash\u662fjava\u7a0b\u5e8f":2,"\u4f46\u8fd9\u4e2a\u65b9\u6cd5\u8282\u7701\u4e86\u5bf9\u6bcf\u4e2a\u4e3b\u673a\u6267\u884cssh":1,"\u4f5c\u4e3a\u96c6\u7fa4\u7ba1\u7406\u5de5\u5177":1,"\u4f7f\u5176\u53ef\u4ee5\u7528root\u8d26\u6237\u8fd0\u884c":4,"\u4f7f\u7528":5,"\u4f7f\u7528\u4e3b\u8282\u70b9\u5bf9\u4ece\u8282\u70b9\u6279\u91cf\u63a7\u5236":0,"\u4f7f\u7528ansibl":1,"\u4f7f\u7528ansible\u63d0\u4f9b\u7684modul":1,"\u4f7f\u7528docker\u5b89\u88c5":5,"\u4f7f\u7528svn\u6216git\u5171\u540c\u7ef4\u62a4\u6b64\u6587\u6863":0,"\u4fdd\u5b58":1,"\u4fee\u6539":2,"\u4fee\u6539\u4e86zabbix_agent\u5b89\u88c5\u65b9\u6cd5":4,"\u4fee\u6539\u5b8c\u91cd\u542f\u8fdb\u7a0b":3,"\u4fee\u6539\u5b8cservic":[],"\u4fee\u6539\u7cfb\u7edf\u53c2\u6570":2,"\u4fee\u8ba2\u5386\u53f2":5,"\u5047\u8bbe\u662f":3,"\u516c\u5171\u6a21\u5757":[1,2,3],"\u516c\u53f8\u5185\u90e8\u4f7f\u7528\u8fd9\u79cd\u914d\u7f6e\u65b9\u6cd5":1,"\u5173\u952e\u5b57\u7b49\u7b49\u7ec4\u5408\u6761\u4ef6":2,"\u5176\u4ed6\u4f7f\u7528\u6280\u5de7\u5728\u4e0b\u9762\u8865\u5145":2,"\u5176\u4ed6\u5e73\u53f0\u9700\u6309\u7167\u4e0b\u9762\u6b65\u9aa4\u7f16\u8bd1":2,"\u5176\u4ed6\u914d\u7f6e\u9ed8\u8ba4\u5373\u53ef":3,"\u5199python\u6216shell\u811a\u672c":1,"\u5219\u624b\u52a8\u547d\u540d":3,"\u521b\u5efa\u5b8c\u6bd5\u540e":2,"\u521b\u5efaindex":2,"\u521d\u7ea7\u4f7f\u7528\u65b9\u6cd5":1,"\u5220\u9664":2,"\u5229\u7528\u641c\u7d22\u680f\u548cadd":2,"\u5229\u7528ansible\u7684command\u6a21\u5757\u5c06\u811a\u672c\u548c\u6240\u9700\u6587\u4ef6\u4e0a\u4f20":1,"\u5229\u7528api\u6279\u91cf\u6dfb\u52a0\u4e3b\u673a":3,"\u524d\u7aef\u5c06\u5176\u6362\u6210\u8f7b\u91cf\u7ea7\u7684filebeat":2,"\u52a0\u8f7d\u5b8c\u6bd5":3,"\u52a0\u8f7d\u955c\u50cf":3,"\u52a8\u6001\u7ba1\u7406\u76d1\u6d4b\u9879\u7b49\u529f\u80fd":3,"\u5305\u542b\u4e86\u5f88\u591alinux\u7684\u76d1\u6d4b\u9879":3,"\u5347\u7ea7\u72b6\u6001":1,"\u5360\u7528\u5185\u5b58\u8d44\u6e90\u6bd4\u8f83\u5927":2,"\u53c2\u8003":3,"\u53c2\u8003\u914d\u7f6e\u6587\u4ef6\u4e2d\u7684starnet2\u7ec4":1,"\u53d1\u73b0\u540d\u5b57\u548c\u7248\u672c\u90fd\u662fnone":3,"\u53ea\u6709\u4e3b\u8282\u70b9\u4e0e\u5916\u90e8\u7f51\u7edc\u8054\u901a":0,"\u53ef\u4e0e\u5916\u90e8\u7f51\u7edc\u8054\u901a":0,"\u53ef\u4ee5\u5728\u8fc7\u6ee4\u6761\u4ef6\u9009\u62e9\u611f\u5174\u8da3\u7684\u4e3b\u673a\u548c\u68c0\u6d4b\u9879\u7ec4":3,"\u53ef\u4ee5\u5f00\u673a\u81ea\u542f\u52a8":[],"\u53ef\u4ee5\u6253\u5f00monitor":3,"\u53ef\u4ee5\u70b9graph\u770b\u6570\u503c\u5386\u53f2\u6298\u7ebf\u56fe":3,"\u53ef\u4ee5\u770b\u5230\u6700\u540e\u7684\u503c":3,"\u53ef\u67e5\u770b\u6240\u6709\u6a21\u5757":1,"\u53ef\u6ee1\u8db3\u5927\u90e8\u5206\u9700\u6c42":1,"\u53ef\u914d\u7f6e\u591a\u4e2a":2,"\u540e\u7eed\u5c31\u53ef\u4ee5\u514d\u5bc6\u767b\u9646\u4e86":1,"\u540e\u7eed\u6dfb\u52a0\u5982\u4f55\u81ea\u5b9a\u4e49\u76d1\u6d4b\u9879":3,"\u5426\u5219\u4f1a\u62a5\u9519":1,"\u5426\u5219\u8fd0\u884c\u4f1a\u62a5\u9519":2,"\u542f\u52a8\u4efb\u52a1\u65f6":[],"\u547d\u4ee4\u884c":3,"\u5728\u4e3b\u673a\u4e0a\u6267\u884cshell\u547d\u4ee4":1,"\u5728\u5b89\u5168\u8981\u6c42\u9ad8\u7684\u73af\u5883\u4e2d\u7981\u6b62\u4f7f\u7528":1,"\u5728\u6267\u884c\u547d\u4ee4\u524d":1,"\u5728\u672b\u5c3e\u589e\u52a0\u4e0b\u9762\u914d\u7f6e":2,"\u5728\u6bcf\u6b21\u542f\u52a8\u5bb9\u5668\u7684\u65f6\u5019\u4f1a\u5c06\u5fc5\u8981\u53c2\u6570\u4f20\u5165":3,"\u5728\u7e41\u661f\u4e2d\u589e\u52a0ansibl":1,"\u5728\u811a\u672c\u4e2d\u7f16\u5199\u590d\u6742\u7684\u6307\u4ee4\u7ec4\u5408":1,"\u5728\u81ea\u5df1\u4e3b\u673a\u4e0a\u5b89\u88c5":1,"\u5728\u9ed8\u8ba4\u60c5\u51b5\u4e0b\u8fd9\u6837\u586b\u5199":3,"\u5728discover\u4e2d\u53ef\u4ee5\u770b\u5230\u65e5\u5fd7\u5185\u5bb9\u4e86":2,"\u5728kibana\u641c\u7d22\u65f6\u53ef\u4ee5\u4ee5beat":2,"\u5728zabbix_ag":3,"\u5751\u591a":5,"\u5757":2,"\u586b\u5199\u4e3b\u8282\u70b9ip":3,"\u589e\u52a0\u4e86watchmen\u5404\u7ec4\u4ef6\u6700\u57fa\u672c\u7684\u5b89\u88c5":4,"\u5907\u6ce8":[],"\u591a\u957f\u95f4\u9694\u4ecezabbix_server\u62c9\u53d6\u914d\u7f6e":3,"\u5982\u679c\u4e0d\u4e00\u81f4":2,"\u5982\u679c\u60f3\u6709\u76ee\u7684\u7684\u67e5\u8be2\u76d1\u6d4b\u9879\u72b6\u6001":3,"\u5982\u679c\u662f\u4f7f\u7528instal":3,"\u5982\u679c\u6709filebeat\u4e0a\u62a5\u65e5\u5fd7":2,"\u5982\u679cload\u540e\u8fd0\u884cdock":3,"\u5b89\u88c5":5,"\u5b9a\u65f6\u4efb\u52a1\u7b49\u7b49":1,"\u5bc6\u7801\u9700\u8981\u5df2\u660e\u6587\u5378\u8f7d\u914d\u7f6e\u4e2d":1,"\u5bf9\u5e944\u9897\u4e3b\u82af\u7247":0,"\u5c06\u5185\u5bb9\u9010\u6e10\u5b8c\u5584":0,"\u5c06\u672c\u673a\u6240\u67099200\u7aef\u53e3\u6570\u636e\u8f6c\u53d1\u81f3\u670d\u52a1\u56689200\u7aef\u53e3":2,"\u5c06\u81ea\u5df1\u7684\u4f7f\u7528\u5b9e\u4f8b":0,"\u5c06module\u7ec4\u5408\u6267\u884c":1,"\u5c31\u80fd\u6ee1\u8db3\u7edd\u5927\u591a\u6570\u9700\u6c42":2,"\u5c4f\u5e55\u4f1a\u8fd4\u56de\u955c\u50cf\u7684id":3,"\u5e38\u7528\u6a21\u5757\u4f7f\u7528\u65b9\u6cd5":1,"\u5e42\u6027":1,"\u5e76\u4e14ansible\u90e8\u7f72\u5728\u4e3b\u8282\u70b9":0,"\u5efa\u7acbzabbix\u6570\u636e\u5e93":3,"\u5efa\u7acbzabbix\u7528\u6237":3,"\u5efa\u8bae\u4f7f\u7528\u6b64\u65b9\u5f0f":5,"\u5efa\u8bae\u901a\u8bfb\u4e00\u904d\u4e2d\u6587\u8bf4\u660e\u6587\u6863":1,"\u5f00\u53d1\u4eba\u5458":0,"\u5f00\u653e\u6240\u6709ip\u8bbf\u95ee":2,"\u5fc3\u5f97\u8bb0\u5f55\u5728\u6587\u6863\u4e2d":0,"\u601d\u8def\u6982\u8ff0\u89c1":0,"\u6211\u4eec\u53ef\u4ee5\u7528\u5b83\u83b7\u5f97\u5b50\u8282\u70b9\u7684\u72b6\u6001":1,"\u6211\u4eec\u6709\u4e09\u79cd\u4f7f\u7528\u65b9\u6cd5":1,"\u6211\u7528\u7f51\u4e0a\u8bf4\u7684apt":3,"\u6211\u80fd\u60f3\u5230\u7684\u9700\u8981\u4f7f\u7528\u6b64\u65b9\u6cd5\u7684\u5e94\u7528\u9014\u5f84":1,"\u6211\u8fd9\u91cc\u7684\u4ecb\u7ecd\u53ea\u662f\u5feb\u901f\u5165\u95e8\u65b9\u6cd5":1,"\u6216\u8005\u5e26\u754c\u9762\u7684postgres\u5ba2\u6237\u7aef\u505a\u4e5f\u884c":3,"\u6240\u4ee5\u6b64\u6587\u6863\u5185\u5bb9\u4e0e\u7e41\u661f2\u4ee3\u6df1\u5ea6\u8026\u5408":0,"\u6240\u4ee5\u91c7\u7528\u6e90\u7801\u65b9\u5f0f\u88c5":3,"\u6240\u4ee5\u9700\u8981\u7528zabbix_proxy\u548chaproxy\u505a\u4ee3\u7406":0,"\u6240\u6709\u4e3b\u673a\u62f7\u8d1d\u4e00\u6b21":1,"\u6267\u884c":1,"\u6267\u884c\u591a\u6761\u6307\u4ee4\u65b9\u5f0f":1,"\u6267\u884c\u811a\u672c":1,"\u6267\u884cplayback":1,"\u6279\u91cf\u63a7\u5236":0,"\u6279\u91cf\u7684":1,"\u6279\u91cf\u914d\u7f6e":1,"\u62a5\u8b66\u7b49":3,"\u62f7\u8d1d\u5230\u6709docker\u7684\u4e3b\u673a\u4e0a":3,"\u62f7\u8d1d\u6587\u4ef6":1,"\u6307\u5b9a\u5bc6\u7801":1,"\u6309\u7167\u63d0\u793a\u4e0b\u4e00\u6b65\u5373\u53ef":3,"\u63a8\u8350\u516c\u53f8\u5185\u90e8\u91c7\u7528\u6b64\u65b9\u5f0f":1,"\u641c\u7d22\u65e5\u5fd7\u7684\u4e3b\u8981\u9875\u9762":2,"\u652f\u6301\u5728\u914d\u7f6e\u6587\u4ef6\u4e2d\u589e\u52a0\u5bc6\u7801\u514d\u8be2\u95ee":1,"\u652f\u6301\u901a\u914d\u7b26\u4f46\u5c42\u7ea7\u683c\u5f0f\u5fc5\u987b\u76f8\u7b26":2,"\u652f\u6301servic":[],"\u652f\u6301sudo\u4e0d\u8be2\u95ee\u5bc6\u7801":1,"\u6539\u62103":4,"\u6539\u6210true":2,"\u653e\u5728\u4e3b\u8282\u70b9\u4e0a\u6267\u884cinstal":1,"\u6570\u636e\u5e93\u5b89\u88c5":3,"\u6587\u4ef6\u540d":2,"\u6587\u4ef6\u5939":1,"\u6587\u4ef6\u5b9e\u4f8b":1,"\u6587\u5b89\u81ea\u68c0\u7cfb\u7edf":0,"\u6587\u6863":0,"\u65b0\u5efa\u6587\u6863":4,"\u65b9\u4fbf\u4f46\u5b89\u5168\u6027\u4f4e":1,"\u65e0\u6cd5\u6210\u529f":3,"\u65e5\u5fd7\u5185\u5bb9\u770b\u8d77\u6765\u4f1a\u6e05\u6670\u4e9b":2,"\u65e5\u5fd7\u5b58\u50a8\u641c\u7d22":2,"\u65e5\u5fd7\u6536\u96c6":[0,2],"\u65e5\u5fd7\u7cfb\u7edf\u670d\u52a1\u7aef":0,"\u65e5\u5fd7\u7cfb\u7edfweb":0,"\u65e5\u5fd7\u7f16\u7801\u683c\u5f0f":2,"\u65e5\u5fd7\u8f6c\u53d1\u4ee3\u7406":0,"\u65f6\u95f4":2,"\u660e\u660e\u662f\u60f3\u7528dc\u6f2b\u753b\u7684watchmen":4,"\u6613\u4e0a\u624b":1,"\u662f\u6700\u65b9\u4fbf\u7684":1,"\u66f4\u65b0\u7a0b\u5e8f":1,"\u6709docker\u79bb\u7ebf\u5305zabbix_dock":3,"\u670d\u52a1\u5668":0,"\u672c\u5730\u5b89\u88c5":5,"\u672c\u673a\u6807\u7b7e":2,"\u672f\u8bed":5,"\u67e5\u627ebeat":2,"\u67e5\u770b\u67d0\u6a21\u5757\u7684\u4f7f\u7528\u65b9\u6cd5":1,"\u68c0\u6d4b\u9879\u8f6c\u53d1\u4ee3\u7406":0,"\u6982\u8ff0":5,"\u6a21\u5757\u540d":1,"\u6a21\u677f\u51b3\u5b9a\u4e86\u6709\u54ea\u4e9b\u76d1\u6d4b\u9879":3,"\u6a21\u677f\u540e\u7eed\u6211\u4eec\u4f1a\u81ea\u5df1\u521b\u5efa":3,"\u6b64\u65b9\u6cd5\u4e0d\u540c\u7684\u673a\u5668\u4e0a\u53ef\u80fd\u9047\u5230\u4e0d\u540c\u7684\u95ee\u9898":3,"\u6b64\u65b9\u6cd5\u5b66\u4e60\u6210\u672c\u4f4e":1,"\u6b64\u65b9\u6cd5\u6700\u9ad8\u7ea7":1,"\u6b64\u65b9\u6cd5\u9700\u8981\u5b89\u88c5sshpass":1,"\u6b64\u65b9\u6cd5\u9700\u8981\u9700\u8981\u5b66\u4e60\u5404module\u7684\u529f\u80fd\u548c\u53c2\u6570":1,"\u6bcf\u9897\u82af\u7247\u6709\u72ec\u7acb\u7684\u64cd\u4f5c\u7cfb\u7edf":0,"\u6bd4\u5982":1,"\u6bd4\u5982\u6279\u91cf\u5347\u7ea7\u670d\u52a1":1,"\u6bd4\u5982copy\u7684backup\u7279\u6027":1,"\u6bd4\u5982problems\u4e2d\u63d0\u793a\u6211\u7684\u4e3b\u673a\u6389\u7ebf\u4e86":3,"\u6c47\u62a5\u901a\u90530\u5206\u6790\u7684\u57fa\u672c\u4fe1\u606f":[],"\u6ce8\u610f\u770bitem\u7684type\u5fc5\u987b\u662fzabbix":3,"\u6ce8\u610fproxi":3,"\u6d41\u7a0b\u638c\u63a7\u66f4\u597d":1,"\u6d4b\u8bd5\u4eba\u5458":0,"\u6d4b\u8bd5\u662f\u5426\u6210\u529f":1,"\u6d4b\u8bd5\u662f\u5426\u8fde\u901a":1,"\u6d4b\u8bd5ping\u6240\u6709\u4e3b\u673a":1,"\u6dfb\u52a0\u6210\u529f":3,"\u6dfb\u52a0host":3,"\u6dfb\u52a0proxi":3,"\u70b9\u5c0fadd\u540e\u518d\u70b9\u5927add":3,"\u70b9add\u6dfb\u52a0\u5230":2,"\u70b9add\u6dfb\u52a0\u6210\u529f":3,"\u70b9template\u914d\u7f6e\u6a21\u677f":3,"\u7136\u540e\u5b89\u88c5sshpass":1,"\u73af\u5883\u4f9d\u8d56\u5b89\u88c5\u6309\u7167\u4ee5\u4e0b\u6b65\u9aa4":3,"\u7528\u6e90\u7801\u5b89\u88c5":3,"\u753140\u9897tx1\u82af\u7247\u7ec4\u6210":0,"\u7531deb\u5305\u5b89\u88c5\u6539\u6210\u7f16\u8bd1\u5b89\u88c5":4,"\u7684\u65e5\u5fd7":2,"\u7684\u884c":2,"\u76d1\u6d4b\u9879\u72b6\u6001\u4e0a\u62a5":0,"\u76ee\u5f55":1,"\u76ee\u6807\u8282\u70b9ip":1,"\u76f4\u63a5\u5c31\u80fd\u8fd0\u884c":2,"\u79bb\u7ebf\u5305\u5df2\u5305\u542b":1,"\u79bb\u7ebf\u5b89\u88c5\u5305":[1,2,3],"\u79d2":3,"\u7b2c\u4e00\u6b21\u8fd0\u884c\u4f1a\u6709\u4e00\u4e9b\u989d\u5916\u6b65\u9aa4":3,"\u7b2c\u4e00\u6b21\u8fdb\u5165discover\u4f1a\u81ea\u52a8\u8df3\u8f6c":2,"\u7e41\u661f":[1,2,3],"\u7e41\u661f2\u4ee3":0,"\u7e41\u661f2\u4ee3\u5df2\u7f16\u8bd1\u597dfilebeat":2,"\u7e41\u661f2\u4ee3\u7f51\u7edc\u9694\u79bb":0,"\u7e41\u661f\u4e8c\u4ee3":[1,2,3],"\u7e41\u661f\u7684\u79bb\u7ebf\u5305\u5df2\u653e\u5728sdv":1,"\u7ea2\u6846\u90fd\u662f\u9700\u8981\u586b\u5199\u4fee\u6539\u7684":3,"\u7ed3\u675f\u4efb\u52a1\u65f6":[],"\u7ed3\u6784":5,"\u7ed9\u8bbe\u5907\u5206\u7ec4":3,"\u7ed9\u955c\u50cf\u547d\u540d":3,"\u7f16\u5199python\u811a\u672c":1,"\u7f16\u8f91":2,"\u81ea\u52a8\u7684\u4f7f\u7528ssh\u8fdc\u7a0b\u5230\u4e3b\u673a\u4e0a\u6267\u884c\u6307\u4ee4":1,"\u81ea\u5b9a\u4e49item":[],"\u81ea\u68c0\u7cfb\u7edf":[1,2,3],"\u81ea\u68c0\u7cfb\u7edf\u601d\u8def\u6982\u8ff0ppt":0,"\u81ea\u884c\u9009\u62e9":3,"\u82af\u7247\u4e4b\u95f4\u7528\u7f51\u7edc\u4e92\u901a":0,"\u8bbf\u95ee\u8def\u5f84":3,"\u8be2\u95ee\u5bc6\u7801":1,"\u8bfb\u53d6":1,"\u8f93\u5165\u5bc6\u7801":1,"\u8fd0\u7ef4\u4eba\u5458\u5747\u4f1a\u7528\u5230":0,"\u8fd0\u884c\u5373\u53ef":3,"\u8fd0\u884c\u65b9\u5f0f":5,"\u8fd0\u884czabbix":3,"\u8fd8\u6709\u5f88\u591a\u5f3a\u5927\u7684\u529f\u80fd":1,"\u8fd9\u662f\u6700\u57fa\u672c\u7684\u4f7f\u7528":3,"\u8fd9\u79cd\u6a21\u5f0f\u53ef\u4ee5\u6279\u91cf\u90e8\u7f72\u7a0b\u5e8f":1,"\u8fd9\u91cc\u5148\u9009\u62e9templat":3,"\u8fd9\u91ccfail":3,"\u8fdb\u5165manag":2,"\u90fd\u662fjava\u7a0b\u5e8f":2,"\u914d\u7f6e":[4,5],"\u914d\u7f6e\u4e24\u4e2a":2,"\u914d\u7f6e\u4e3b\u673a\u5217\u8868":1,"\u914d\u7f6e\u6587\u4ef6\u5728":[],"\u914d\u7f6e\u65e5\u5fd7\u8def\u5f84":2,"\u914d\u7f6eelasticsearch\u7684\u8bbf\u95ee\u5730\u5740":2,"\u91cd\u65b0\u521b\u5efaindex":2,"\u9519\u522b\u5b57\u4fee\u6539":4,"\u9519\u8bef\u4fe1\u606f\u53cd\u9988\u5230web":1,"\u9700\u548czabbix_agent\u914d\u7f6e\u7684hostname\u5bf9\u5e94":3,"\u9700\u8981\u5728\u7cfb\u7edf\u914d\u7f6e\u5f00\u673a\u542f\u52a8":3,"\u9700\u8981\u5728\u81ea\u5df1\u7684\u670d\u52a1\u4e2d\u5229\u7528ansible\u5b9e\u73b0\u6279\u91cf\u63a7\u5236\u529f\u80fd":1,"\u9700\u8981\u5c06\u5404\u5b50\u8282\u70b9\u5347\u7ea7\u8fdb\u5ea6":1,"\u9700\u8981\u89e3\u6790\u53cd\u9988\u4fe1\u606f\u5e76\u6839\u636e\u53cd\u9988\u505a\u51fa\u4e0d\u540c\u53cd\u5e94":1,"\u9700\u8981\u914d\u7f6e\u73af\u5883\u53d8\u91cf":1,"\u975e\u4ea4\u4e92\u5f0f\u7528\u6237\u540d\u5bc6\u7801\u65b9\u5f0f":1,"\u9891\u6b21":[],"\u9f20\u6807\u79fb\u5230messag":2,"agent\u548cproxy\u914d\u7f6e\u6587\u4ef6\u589e\u52a0":4,"ansible\u5de5\u4f5c\u7684\u6d41\u7a0b\u662f":1,"ansible\u6279\u91cf\u63a7\u5236":0,"ansible\u63d0\u4f9b\u4e86\u975e\u5e38\u591a\u7684modul":1,"ansible\u96c6\u7fa4\u7ba1\u7406\u5de5\u5177":5,"api\u548ckibana\u90fd\u652f\u6301lucene\u8bed\u6cd5":2,"conf\u589e\u52a0\u7684item\u7684type\u662fzabbix":3,"dashboard\u53ef\u4ee5\u6d4f\u89c8\u72b6\u6001":3,"dashboard\u53ef\u4ee5\u81ea\u5b9a\u4e49":3,"deb\u7248\u672c\u8f83\u4f4e":4,"discover\u662f\u67e5\u770b":2,"discover\u9875\u9762\u7684\u641c\u7d22\u680f\u652f\u6301\u7684\u67e5\u8be2\u8bed\u6cd5\u540d\u53eblucen":2,"elasticsearch\u5e95\u5c42\u4f7f\u7528lucen":2,"elk\u4e09\u4e2a\u5de5\u7a0b\u4f7f\u7528\u5b98\u65b9\u4e0b\u8f7d\u7684tar":2,"elk\u65e5\u5fd7":0,"elk\u65e5\u5fd7\u7cfb\u7edf":5,"elk\u7ec4\u5408\u662f\u65e5\u5fd7\u7cfb\u7edf\u7684\u7ecf\u5178\u7ec4\u5408":2,"export":1,"filebeat\u4f7f\u7528\u6e90\u7801\u653e\u5728\u4e3b\u673a\u4e0a\u7f16\u8bd1":2,"filebeat\u7f16\u8bd1\u5b89\u88c5\u53c2\u8003":2,"filebeat\u914d\u7f6e":5,"get\u65b9\u5f0f\u88c5":3,"get\u7b49\u7b49":1,"groups\u53ef\u4ee5\u81ea\u5df1\u5efa":3,"gz\u7684\u5305":2,"haproxy\u653e\u5728\u4e3b\u8282\u70b9\u4e0a\u505a\u4ee3\u7406\u8f6c\u53d1":2,"haproxy\u914d\u7f6e":5,"hosts\u4e3b\u673a\u5217\u8868":1,"hosts\u7684\u591a\u7ea7\u5206\u7ec4":1,"images\u5e94\u8be5\u80fd\u663e\u793a":3,"kibana\u8bbf\u95ee\u5730\u5740":2,"kibana\u9875\u9762\u4e0a\u7684\u65e5\u5fd7\u641c\u7d22\u6280\u5de7":5,"management\u4e2d\u4f1a\u81ea\u52a8\u751f\u6210\u7c7b\u4f3c":2,"module\u76f8\u5f53\u4e8eshell\u547d\u4ee4":1,"name\u4e3a8":2,"name\u4e3a\u8fc7\u6ee4\u6761\u4ef6":2,"name\u5fc5\u987b\u548c":3,"null":[],"patterns\u53ef\u67e5\u770b":2,"playback\u5b9e\u4f8b\u5728":1,"playback\u6587\u4ef6\u5185\u5bb9":1,"playback\u65b9\u5f0f":1,"playback\u6bd4shell\u548cpython\u597d\u5199\u4e9b":1,"playback\u76f8\u5f53\u4e8eshell\u811a\u672c":1,"playback\u8bed\u6cd5":1,"proxy\u5fc5\u987b\u9009\u62e9\u6b63\u786e\u7684proxy\u4ee3\u7406":3,"query\u8bed\u6cd5\u53c2\u8003":2,"quickstart\u6587\u6863":4,"select\u9009\u62e9\u4e00\u4e2a\u6a21\u677f":3,"server\u4e3b\u52a8\u83b7\u53d6":3,"sh\u4f1a\u5c06\u914d\u7f6e\u6587\u4ef6\u62f7\u8d1d\u5230":3,"sh\u5373\u53ef":1,"sh\u5df2\u5199\u597d":3,"sh\u811a\u672c\u5b89\u88c5\u7684":3,"ssh\u516c\u94a5\u65b9\u5f0f":1,"true":2,"ubuntu14\u5b89\u88c5golang1":2,"ui\u5c55\u793a":2,"userapp\u4e0b":3,"value\u7c7b\u578b":[],"var":3,"watchman\u6539\u6210watchmen":4,"watchmen\u75313\u4e2a\u7ec4\u4ef6\u7ec4\u6210":0,"watchmen\u7cfb\u7edf":0,"watchmen\u8bd5\u8fd0\u884c\u5728\u7e41\u661f2\u4ee3\u4e0a":0,"web\u754c\u9762":3,"web\u754c\u9762\u4f7f\u7528\u4e0d\u6b63\u5e38":3,"x86_64\u914d\u7f6e":5,"zabbix\u6570\u636e\u5e93":0,"zabbix\u670d\u52a1\u7aef":0,"zabbix\u76d1\u6d4b":0,"zabbix\u76d1\u6d4b\u7cfb\u7edf":5,"zabbix_agent\u662f\u7528deb\u5305\u5b89\u88c5\u7684":[],"zabbix_agent\u914d\u7f6e":5,"zabbix_agent_proxy_tx1\u7684instal":3,"zabbix_agentd\u5b89\u88c5\u5305\u662f\u5728tx1\u4e0a\u7f16\u8bd1\u7684":3,"zabbix_proxy\u5b89\u88c5\u5305\u662f\u5728tx1\u4e0a\u7f16\u8bd1\u7684":3,"zabbix_proxy\u6570\u636e\u5e93\u76ee\u5f55":3,"zabbix_proxy\u914d\u7f6e":5,"zabbix_proxy\u914d\u7f6e\u4e2d\u7684hostname\u76f8\u540c":3,"zabbix_proxy_tx1\u7684instal":[],"zabbix_sender\u62a5\u9519":3,"zabbix_server\u4e3b\u673aip":3,"zabbix_server\u5728docker\u8fd0\u884c":3,"zabbix_server\u914d\u7f6e":5,AND:2,Ops:2,af4434f6332b:3,agent:[],ago:3,all:1,allowroot:[3,4],alpha1:2,ansibl:[0,1],ansible_host_key_check:1,ansible_offline_tx1:1,ansible_playback_exampl:1,ansible_ssh_pass:1,ansible_ssh_us:1,ansible_sudo_pass:1,api:1,apt:1,arg:1,articl:[2,3],bash:1,beat:2,bf422197fafe:3,bind:2,block:[],blog:[2,3],bodi:[],cat:3,cell:[],cfg:2,chdir:1,chmod:1,cnblog:[1,2],column:[],com:[1,2,3],command:1,conf:[2,3],config:2,configfrequ:3,configur:3,contain:[],content:5,copi:1,creat:3,createdb:3,createus:3,csdn:[2,3],data:3,databas:3,dbname:3,desc:[],dest:1,detail:[2,3],dir:1,doc:1,docker:3,dockerrun_zabbix:3,document:3,edit:3,elastic_proxi:2,elasticsearch:[0,5],elk_serv:2,elk_tx1:2,enabl:2,encod:2,etc:[1,2,3],fail:3,fals:1,feifantiyan:2,field:2,filebeat:[0,2],filter:2,fornt:3,from:3,front:3,frontend:3,gbk:2,haproxi:[0,2],haproxy_tx1:2,header:[],home:[1,3],host:[1,2,3],hostnam:3,html:[1,2,3],http:[1,2,3],imag:3,index:[2,5],info:3,instal:[1,3],kei:[],keygen:1,keytrtest:3,kibana:[0,5],kikana:2,lastest:3,linux:[3,5],listen:2,lk142500:2,load:3,local:3,log:2,lucen:2,mai:[],manag:2,manual:3,max_map_count:2,mkdir:1,mode:2,modul:5,monitor:3,month:3,mynam:2,name:[1,2],net:[2,3],network:2,nginx:3,page:5,path:2,pattern:2,pdf:0,pgsql:3,php:3,ping:1,pip:1,playback:1,postgr:[0,3],postgres9:3,postgresql:3,process:3,proxi:3,psql:3,queri:2,quick:5,remot:1,repositori:3,restart:[],root:[2,3],row:[],run:1,schema:3,script:1,sdrp:3,search:5,second:3,select:2,senlinyang:2,server:[2,3],serveract:3,size:3,smb:[1,2,3],sourc:2,span:[],spent:3,sql:3,src:1,ssh:1,starnet1:1,starnet2:1,starnet:1,start:5,sudo:[1,3],sysctl:2,tag:3,tar:3,task:1,tcp:2,tegra:3,text:[],total:3,trapper:3,type:2,ubuntu:[1,3],url:2,user:[1,3],userapp:3,usr:3,va0:[],va1:[],vaserv:[],vasvr:2,vim:1,watchmen:0,web:[0,3],week:3,www:[1,2,3],x86_64:2,yannanxiu:3,yes:1,yml:[1,2],zabbix:[0,3,4],zabbix_ag:[0,3],zabbix_agent_proxy_tx1:3,zabbix_agent_tx1:[],zabbix_agentd:[],zabbix_dock:3,zabbix_front:0,zabbix_proxi:[0,3],zabbix_proxy_tx1:[],zabbix_send:3,zabbix_serv:0,zhaojiedi1992:1,zhaojiedi_linux_032_ansible02:1},titles:["1. \u6982\u8ff0","2. ansible\u96c6\u7fa4\u7ba1\u7406\u5de5\u5177","3. elk\u65e5\u5fd7\u7cfb\u7edf","4. zabbix\u76d1\u6d4b\u7cfb\u7edf","5. \u4fee\u8ba2\u5386\u53f2","Welcome to watchmen\u2019s documentation!"],titleterms:{"0\u914d\u7f6e":2,"\u4f7f\u7528":[1,2,3],"\u4f7f\u7528docker\u5b89\u88c5":3,"\u4fee\u8ba2\u5386\u53f2":4,"\u5751\u591a":3,"\u5b89\u88c5":[1,2,3],"\u5efa\u8bae\u4f7f\u7528\u6b64\u65b9\u5f0f":3,"\u672c\u5730\u5b89\u88c5":3,"\u672f\u8bed":0,"\u6982\u8ff0":0,"\u7ed3\u6784":0,"\u8fd0\u884c\u65b9\u5f0f":3,"\u914d\u7f6e":[1,2,3],"ansible\u96c6\u7fa4\u7ba1\u7406\u5de5\u5177":1,"elk\u65e5\u5fd7\u7cfb\u7edf":2,"filebeat\u914d\u7f6e":2,"haproxy\u914d\u7f6e":2,"kibana\u9875\u9762\u4e0a\u7684\u65e5\u5fd7\u641c\u7d22\u6280\u5de7":2,"x86_64\u914d\u7f6e":2,"zabbix\u76d1\u6d4b\u7cfb\u7edf":3,"zabbix_agent\u914d\u7f6e":3,"zabbix_proxy\u914d\u7f6e":3,"zabbix_server\u914d\u7f6e":3,document:5,elasticsearch:2,indic:5,kibana:2,linux:2,quick:[2,3],start:[2,3],tabl:5,watchmen:5,welcom:5}})
\ No newline at end of file \ No newline at end of file
Search.setIndex({docnames:["10-summary","20-ansible","30-elk","40-zabbix","99-history","index"],envversion:53,filenames:["10-summary.rst","20-ansible.rst","30-elk.rst","40-zabbix.rst","99-history.rst","index.rst"],objects:{},objnames:{},objtypes:{},terms:{"0\u914d\u7f6e":5,"133\u7684\u8bbe\u5907\u4e0a\u65e5\u5fd7\u6587\u4ef6\u8def\u5f84\u4e2d\u5305\u542b":2,"1\u5206\u949f\u66f4\u65b0\u4e00\u6b21":3,"1\u8bf4\u660e\u5931\u8d25\u4e86":3,"4023a747a01a":3,"4\u7248\u672c\u6e90\u7801\u7f16\u8bd1\u7684":4,"5\u81ea\u5b9a\u4e49\u76d1\u6d4b\u9879\u76f8\u5173\u8bf4\u660e":4,"\u4e00\u4e2a\u7e41\u661f\u67094\u4e2a\u7f51\u53e3":0,"\u4e00\u4e9b\u5b9a\u4e49\u597d\u7684item\u4e0d\u652f\u6301":4,"\u4e00\u8def\u56de\u8f66":1,"\u4e0a\u4f20\u6587\u4ef6\u5939":1,"\u4e0a\u62a5\u578b":3,"\u4e0b\u9762\u4e24\u4e2a\u955c\u50cf\u4e0d\u9700\u8981\u547d\u540d":3,"\u4e0b\u9762\u5217\u51fa\u51e0\u4e2a\u4f7f\u7528\u5b9e\u4f8b":2,"\u4e0b\u9762\u7684\u8bf4\u660e\u53ea\u80fd\u4f5c\u4e3a\u53c2\u8003":3,"\u4e0d\u5b89\u5168":1,"\u4e0d\u9700\u8981\u8f93\u5165\u5bc6\u7801\u5c31\u80fd\u767b\u5f55\u5219\u8bf4\u660e\u6210\u529f":1,"\u4e0e\u5176\u4ed6\u5b50\u82af\u7247\u7ec4\u6210\u5185\u90e8\u5b50\u7f51\u7edc":0,"\u4e0ezabbix_proxy\u4e00\u8d77\u5b89\u88c5":4,"\u4e24\u4e2a\u76d1\u6d4b\u9879":3,"\u4e2d":2,"\u4e2d\u6587\u8bf4\u660e\u6587\u6863":1,"\u4e2d\u76843\u4e2a\u811a\u672c":3,"\u4e3b\u8282\u70b9":0,"\u4e3b\u8282\u70b9\u8fd0\u884c\u7684\u662fproxi":3,"\u4e3b\u82af\u7247\u6709\u53cc\u7f51\u53e3":0,"\u4e5f\u53ef\u4ee5\u7528root\u8d26\u6237":1,"\u4ea4\u4e92\u5f0f\u7528\u6237\u540d\u5bc6\u7801\u65b9\u5f0f":1,"\u4ec5\u4ee5\u4e0a\u914d\u7f6e":2,"\u4ece\u6e90\u7801\u62f7\u8d1d\u5230apache2":3,"\u4ece\u8282\u70b9":0,"\u4ee3\u53f7":0,"\u4ee3\u7406\u8f6c\u53d1":2,"\u4ee5\u4e0a\u4e24\u6761\u6307\u4ee4\u7ed3\u5408":1,"\u4ee5\u4e3b\u673a":2,"\u4ee5\u53ca\u80fd\u4ee3\u8868\u4e00\u7ec4\u7684\u6d41\u7a0b":3,"\u4ee5\u7e41\u661f2\u4ee3\u4e3a\u4f8b":3,"\u4efb\u52a1\u540d\u79f0":3,"\u4efb\u52a1id":3,"\u4f18\u70b9\u662f\u53cd\u9988\u66f4\u6e05\u6670":1,"\u4f1a\u5411192":1,"\u4f1a\u653e\u5728":3,"\u4f46\u662flogstash\u662fjava\u7a0b\u5e8f":2,"\u4f46\u8fd9\u4e2a\u65b9\u6cd5\u8282\u7701\u4e86\u5bf9\u6bcf\u4e2a\u4e3b\u673a\u6267\u884cssh":1,"\u4f5c\u4e3a\u96c6\u7fa4\u7ba1\u7406\u5de5\u5177":1,"\u4f7f\u5176\u53ef\u4ee5\u7528root\u8d26\u6237\u8fd0\u884c":4,"\u4f7f\u7528":5,"\u4f7f\u7528\u4e3b\u8282\u70b9\u5bf9\u4ece\u8282\u70b9\u6279\u91cf\u63a7\u5236":0,"\u4f7f\u7528ansibl":1,"\u4f7f\u7528ansible\u63d0\u4f9b\u7684modul":1,"\u4f7f\u7528docker\u5b89\u88c5":5,"\u4f7f\u7528svn\u6216git\u5171\u540c\u7ef4\u62a4\u6b64\u6587\u6863":0,"\u4fdd\u5b58":1,"\u4fee\u6539":2,"\u4fee\u6539\u4e86zabbix_agent\u5b89\u88c5\u65b9\u6cd5":4,"\u4fee\u6539\u5b8c\u91cd\u542f\u8fdb\u7a0b":3,"\u4fee\u6539\u5b8cservic":[],"\u4fee\u6539\u7cfb\u7edf\u53c2\u6570":2,"\u4fee\u6539starnet_tx1_slave_tp\u6a21\u677f":3,"\u4fee\u8ba2\u5386\u53f2":5,"\u5047\u8bbe\u6211\u4eec\u8981\u5728slave\u6a21\u677f\u4e2d\u589e\u52a0vaserver\u7684":3,"\u5047\u8bbe\u662f":3,"\u5047\u8bbe\u662f\u7f16\u53f70":3,"\u516c\u5171\u6a21\u5757":[1,2,3,4],"\u516c\u53f8\u5185\u90e8\u4f7f\u7528\u8fd9\u79cd\u914d\u7f6e\u65b9\u6cd5":1,"\u5173\u952e\u5b57\u7b49\u7b49\u7ec4\u5408\u6761\u4ef6":2,"\u5173\u95ed\u4e00\u4e2ava\u65f6":3,"\u5173\u95ed\u65f6\u91cd\u7f6e\u72b6\u6001":3,"\u5176\u4ed6\u4f7f\u7528\u6280\u5de7\u5728\u4e0b\u9762\u8865\u5145":2,"\u5176\u4ed6\u5e73\u53f0\u9700\u6309\u7167\u4e0b\u9762\u6b65\u9aa4\u7f16\u8bd1":2,"\u5176\u4ed6\u914d\u7f6e\u9ed8\u8ba4\u5373\u53ef":3,"\u5199":3,"\u5199python\u6216shell\u811a\u672c":1,"\u5206\u6790\u901a\u90530\u7684\u4efb\u52a1\u540d\u79f0":3,"\u5219\u624b\u52a8\u547d\u540d":3,"\u521b\u5efa\u5b8c\u6bd5\u540e":2,"\u521b\u5efaindex":2,"\u521d\u7ea7\u4f7f\u7528\u65b9\u6cd5":1,"\u5220\u9664":2,"\u5220\u9664root_vproc":3,"\u5229\u7528\u641c\u7d22\u680f\u548cadd":2,"\u5229\u7528ansible\u7684command\u6a21\u5757\u5c06\u811a\u672c\u548c\u6240\u9700\u6587\u4ef6\u4e0a\u4f20":1,"\u5229\u7528api\u6279\u91cf\u6dfb\u52a0\u4e3b\u673a":3,"\u524d\u7aef\u5c06\u5176\u6362\u6210\u8f7b\u91cf\u7ea7\u7684filebeat":2,"\u524d\u9762\u662f\u591a\u7ea7\u76ee\u5f55":3,"\u52a0\u8f7d\u5b8c\u6bd5":3,"\u52a0\u8f7d\u955c\u50cf":3,"\u52a8\u6001\u7ba1\u7406\u76d1\u6d4b\u9879\u7b49\u529f\u80fd":3,"\u5305\u542b\u4e86\u5f88\u591alinux\u7684\u76d1\u6d4b\u9879":3,"\u5347\u7ea7\u72b6\u6001":1,"\u5355\u4e2a\u76d1\u6d4b\u9879\u66f4\u65b0\u72b6\u6001\u9891\u7387\u4e0d\u5b9c\u8fc7\u5feb":3,"\u5360\u7528\u5185\u5b58\u8d44\u6e90\u6bd4\u8f83\u5927":2,"\u5373\u4f7f\u6ca1\u6709zabbix":3,"\u53c2\u8003":3,"\u53c2\u8003\u914d\u7f6e\u6587\u4ef6\u4e2d\u7684starnet2\u7ec4":1,"\u53d1\u51fa\u4e86\u591a\u5c11\u4e8b\u4ef6":3,"\u53d1\u73b0\u540d\u5b57\u548c\u7248\u672c\u90fd\u662fnone":3,"\u53ea\u6709\u4e3b\u8282\u70b9\u4e0e\u5916\u90e8\u7f51\u7edc\u8054\u901a":0,"\u53ef\u4e0e\u5916\u90e8\u7f51\u7edc\u8054\u901a":0,"\u53ef\u4ee5\u5728\u8fc7\u6ee4\u6761\u4ef6\u9009\u62e9\u611f\u5174\u8da3\u7684\u4e3b\u673a\u548c\u68c0\u6d4b\u9879\u7ec4":3,"\u53ef\u4ee5\u5f00\u673a\u81ea\u542f\u52a8":[],"\u53ef\u4ee5\u6253\u5f00monitor":3,"\u53ef\u4ee5\u70b9graph\u770b\u6570\u503c\u5386\u53f2\u6298\u7ebf\u56fe":3,"\u53ef\u4ee5\u7528\u547d\u4ee4\u884c\u67e5\u8be2\u68c0\u6d4b\u9879\u7684\u503c":3,"\u53ef\u4ee5\u770b\u5230\u6700\u540e\u7684\u503c":3,"\u53ef\u67e5\u770b\u6240\u6709\u6a21\u5757":1,"\u53ef\u6ee1\u8db3\u5927\u90e8\u5206\u9700\u6c42":1,"\u53ef\u914d\u7f6e\u591a\u4e2a":2,"\u540cva0":3,"\u540e\u7eed\u5c31\u53ef\u4ee5\u514d\u5bc6\u767b\u9646\u4e86":1,"\u540e\u7eed\u6dfb\u52a0\u5982\u4f55\u81ea\u5b9a\u4e49\u76d1\u6d4b\u9879":3,"\u540e\u9762\u662fkey\u503c":3,"\u5426\u5219\u4f1a\u62a5\u9519":1,"\u5426\u5219\u8fd0\u884c\u4f1a\u62a5\u9519":2,"\u542f\u52a8\u4efb\u52a1\u65f6":[],"\u542f\u52a8\u65f6":3,"\u547d\u4ee4\u884c":3,"\u5728":3,"\u5728\u4e3b\u673a\u4e0a\u6267\u884cshell\u547d\u4ee4":1,"\u5728\u5b89\u5168\u8981\u6c42\u9ad8\u7684\u73af\u5883\u4e2d\u7981\u6b62\u4f7f\u7528":1,"\u5728\u6267\u884c\u547d\u4ee4\u524d":1,"\u5728\u672b\u5c3e\u589e\u52a0\u4e0b\u9762\u914d\u7f6e":2,"\u5728\u6bcf\u6b21\u542f\u52a8\u5bb9\u5668\u7684\u65f6\u5019\u4f1a\u5c06\u5fc5\u8981\u53c2\u6570\u4f20\u5165":3,"\u5728\u7e41\u661f\u4e2d\u589e\u52a0ansibl":1,"\u5728\u811a\u672c\u4e2d\u7f16\u5199\u590d\u6742\u7684\u6307\u4ee4\u7ec4\u5408":1,"\u5728\u81ea\u5df1\u4e3b\u673a\u4e0a\u5b89\u88c5":1,"\u5728\u8fd9\u91cc\u7528vproc\u5de5\u5177\u8fdb\u884c\u67e5\u8be2":3,"\u5728\u9ed8\u8ba4\u60c5\u51b5\u4e0b\u8fd9\u6837\u586b\u5199":3,"\u5728discover\u4e2d\u53ef\u4ee5\u770b\u5230\u65e5\u5fd7\u5185\u5bb9\u4e86":2,"\u5728kibana\u641c\u7d22\u65f6\u53ef\u4ee5\u4ee5beat":2,"\u5728zabbix":3,"\u5728zabbix_ag":3,"\u5728zabbix_agentd\u7aef\u914d\u7f6e":3,"\u5747\u91c7\u7528\u67e5\u8be2\u578b":3,"\u5751\u591a":5,"\u5757":2,"\u586b\u5199\u4e3b\u8282\u70b9ip":3,"\u586b\u5199\u5177\u4f53\u4fe1\u606f\u5e76\u4fdd\u5b58":3,"\u589e\u52a04":4,"\u589e\u52a0\u4e86vaserver\u7684\u51e0\u4e2a\u81ea\u5b9a\u4e49\u76d1\u63a7\u9879":4,"\u589e\u52a0\u4e86watchmen\u5404\u7ec4\u4ef6\u6700\u57fa\u672c\u7684\u5b89\u88c5":4,"\u589e\u52a0vproc\u4f7f\u7528\u65b9\u6cd5\u548c\u539f\u7406":4,"\u589e\u52a0zabbix\u76d1\u63a7\u6a21\u677f":4,"\u589e\u52a0zabbix_agent_proxy_tx1":4,"\u5907\u6ce8":[],"\u5916\u90e8\u53ef\u8bfb\u53d6\u6587\u4ef6\u503c":3,"\u591a\u957f\u95f4\u9694\u4ecezabbix_server\u62c9\u53d6\u914d\u7f6e":3,"\u5927\u4efb\u52a1\u540d\u79f0":[],"\u5927\u4efb\u52a1id":[],"\u5982\u679c\u4e0d\u4e00\u81f4":2,"\u5982\u679c\u60f3\u6709\u76ee\u7684\u7684\u67e5\u8be2\u76d1\u6d4b\u9879\u72b6\u6001":3,"\u5982\u679c\u662f\u4f7f\u7528instal":3,"\u5982\u679c\u6709filebeat\u4e0a\u62a5\u65e5\u5fd7":2,"\u5982\u679c\u6ca1\u6709\u53ef\u65b0\u5efa\u6587\u4ef6":3,"\u5982\u679c\u6ca1\u6709\u7279\u6b8a\u9700\u6c42":3,"\u5982\u679c\u6ca1\u67e5\u5230":3,"\u5982\u679cload\u540e\u8fd0\u884cdock":3,"\u5b89\u88c5":5,"\u5b9a\u65f6\u4efb\u52a1\u7b49\u7b49":1,"\u5b9e\u9645\u63a5\u6536\u5230\u6d41\u540e\u518d\u66f4\u65b0\u72b6\u6001":3,"\u5bc6\u7801\u9700\u8981\u5df2\u660e\u6587\u5378\u8f7d\u914d\u7f6e\u4e2d":1,"\u5bf9\u5916\u53d1\u9001\u4e86\u591a\u5c11\u6761\u7ed3\u679c":3,"\u5bf9\u5e944\u9897\u4e3b\u82af\u7247":0,"\u5c06\u5185\u5bb9\u9010\u6e10\u5b8c\u5584":0,"\u5c06\u672c\u673a\u6240\u67099200\u7aef\u53e3\u6570\u636e\u8f6c\u53d1\u81f3\u670d\u52a1\u56689200\u7aef\u53e3":2,"\u5c06\u81ea\u5df1\u7684\u4f7f\u7528\u5b9e\u4f8b":0,"\u5c06module\u7ec4\u5408\u6267\u884c":1,"\u5c06root_vproc":3,"\u5c31\u80fd\u6ee1\u8db3\u7edd\u5927\u591a\u6570\u9700\u6c42":2,"\u5c4f\u5e55\u4f1a\u8fd4\u56de\u955c\u50cf\u7684id":3,"\u5e38\u7528\u6a21\u5757\u4f7f\u7528\u65b9\u6cd5":1,"\u5e42\u6027":1,"\u5e76\u4e14\u5e94\u7528\u7a0b\u5e8f\u5199\u72b6\u6001\u7684\u64cd\u4f5c\u4e0ezabbix\u89e3\u8026":[],"\u5e76\u4e14ansible\u90e8\u7f72\u5728\u4e3b\u8282\u70b9":0,"\u5e94\u7528\u7a0b\u5e8f\u4f7f\u7528vproc\u5c06\u72b6\u6001\u5199\u5230\u6587\u4ef6":3,"\u5e94\u7528\u7a0b\u5e8f\u5199\u72b6\u6001\u7684\u64cd\u4f5c\u4e0ezabbix\u89e3\u8026":3,"\u5e94\u7528\u7a0b\u5e8f\u8c03\u7528vproc\u811a\u672c\u5c06\u76d1\u6d4b\u9879\u72b6\u6001\u503c\u6301\u7eed\u66f4\u65b0\u5230\u6307\u5b9a\u6587\u4ef6\u4e2d":3,"\u5e94\u8c03\u7528":3,"\u5efa\u7acbzabbix\u6570\u636e\u5e93":3,"\u5efa\u7acbzabbix\u7528\u6237":3,"\u5efa\u8bae\u4f7f\u7528\u6b64\u65b9\u5f0f":5,"\u5efa\u8bae\u5728\u7a0b\u5e8f":3,"\u5efa\u8bae\u901a\u8bfb\u4e00\u904d\u4e2d\u6587\u8bf4\u660e\u6587\u6863":1,"\u5efa\u8bae\u95f4\u9694\u65f6\u95f41\u5206\u949f\u4ee5\u4e0a":3,"\u5f00\u53d1\u4eba\u5458":0,"\u5f00\u653e\u6240\u6709ip\u8bbf\u95ee":2,"\u5f97\u77e5\u5e94\u7528\u7a0b\u5e8f\u7684\u8fd0\u884c\u60c5\u51b5":3,"\u5fc3\u5f97\u8bb0\u5f55\u5728\u6587\u6863\u4e2d":0,"\u5fc5\u987b\u8ddfweb\u4e0a\u914d\u7f6e\u7684\u76f8\u540c":3,"\u601d\u8def\u6982\u8ff0\u89c1":0,"\u6211\u4eec\u53ef\u4ee5\u7528\u5b83\u83b7\u5f97\u5b50\u8282\u70b9\u7684\u72b6\u6001":1,"\u6211\u4eec\u5728\u8c03\u8bd5\u7a0b\u5e8f\u65f6\u4e5f\u53ef\u4ee5\u4f7f\u7528vproc":3,"\u6211\u4eec\u6709\u4e09\u79cd\u4f7f\u7528\u65b9\u6cd5":1,"\u6211\u7528\u7f51\u4e0a\u8bf4\u7684apt":3,"\u6211\u80fd\u60f3\u5230\u7684\u9700\u8981\u4f7f\u7528\u6b64\u65b9\u6cd5\u7684\u5e94\u7528\u9014\u5f84":1,"\u6211\u8fd9\u91cc\u7684\u4ecb\u7ecd\u53ea\u662f\u5feb\u901f\u5165\u95e8\u65b9\u6cd5":1,"\u6216\u8005\u5e26\u754c\u9762\u7684postgres\u5ba2\u6237\u7aef\u505a\u4e5f\u884c":3,"\u6240\u4ee5\u6b64\u6587\u6863\u5185\u5bb9\u4e0e\u7e41\u661f2\u4ee3\u6df1\u5ea6\u8026\u5408":0,"\u6240\u4ee5\u91c7\u7528\u6e90\u7801\u65b9\u5f0f\u88c5":3,"\u6240\u4ee5\u9700\u8981\u7528zabbix_proxy\u548chaproxy\u505a\u4ee3\u7406":0,"\u6240\u6709\u4e3b\u673a\u62f7\u8d1d\u4e00\u6b21":1,"\u6240\u6709key\u503c\u5747\u91c7\u7528":3,"\u6267\u884c":1,"\u6267\u884c\u591a\u6761\u6307\u4ee4\u65b9\u5f0f":1,"\u6267\u884c\u811a\u672c":1,"\u6267\u884cplaybook":1,"\u6279\u91cf\u63a7\u5236":0,"\u6279\u91cf\u7684":1,"\u6279\u91cf\u914d\u7f6e":1,"\u62a5\u8b66\u7b49":3,"\u62f7\u8d1d\u5230\u6709docker\u7684\u4e3b\u673a\u4e0a":3,"\u62f7\u8d1d\u6587\u4ef6":1,"\u62ffvaserver\u4e3e\u4f8b":3,"\u6307\u5b9a\u5bc6\u7801":1,"\u6309\u7167\u63d0\u793a\u4e0b\u4e00\u6b65\u5373\u53ef":3,"\u6388\u6743\u72b6\u6001":3,"\u63a8\u8350\u516c\u53f8\u5185\u90e8\u91c7\u7528\u6b64\u65b9\u5f0f":1,"\u641c\u7d22\u65e5\u5fd7\u7684\u4e3b\u8981\u9875\u9762":2,"\u652f\u6301\u5728\u914d\u7f6e\u6587\u4ef6\u4e2d\u589e\u52a0\u5bc6\u7801\u514d\u8be2\u95ee":1,"\u652f\u6301\u901a\u914d\u7b26\u4f46\u5c42\u7ea7\u683c\u5f0f\u5fc5\u987b\u76f8\u7b26":2,"\u652f\u6301servic":[],"\u652f\u6301sudo\u4e0d\u8be2\u95ee\u5bc6\u7801":1,"\u6539\u62103":4,"\u6539\u6210true":2,"\u653e\u5728\u4e3b\u8282\u70b9\u4e0a\u6267\u884cinstal":1,"\u6570\u636e\u5e93\u5b89\u88c5":3,"\u6587\u4ef6\u5185\u5bb9\u4e3avalue1":3,"\u6587\u4ef6\u540d":2,"\u6587\u4ef6\u5939":1,"\u6587\u4ef6\u5b9e\u4f8b":1,"\u6587\u5b89\u81ea\u68c0\u7cfb\u7edf":0,"\u6587\u6863":0,"\u65b0\u5efa\u6587\u6863":4,"\u65b0\u90e8\u7f72\u7684zabbix\u5c06\u6a21\u677f\u5bfc\u5165\u5373\u53ef":4,"\u65b9\u4fbf\u4f46\u5b89\u5168\u6027\u4f4e":1,"\u65e0\u6cd5\u6210\u529f":3,"\u65e5\u5fd7\u5185\u5bb9\u770b\u8d77\u6765\u4f1a\u6e05\u6670\u4e9b":2,"\u65e5\u5fd7\u5b58\u50a8\u641c\u7d22":2,"\u65e5\u5fd7\u6536\u96c6":[0,2],"\u65e5\u5fd7\u7cfb\u7edf\u670d\u52a1\u7aef":0,"\u65e5\u5fd7\u7cfb\u7edfweb":0,"\u65e5\u5fd7\u7f16\u7801\u683c\u5f0f":2,"\u65e5\u5fd7\u8f6c\u53d1\u4ee3\u7406":0,"\u65f6\u95f4":2,"\u660e\u660e\u662f\u60f3\u7528dc\u6f2b\u753b\u7684watchmen":4,"\u6613\u4e0a\u624b":1,"\u662f\u5426\u6388\u6743":3,"\u662f\u5426\u70b9\u64ad\u6210\u529f":3,"\u662f\u6700\u65b9\u4fbf\u7684":1,"\u66f4\u65b0\u7a0b\u5e8f":1,"\u6709\u52a9\u4e8e\u8c03\u8bd5":3,"\u6709docker\u79bb\u7ebf\u5305zabbix_dock":3,"\u6709vaserv":3,"\u670d\u52a1\u5668":0,"\u672b\u7aefitem\u4e3a\u6587\u4ef6":3,"\u672c\u5730\u5b89\u88c5":5,"\u672c\u673a\u6807\u7b7e":2,"\u672f\u8bed":5,"\u6784\u5efa\u4e00\u4e2a\u7c7b\u4f3clinux":[],"\u67e5\u627ebeat":2,"\u67e5\u770b\u67d0\u6a21\u5757\u7684\u4f7f\u7528\u65b9\u6cd5":1,"\u67e5\u8be2\u578b":3,"\u67e5\u8be2\u9891\u7387\u5728web\u4e0a\u914d\u4e00\u4e0b\u5c31\u597d\u4e86":3,"\u68c0\u6d4b\u9879\u8f6c\u53d1\u4ee3\u7406":0,"\u6982\u8ff0":5,"\u6a21\u5757\u540d":1,"\u6a21\u677f":5,"\u6a21\u677f\u51b3\u5b9a\u4e86\u6709\u54ea\u4e9b\u76d1\u6d4b\u9879":3,"\u6a21\u677f\u540e\u7eed\u6211\u4eec\u4f1a\u81ea\u5df1\u521b\u5efa":3,"\u6b64\u547d\u4ee4\u5c06\u521b\u5efa\u6587\u4ef6":3,"\u6b64\u65b9\u6cd5\u4e0d\u540c\u7684\u673a\u5668\u4e0a\u53ef\u80fd\u9047\u5230\u4e0d\u540c\u7684\u95ee\u9898":3,"\u6b64\u65b9\u6cd5\u5b66\u4e60\u6210\u672c\u4f4e":1,"\u6b64\u65b9\u6cd5\u6700\u9ad8\u7ea7":1,"\u6b64\u65b9\u6cd5\u9700\u8981\u5b89\u88c5sshpass":1,"\u6b64\u65b9\u6cd5\u9700\u8981\u9700\u8981\u5b66\u4e60\u5404module\u7684\u529f\u80fd\u548c\u53c2\u6570":1,"\u6bcf\u9897\u82af\u7247\u6709\u72ec\u7acb\u7684\u64cd\u4f5c\u7cfb\u7edf":0,"\u6bd4\u5982":1,"\u6bd4\u5982\u6279\u91cf\u5347\u7ea7\u670d\u52a1":1,"\u6bd4\u5982copy\u7684backup\u7279\u6027":1,"\u6bd4\u5982key\u503cvaserv":3,"\u6bd4\u5982problems\u4e2d\u63d0\u793a\u6211\u7684\u4e3b\u673a\u6389\u7ebf\u4e86":3,"\u6c47\u62a5\u901a\u90530\u5206\u6790\u7684\u57fa\u672c\u4fe1\u606f":[],"\u6ce8\u610f":3,"\u6ce8\u610f\u770bitem\u7684type\u5fc5\u987b\u662fzabbix":3,"\u6ce8\u610fproxi":3,"\u6d41\u7a0b\u638c\u63a7\u66f4\u597d":1,"\u6d4b\u8bd5\u4eba\u5458":0,"\u6d4b\u8bd5\u662f\u5426\u6210\u529f":1,"\u6d4b\u8bd5\u662f\u5426\u8fde\u901a":1,"\u6d4b\u8bd5ping\u6240\u6709\u4e3b\u673a":1,"\u6dfb\u52a0\u540e\u6240\u6709\u4f7f\u7528\u8be5\u6a21\u677f\u7684\u4e3b\u673a\u5747\u751f\u6548":3,"\u6dfb\u52a0\u6210\u529f":3,"\u6dfb\u52a0host":3,"\u6dfb\u52a0proxi":3,"\u70b9\u51fbconfigur":3,"\u70b9\u51fbstarnet_tx1_slave_tp\u884c\u7684item":3,"\u70b9\u53f3\u4e0a\u89d2\u7684creat":3,"\u70b9\u5c0fadd\u540e\u518d\u70b9\u5927add":3,"\u70b9add\u6dfb\u52a0\u5230":2,"\u70b9add\u6dfb\u52a0\u6210\u529f":3,"\u70b9template\u914d\u7f6e\u6a21\u677f":3,"\u7136\u540e\u5b89\u88c5sshpass":1,"\u73af\u5883\u4f9d\u8d56\u5b89\u88c5\u6309\u7167\u4ee5\u4e0b\u6b65\u9aa4":3,"\u7528\u6e90\u7801\u5b89\u88c5":3,"\u753140\u9897tx1\u82af\u7247\u7ec4\u6210":0,"\u7531deb\u5305\u5b89\u88c5\u6539\u6210\u7f16\u8bd1\u5b89\u88c5":4,"\u754c\u9762\u4e0a\u64cd\u4f5c\u53ef\u53c2\u8003":3,"\u7684":3,"\u7684\u65e5\u5fd7":2,"\u7684\u884c":2,"\u76d1\u6d4b\u9879\u662f\u6dfb\u52a0\u5230\u6a21\u677f\u4e2d\u7684":3,"\u76d1\u6d4b\u9879\u72b6\u6001\u4e0a\u62a5":0,"\u76ee\u5f55":[1,3],"\u76ee\u6807\u8282\u70b9ip":1,"\u76f4\u63a5\u5c31\u80fd\u8fd0\u884c":2,"\u76f8\u5f53\u4e8e\u91cd\u7f6e\u72b6\u6001\u503c":3,"\u76f8\u673a\u540d\u79f0":3,"\u76f8\u673aid":3,"\u786e\u4fdd":3,"\u79bb\u7ebf\u5305\u5df2\u5305\u542b":1,"\u79bb\u7ebf\u5b89\u88c5\u5305":[1,2,3],"\u79bb\u7ebf\u5b89\u88c5\u5305\u66f4\u65b0":4,"\u79d2":3,"\u7b2c\u4e00\u6b21\u8fd0\u884c\u4f1a\u6709\u4e00\u4e9b\u989d\u5916\u6b65\u9aa4":3,"\u7b2c\u4e00\u6b21\u8fdb\u5165discover\u4f1a\u81ea\u52a8\u8df3\u8f6c":2,"\u7c7b\u4f3clinux":3,"\u7c7b\u578b":3,"\u7e41\u661f":[1,2,3,4],"\u7e41\u661f2\u4ee3":0,"\u7e41\u661f2\u4ee3\u5df2\u7f16\u8bd1\u597dfilebeat":2,"\u7e41\u661f2\u4ee3\u6a21\u677f\u5df2\u653e\u5728sdv\u4e0a":3,"\u7e41\u661f2\u4ee3\u7f51\u7edc\u9694\u79bb":0,"\u7e41\u661f\u4e8c\u4ee3":[1,2,3,4],"\u7e41\u661f\u589e\u52a0\u81ea\u5b9a\u4e49\u76d1\u6d4b\u9879\u5178\u578b\u6d41\u7a0b":5,"\u7e41\u661f\u7684\u79bb\u7ebf\u5305\u5df2\u653e\u5728sdv":1,"\u7ea2\u6846\u90fd\u662f\u9700\u8981\u586b\u5199\u4fee\u6539\u7684":3,"\u7ec6\u8282\u53ef\u4ee5\u81ea\u884c\u767e\u5ea6":3,"\u7ed3\u675f\u4efb\u52a1\u65f6":[],"\u7ed3\u6784":5,"\u7ed9\u8bbe\u5907\u5206\u7ec4":3,"\u7ed9\u955c\u50cf\u547d\u540d":3,"\u7f16\u5199python\u811a\u672c":1,"\u7f16\u8f91":2,"\u81ea\u52a8\u7684\u4f7f\u7528ssh\u8fdc\u7a0b\u5230\u4e3b\u673a\u4e0a\u6267\u884c\u6307\u4ee4":1,"\u81ea\u5b9a\u4e49\u76d1\u6d4b\u9879":5,"\u81ea\u5b9a\u4e49\u76d1\u6d4b\u9879\u5217\u8868":5,"\u81ea\u5b9a\u4e49item":[],"\u81ea\u68c0\u7cfb\u7edf":[1,2,3,4],"\u81ea\u68c0\u7cfb\u7edf\u601d\u8def\u6982\u8ff0ppt":0,"\u81ea\u884c\u9009\u62e9":3,"\u82af\u7247\u4e4b\u95f4\u7528\u7f51\u7edc\u4e92\u901a":0,"\u8bb0\u5f55\u72b6\u6001\u503c\u7684\u6587\u4ef6\u4e3avporc_root":3,"\u8bb0\u5f55\u76d1\u6d4b\u9879\u7684\u503c":3,"\u8bbf\u95ee\u8def\u5f84":3,"\u8be2\u95ee\u5bc6\u7801":1,"\u8bf4\u660e":3,"\u8bfb":3,"\u8bfb\u53d6":1,"\u8d70vproc\u6d41\u7a0b":3,"\u8f93\u5165\u5bc6\u7801":1,"\u8fc7\u4e00\u4f1a\u5728web\u4e0a\u5c31\u80fd\u770b\u5230\u4e86":3,"\u8fd0\u7ef4\u4eba\u5458\u5747\u4f1a\u7528\u5230":0,"\u8fd0\u884c\u5373\u53ef":3,"\u8fd0\u884c\u65b9\u5f0f":5,"\u8fd0\u884czabbix":3,"\u8fd4\u56de0":3,"\u8fd8\u6709\u5f88\u591a\u5f3a\u5927\u7684\u529f\u80fd":1,"\u8fd9\u662f\u6700\u57fa\u672c\u7684\u4f7f\u7528":3,"\u8fd9\u6837\u7684\u597d\u5904\u662fzabbix\u7684\u4ea4\u4e92\u538b\u529b\u53ef\u63a7":[],"\u8fd9\u79cd\u6a21\u5f0f\u53ef\u4ee5\u6279\u91cf\u90e8\u7f72\u7a0b\u5e8f":1,"\u8fd9\u91cc\u5148\u9009\u62e9templat":3,"\u8fd9\u91ccfail":3,"\u8fdb\u5165manag":2,"\u8fdb\u7a0b\u53f7":3,"\u8fdb\u7a0b\u53f7\u5f88\u7b80\u5355":3,"\u9017\u53f7\u540e\u9762\u7684\u662f\u67e5\u8be2\u8fd9\u4e2a\u503c\u6240\u6267\u884c\u7684\u6307\u4ee4":3,"\u907f\u514d\u65e7\u7684\u72b6\u6001\u503c\u5e72\u6270":3,"\u90fd\u662fjava\u7a0b\u5e8f":2,"\u914d\u7f6e":[4,5],"\u914d\u7f6e\u4e24\u4e2a":2,"\u914d\u7f6e\u4e3b\u673a\u5217\u8868":1,"\u914d\u7f6e\u6587\u4ef6\u5728":[],"\u914d\u7f6e\u65e5\u5fd7\u8def\u5f84":2,"\u914d\u7f6eelasticsearch\u7684\u8bbf\u95ee\u5730\u5740":2,"\u91c7\u7528\u8fd9\u79cd\u65b9\u5f0f\u7684\u539f\u56e0":3,"\u91cd\u542fzabbix_agentd":3,"\u91cd\u65b0\u521b\u5efaindex":2,"\u91cd\u7f6e":3,"\u9519\u522b\u5b57\u4fee\u6539":4,"\u9519\u8bef\u4fe1\u606f\u53cd\u9988\u5230web":1,"\u9700\u548czabbix_agent\u914d\u7f6e\u7684hostname\u5bf9\u5e94":3,"\u9700\u8981\u5728\u7cfb\u7edf\u914d\u7f6e\u5f00\u673a\u542f\u52a8":3,"\u9700\u8981\u5728\u81ea\u5df1\u7684\u670d\u52a1\u4e2d\u5229\u7528ansible\u5b9e\u73b0\u6279\u91cf\u63a7\u5236\u529f\u80fd":1,"\u9700\u8981\u5c06\u5404\u5b50\u8282\u70b9\u5347\u7ea7\u8fdb\u5ea6":1,"\u9700\u8981\u89e3\u6790\u53cd\u9988\u4fe1\u606f\u5e76\u6839\u636e\u53cd\u9988\u505a\u51fa\u4e0d\u540c\u53cd\u5e94":1,"\u9700\u8981\u914d\u7f6e\u73af\u5883\u53d8\u91cf":1,"\u9700\u914d\u5408zabbix_sender\u4f7f\u7528":3,"\u975e\u4ea4\u4e92\u5f0f\u7528\u6237\u540d\u5bc6\u7801\u65b9\u5f0f":1,"\u9891\u6b21":[],"\u9f20\u6807\u79fb\u5230messag":2,"agent\u548cproxy\u914d\u7f6e\u6587\u4ef6\u589e\u52a0":4,"ansible\u5de5\u4f5c\u7684\u6d41\u7a0b\u662f":1,"ansible\u6279\u91cf\u63a7\u5236":0,"ansible\u63d0\u4f9b\u4e86\u975e\u5e38\u591a\u7684modul":1,"ansible\u7684\u811a\u672c\u53ebplaybook\u4e0d\u662fplayback":4,"ansible\u96c6\u7fa4\u7ba1\u7406\u5de5\u5177":5,"api\u548ckibana\u90fd\u652f\u6301lucene\u8bed\u6cd5":2,"conf\u4e2d\u6709\u914d\u7f6e":3,"conf\u548czabbix_agent_proxy_tx1":4,"conf\u589e\u52a0\u547d\u4ee4\u884c":3,"conf\u589e\u52a0\u7684item\u7684type\u662fzabbix":3,"d\u66f4\u65b0":4,"dashboard\u53ef\u4ee5\u6d4f\u89c8\u72b6\u6001":3,"dashboard\u53ef\u4ee5\u81ea\u5b9a\u4e49":3,"deb\u7248\u672c\u8f83\u4f4e":4,"discover\u662f\u67e5\u770b":2,"discover\u9875\u9762\u7684\u641c\u7d22\u680f\u652f\u6301\u7684\u67e5\u8be2\u8bed\u6cd5\u540d\u53eblucen":2,"elasticsearch\u5e95\u5c42\u4f7f\u7528lucen":2,"elk\u4e09\u4e2a\u5de5\u7a0b\u4f7f\u7528\u5b98\u65b9\u4e0b\u8f7d\u7684tar":2,"elk\u65e5\u5fd7":0,"elk\u65e5\u5fd7\u7cfb\u7edf":5,"elk\u7ec4\u5408\u662f\u65e5\u5fd7\u7cfb\u7edf\u7684\u7ecf\u5178\u7ec4\u5408":2,"export":1,"filebeat\u4f7f\u7528\u6e90\u7801\u653e\u5728\u4e3b\u673a\u4e0a\u7f16\u8bd1":2,"filebeat\u7f16\u8bd1\u5b89\u88c5\u53c2\u8003":2,"filebeat\u914d\u7f6e":5,"get\u65b9\u5f0f\u88c5":3,"get\u7b49\u7b49":1,"groups\u53ef\u4ee5\u81ea\u5df1\u5efa":3,"gz\u7684\u5305":2,"haproxy\u653e\u5728\u4e3b\u8282\u70b9\u4e0a\u505a\u4ee3\u7406\u8f6c\u53d1":2,"haproxy\u914d\u7f6e":5,"hosts\u4e3b\u673a\u5217\u8868":1,"hosts\u7684\u591a\u7ea7\u5206\u7ec4":1,"images\u5e94\u8be5\u80fd\u663e\u793a":3,"int":3,"item\u6587\u4ef6\u5185\u5bb9\u6253\u5370\u51fa\u6765":3,"item\u65b9\u5f0f\u7ec4\u7ec7":3,"kibana\u8bbf\u95ee\u5730\u5740":2,"kibana\u9875\u9762\u4e0a\u7684\u65e5\u5fd7\u641c\u7d22\u6280\u5de7":5,"license\u540e\u66f4\u65b0":3,"license\u6587\u4ef6\u5185\u5bb9":3,"license\u72b6\u6001\u662f\u9700\u8981\u5e94\u7528\u7a0b\u5e8f\u5f00\u53d1\u8005\u5199\u5165\u5230vproc\u7cfb\u7edf\u4e2d":3,"management\u4e2d\u4f1a\u81ea\u52a8\u751f\u6210\u7c7b\u4f3c":2,"module\u76f8\u5f53\u4e8eshell\u547d\u4ee4":1,"name\u4e3a8":2,"name\u4e3a\u8fc7\u6ee4\u6761\u4ef6":2,"name\u5fc5\u987b\u548c":3,"null":[],"patterns\u53ef\u67e5\u770b":2,"playbook\u5b9e\u4f8b\u5728":1,"playbook\u6587\u4ef6\u5185\u5bb9":1,"playbook\u65b9\u5f0f":1,"playbook\u6bd4shell\u548cpython\u597d\u5199\u4e9b":1,"playbook\u76f8\u5f53\u4e8eshell\u811a\u672c":1,"playbook\u8bed\u6cd5":1,"proc\u7684\u6587\u4ef6\u76ee\u5f55vproc":[],"proc\u7cfb\u7edf":3,"proxy\u5fc5\u987b\u9009\u62e9\u6b63\u786e\u7684proxy\u4ee3\u7406":3,"py\u662fpython\u7f16\u5199\u7684\u5de5\u5177":[],"query\u8bed\u6cd5\u53c2\u8003":2,"quickstart\u6587\u6863":4,"select\u9009\u62e9\u4e00\u4e2a\u6a21\u677f":3,"server\u4e3b\u52a8\u83b7\u53d6":3,"sh\u4f1a\u5c06\u914d\u7f6e\u6587\u4ef6\u62f7\u8d1d\u5230":3,"sh\u5373\u53ef":1,"sh\u5df2\u5199\u597d":3,"sh\u811a\u672c\u5b89\u88c5\u7684":3,"shell\u547d\u4ee4\u5c31\u80fd\u641e\u5b9a":3,"ssh\u516c\u94a5\u65b9\u5f0f":1,"true":2,"type\u9009\u62e9":3,"ubuntu14\u5b89\u88c5golang1":2,"ui\u5c55\u793a":2,"userapp\u4e0b":3,"value\u7c7b\u578b":[],"var":3,"vaserver\u542f\u52a8":3,"vaserver\u542f\u52a8\u548c\u9000\u51fa\u65f6\u5e94\u8c03\u7528":3,"vproc\u540e\u9762\u7ae0\u8282\u6709\u8be6\u7ec6\u4ecb\u7ecd":3,"vproc\u5de5\u5177\u67093\u79cd\u7528\u6cd5":3,"vproc\u662fpython\u7f16\u5199\u7684\u5de5\u5177":3,"watchman\u6539\u6210watchmen":4,"watchmen\u75313\u4e2a\u7ec4\u4ef6\u7ec4\u6210":0,"watchmen\u7cfb\u7edf":0,"watchmen\u8bd5\u8fd0\u884c\u5728\u7e41\u661f2\u4ee3\u4e0a":0,"web\u754c\u9762":3,"web\u754c\u9762\u4f7f\u7528\u4e0d\u6b63\u5e38":3,"web\u7aef\u589e\u52a0\u68c0\u6d4b\u9879":3,"x86_64\u914d\u7f6e":5,"zabbix\u53bb\u67e5\u8be2\u8fd9\u76ee\u5f55\u8bb0\u5f55\u7684\u72b6\u6001\u503c":[],"zabbix\u589e\u52a0\u81ea\u5b9a\u4e49item":3,"zabbix\u6570\u636e\u5e93":0,"zabbix\u670d\u52a1\u7aef":0,"zabbix\u7684\u4ea4\u4e92\u538b\u529b\u53ef\u63a7":3,"zabbix\u7684\u76d1\u6d4b\u9879\u6709\u4e24\u79cd":3,"zabbix\u76d1\u6d4b":0,"zabbix\u76d1\u6d4b\u7cfb\u7edf":5,"zabbix_agent\u662f\u7528deb\u5305\u5b89\u88c5\u7684":[],"zabbix_agent\u914d\u7f6e":5,"zabbix_agent_proxy_tx1\u7684instal":3,"zabbix_agentd\u5b89\u88c5\u5305\u662f\u5728tx1\u4e0a\u7f16\u8bd1\u7684":3,"zabbix_agentd\u7528vproc\u67e5\u8be2\u5404\u72b6\u6001\u7684\u503c":3,"zabbix_agentd\u7aef\u64cd\u4f5c\u53ef\u53c2\u8003":3,"zabbix_proxy\u5b89\u88c5\u5305\u662f\u5728tx1\u4e0a\u7f16\u8bd1\u7684":3,"zabbix_proxy\u6570\u636e\u5e93\u76ee\u5f55":3,"zabbix_proxy\u914d\u7f6e":5,"zabbix_proxy\u914d\u7f6e\u4e2d\u7684hostname\u76f8\u540c":3,"zabbix_proxy_tx1\u7684instal":[],"zabbix_sender\u62a5\u9519":3,"zabbix_server\u4e3b\u673aip":3,"zabbix_server\u5728docker\u8fd0\u884c":3,"zabbix_server\u914d\u7f6e":5,AND:2,Ops:2,af4434f6332b:3,agent:3,ago:3,all:1,allowroot:[3,4],alpha1:2,ansibl:[0,1],ansible_host_key_check:1,ansible_offline_tx1:1,ansible_playbook_exampl:1,ansible_ssh_pass:1,ansible_ssh_us:1,ansible_sudo_pass:1,api:1,app:3,apt:1,arg:1,articl:[2,3],bash:1,beat:2,bf422197fafe:3,bigtaskid:[],bigtasknam:3,bin:4,bind:2,block:[],blog:[2,3],bodi:[],cameraid:3,cameranam:3,cat:3,cell:[],cfg:2,chdir:1,check:3,chmod:1,clean:3,cnblog:[1,2,3],column:[],com:[1,2,3],command:1,conf:[2,3,4],config:2,configfrequ:3,configur:3,contain:[],content:5,copi:1,creat:3,createdb:3,createus:3,csdn:[2,3],data:3,databas:3,dbname:3,desc:[],dest:1,detail:[2,3],dir:1,doc:1,docker:3,dockerrun_zabbix:3,document:3,edit:3,elastic_proxi:2,elasticsearch:[0,5],elk_serv:2,elk_tx1:2,enabl:2,encod:2,etc:[1,2,3,4],event_count:3,fail:3,fals:1,feifantiyan:2,field:2,filebeat:[0,2],filter:2,fornt:3,from:3,front:3,frontend:3,gbk:2,gourp2:3,group1:3,group2:3,groupn:3,haproxi:[0,2],haproxy_tx1:2,header:[],home:[1,3],host:[1,2,3],hostnam:3,html:[1,2,3],http:[1,2,3],imag:3,includ:3,index:[2,5],info:3,instal:[1,3],item:3,kei:3,keygen:1,keytrtest:3,kibana:[0,5],kikana:2,lastest:3,licens:3,linux:[3,5],listen:2,lk142500:2,load:3,local:3,log:2,lucen:2,mai:[],manag:2,manual:3,max_map_count:2,mingerlcm:3,mkdir:1,mode:2,modul:5,monitor:3,month:3,mynam:2,name:[1,2],net:[2,3],network:2,nginx:3,page:5,path:[2,3],pattern:2,pdf:0,pgrep:3,pgsql:3,php:3,pid:3,ping:1,pip:1,playbook:1,playok:3,postgr:[0,3],postgres9:3,postgresql:3,process:3,proxi:3,psql:3,python:[],queri:2,quick:5,read:3,remot:1,repositori:3,restart:[],root:[2,3],root_vproc:3,row:[],run:1,schema:3,script:1,sdrp:3,search:5,second:3,select:2,sendresultcount:3,senlinyang:2,server:[2,3],serveract:3,size:3,smb:[1,2,3,4],sourc:2,span:[],spent:3,sql:3,src:1,ssh:1,starnet1:1,starnet2:1,starnet:1,start:5,sudo:[1,3],sysctl:2,tag:3,tar:3,task:1,taskid:3,tasknam:3,tcp:2,tegra:3,templat:3,text:3,total:3,traper:3,trapper:3,type:2,u012062455:3,ubuntu:[1,3],unsafeuserparamet:3,url:2,user:[1,3],userapp:3,userparamet:3,usr:3,va0:3,va1:3,valu:3,value1:3,vaserv:5,vasvr:2,vim:1,vproc:[4,5],watchmen:0,web:[0,3],week:3,write:3,www:[1,2,3],x86_64:2,yannanxiu:3,yes:1,yml:[1,2],zabbix:[0,3,4],zabbix_ag:[0,3],zabbix_agent_proxy_tx1:[3,4],zabbix_agent_tx1:[],zabbix_agentd:[3,4],zabbix_dock:3,zabbix_front:0,zabbix_proxi:[0,3],zabbix_proxy_tx1:[],zabbix_send:3,zabbix_serv:0,zabbix_templ:[3,4],zhaojiedi1992:1,zhaojiedi_linux_032_ansible02:1},titles:["1. \u6982\u8ff0","2. ansible\u96c6\u7fa4\u7ba1\u7406\u5de5\u5177","3. elk\u65e5\u5fd7\u7cfb\u7edf","4. zabbix\u76d1\u6d4b\u7cfb\u7edf","5. \u4fee\u8ba2\u5386\u53f2","Welcome to watchmen\u2019s documentation!"],titleterms:{"0\u914d\u7f6e":2,"\u4f7f\u7528":[1,2,3],"\u4f7f\u7528docker\u5b89\u88c5":3,"\u4fee\u8ba2\u5386\u53f2":4,"\u5751\u591a":3,"\u5b89\u88c5":[1,2,3],"\u5efa\u8bae\u4f7f\u7528\u6b64\u65b9\u5f0f":3,"\u672c\u5730\u5b89\u88c5":3,"\u672f\u8bed":0,"\u6982\u8ff0":0,"\u6a21\u677f":3,"\u7e41\u661f\u589e\u52a0\u81ea\u5b9a\u4e49\u76d1\u6d4b\u9879\u5178\u578b\u6d41\u7a0b":3,"\u7ed3\u6784":0,"\u81ea\u5b9a\u4e49\u76d1\u6d4b\u9879":3,"\u81ea\u5b9a\u4e49\u76d1\u6d4b\u9879\u5217\u8868":3,"\u8fd0\u884c\u65b9\u5f0f":3,"\u914d\u7f6e":[1,2,3],"ansible\u96c6\u7fa4\u7ba1\u7406\u5de5\u5177":1,"elk\u65e5\u5fd7\u7cfb\u7edf":2,"filebeat\u914d\u7f6e":2,"haproxy\u914d\u7f6e":2,"kibana\u9875\u9762\u4e0a\u7684\u65e5\u5fd7\u641c\u7d22\u6280\u5de7":2,"x86_64\u914d\u7f6e":2,"zabbix\u76d1\u6d4b\u7cfb\u7edf":3,"zabbix_agent\u914d\u7f6e":3,"zabbix_proxy\u914d\u7f6e":3,"zabbix_server\u914d\u7f6e":3,document:5,elasticsearch:2,indic:5,kibana:2,linux:2,quick:[2,3],start:[2,3],tabl:5,vaserv:3,vproc:3,watchmen:5,welcom:5}})
\ No newline at end of file \ No newline at end of file
# ansible playback实例介绍 # ansible playbook实例介绍
## change_user_pass.ymv ## change_user_pass.ymv
...@@ -6,7 +6,7 @@ ...@@ -6,7 +6,7 @@
## supervisor_offline_tx1.yml ## supervisor_offline_tx1.yml
拷贝目录并执行脚本可以参考这个playback。 这个模式可以实现大部分批量管理需求 拷贝目录并执行脚本可以参考这个playbook。 这个模式可以实现大部分批量管理需求
step: step:
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!