> ## Documentation Index
> Fetch the complete documentation index at: https://doc.lwops.cn/llms.txt
> Use this file to discover all available pages before exploring further.

# 8.7. Elasticsearch

### 8.7.1. 导入脚本及模板

联系技术中心获取对应资源

#### 8.7.1.1. zabbix采集端配置

```text theme={null}
#移动监控脚本文件到指定目录
mv ESzabbix /itops/zabbix/share/zabbix/externalscripts/

#修改文件权限
chmod +x /itops/zabbix/share/zabbix/externalscripts/ESzabbix
chown itops.itops /itops/zabbix/share/zabbix/externalscripts/ESzabbix
```

#### 8.7.1.2. python模块安装(采集端)

```text theme={null}
#解压tar包安装python模块
tar xvf urllib3-1.22.tar.gz;cd urllib3-1.22;python setup.py install
cd ..;tar xvf setuptools-0.6c11.tar.gz;cd setuptools-0.6c11;python setup.py install
cd ..;tar xvf elasticsearch-6.1.1.tar.gz;cd elasticsearch-6.1.1;python setup.py install

#安装成功后，测试脚本运行状态
python /itops/zabbix/share/zabbix/externalscripts/ESzabbix cluster status 数据库ip 数据库端口
```

#### 8.7.1.3. 宏值说明

\{#NODENAME}：此宏指的是elasticsearch.yml文件中的node.name名称

![8.7. Elasticsearch 操作截图 1](https://lwweb.oss-cn-shenzhen.aliyuncs.com/docs/images/yuque/elasticsearch/image-01.png)

#### 8.7.1.4. web界面导入模板及迁移操作

暂无
