03 zabbix alarm

05. achieve zabbix alarm --- trigger / action
Alarm:
01. Page prompt alarm (duty operation and maintenance) the OK
02. Page sounds alarm when the OK
03. mail messages warning the OK
04. micro-channel function alarm the OK
05. SMS alarm / phone alarm OK

page prompts and audible alarm practice:
first course: create a trigger
to configure the host --- --- --- select the appropriate monitoring host triggers Creating triggers 
set expression
{web01: server_state [nginx ] .last ()} <= 2
{monitoring host name: expression function call key name} <= 2 

expression summary:
Last () to collect the latest information (value) *****
max () in within a certain period, the collected maximum
min () in a certain period, the collected minimum
the diff () within a certain time, the collected information to determine whether a different
change () within a certain time, the collected information to determine whether the different
() averaged over time avg

Business ideas work met alarm information processing steps:
The first step: to see the warning message, locate host information
Step two: After seeing the host to locate the cause of the alarm monitored item obtained Key value
Step 3: key value information, and ultimately alarm reason to get

so far: has prompted alarm

second course: modifying page layouts, audible alarm has been raised
small head is sending the message --- --- front-end information check
PS: how to modify the alarm bell:
1) locate the file resides directory (to find in the site directory)
the find / usr / report this content share / zabbix the -type f -name "alarm_disaster.wav" # alarm_disaster.wav a name for the file
2) replace the original sound files do
replace the sound file specified
3) need to clear your browser cache, test





mail message warning
of a course: create a trigger
to configure the host --- --- --- select the appropriate monitoring host triggers Creating triggers 
set expression
{web01: server_state [nginx] .last ()} <= 2
{monitoring host name: expression function call key name} <= 2.

Second course: Modify Action Configuration
configuration --- --- action will be the default action open

a third course: 163 E-mail service and establish relations
management --- --- create alarm alarm media type media

Fourth course: e-mail address to receive defined alarm
small head - medium alarm - setting recipient information





micro-channel alarm
first course: the need for micro enterprises registered letter, and configure
my business: 
01. acquiring companies the above mentioned id: ww32d68104ab5f51b0
02. Gets two business dimensional codes: allows employees to the
management tools:
01. --- members to be reviewed by the
applet:
01. created
02. information collection procedures
agentid: 1000006
Secret: RvQYpaCjWbYMCcwhnPqg1ZYcEGB9cOQCvvlkn-ft6j4

second course: to write scripts (python)
/etc/zabbix/zabbix-server.conf CAT 
AlertScriptsPath = / usr / lib / zabbix / alertscripts --- placing warning script

execute a script error problem solving:
01. problem: No Module named Requests
yum -y install Python-PIP
PIP install Requests
02. question: syntax script execution

Third course: modify add alarm media --- defines micro letter configure

the fourth course: micro-channel configuration to receive people

text messages and phone:
use a third-party SMS phone alarm platform
01. Ali utilization fish (surcharge)
HTTPS: / /yq.aliyun.com/articles/658524?spm=a2c4e.11155472.0.0.d821153fAjrH3q --- own research
02. onealert send an alarm by using

the first course: alarm configuration platform
01. configuration - application - select alarm zabbix
02. configuration - notification policy
03. configuration - dispatch strategy



06. achieve zabbix graphical configuration --- graphical
configuration - host - Graphics - (monitoring items)

Guess you like

Origin www.cnblogs.com/linux985/p/11697487.html