web monitor
web site monitoring service is http monitor, simulate user access to the site, the results of a particular alarm, notify the site administrator status.
web monitoring is a necessary operation and maintenance knowledge, experiment to become familiar with how to configure and monitor the web to understand zabbix site and send alarms.
Installation web service
找一台空闲服务器安装nginx ,实验我就选在了node1上 [10.0.0.65]
[root@node1 ~]# yum install -y nginx
Access web test:
Select 10.0.0.65 add this server nginx monitoring
Detailed configuration:
web configuration detecting step:
If the site is SSL can add SSL certification. After completing the above configuration update good.
At this time, opens monitoring - web Detection
Click [node1 web service Home Monitoring] can go see the specific status of the
Add web check pattern
Adding Graphics:
Preview:
This will be displayed in red non 200. The normal access is shown in green. Glance.
alarm configuration web page
打开
配置 - 主机 - 找到对应主机 - 点击 触发器
After entering the trigger interface: the right choice to create a trigger:
turn up
Add a second expression:
After clicking insert would this be:
Final configuration results are as follows:
问题表现形式表达式:
{node1:web.test.fail[node1 web服务首页监控].last()}<>0 or {node1:web.test.rspcode[node1 web服务首页监控,打开首页].last()}<>200
Configuration restore expression:
恢复表达式:
{node1:web.test.rspcode[node1 web服务首页监控,打开首页].last()}=200
Once configured click Add to
Triggers can be seen configured triggers:
Such failures expression, expressions restore the configuration finished:
Usability Testing:
Close the web service:
[root@node1 ~]# nginx -s stop
After closing the nginx web service in the detection of performance:
zabbix reception performance:
Micro-channel notification performance:
Start performance after nginx:
Micro-channel performance:
Such web detection on the configuration finished.