使用OneAlert自动脚本部署
Centos6.8 升级python-libs包
yum缓存开启 keepcache=1
yum install python-libs
此处安装会出现软件包依赖
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
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
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)"
输入相关信息
Admin zabbix
重启服务
Linux Centos 6 使用命令 :
sudo initctl restart onealert
Linux Centos 7 使用命令 :
sudo service onealert restart