本实验是在zabbix已经安装配置好的基础上开始做的
保证虚拟机能联网:
在网页操作先开始注册oneAlert云告警平台并添加应用生成KEY:
[[email protected] ~]# wget http://www.onealert.com/agent/release/oneitsm_zabbix_release-1.2.0.tar.gz
[[email protected] ~]# mv oneitsm_zabbix_release-1.2.0.tar.gz /usr/lib/zabbix/alertscripts/
[[email protected] ~]# cd /usr/lib/zabbix/alertscripts/
[[email protected] alertscripts]# ls
oneitsm_zabbix_release-1.2.0.tar.gz
[[email protected] alertscripts]# tar zxf oneitsm_zabbix_release-1.2.0.tar.gz
[[email protected] alertscripts]# cd oneitsm/
[[email protected] oneitsm]# cd bin/
[[email protected] bin]# ./install.sh 35a46f77-eff6-518f-ef5b-0a0b262687ed
主机停止zabbix-agent模拟报警:
[[email protected] zabbix]# systemctl stop zabbix-agent
发送警告到手机: