3-2 短信告警
最后更新于:2022-04-02 07:41:13
#### 使用OneAlert自动脚本部署
#### Centos6.8 升级python-libs包
yum缓存开启 keepcache=1
```shell
yum install python-libs
```
#### 此处安装会出现软件包依赖
```shell
rpm -ivh /var/cache/yum/x86_64/6/updates/packages/python-libs-2.6.6-66.el6_8.x86_64.rpm --force
```
#### 注册OneAlert,产生AppKey
登录-->应用-->添加应用-->配置应用-->里面语句已经准备好了
#### 执行安装语句
#### Centos6.x
```shell
sudo AppKey=9e5a496b-9c91-b039-db09-2673825c778b Plugin=zabbix sh -c "$(curl -L https://raw.githubusercontent.com/oneapm/onealert-agent-installer/master/onealert-zabbix-install-centos6.sh)"
```
#### Centos7.x
```shell
sudo AppKey=9e5a496b-9c91-b039-db09-2673825c778b Plugin=zabbix sh -c "$(curl -L https://raw.githubusercontent.com/oneapm/onealert-agent-installer/master/onealert-zabbix-install-centos7.sh)"
```
#### 输入相关信息
http://192.168.0.220/zabbix
Admin
zabbix
#### 重启服务
Linux Centos 6 使用命令 :
```shell
sudo initctl restart onealert
```
Linux Centos 7 使用命令 :
```shell
sudo service onealert restart
```
#### 测试监控告警
#### 备注:不需要一定部署在Zabbix服务器上,推测
';