Zabbix Special topic: Fifth Chapter Zabbix ADD trigger Triggers

Source: Internet
Author: User

Zabbix add trigger Triggers


Interested in Linux friends join QQ Group: 476794643 Online communication


This article anti-theft chain: http://zhang789.blog.51cto.com

Outline of this program
    • What is a trigger (triggers)?

    • Create a trigger that listens on 80 ports

    • Alarm Level Introduction

    • Zabbix Trigger Dependency Relationship

Zabbix Special topic: Fifth Chapter Zabbix What is the add trigger triggers trigger (triggers)?

A trigger uses a logical expression to evaluate the state in which the data obtained through the item is in, item one takes back the data, the task is given to the trigger to assess the state, and the trigger is understood.
In the trigger expression we can define which values range is reasonable, which is unreasonable, when the condition satisfies, TRUE, indicates the problem state, and vice versa, then OK State;

Zabbix Server item each time it gets to a new value, it uses a trigger expression to evaluate its state if using a time-based expression (for example: NoData (), date (), DayOfMonth (), DayOfWeek (), hour (), now () ), the Zabbix timer is recalculated every 30 seconds.

Create a Trigger

To create a trigger step:

点击Configuration(配置)Hosts(主机)
点击hosts(主机)of the related rowtrigger
In the upper-right corner, click创建触发器(create trigger), you can also modify the triggers in the list

1, after naming is complete, select the Add button to automatically generate an expression

2, select a monitor item to monitor for a trigger

3, select the monitoring item, select the monitoring of the indicator, I monitor the latest value, the last value is equal to 0 trigger (note, I monitor the entry above is monitoring normal return 1, abnormal return 0)

4, add, you can choose multiple problem event generation, that is, the failure to recover the time will also generate an event report (otherwise you will not know when the recovery)

5, now we have the trigger has been set up, now go to the client above the HTTP service to stop, to see whether the alarm

[[email protected] ~]# service httpd stop
Stopping httpd:                                            [  OK  ]


6, back to our Zabbix Web interface to watch the alarm information (see, the Dashboard and the latest events have sent a serious alarm)

650) this.width=650; "src=" Http://s5.51cto.com/wyfs02/M02/89/C6/wKioL1gcPRnTrPGkAAEhtI3ONVo665.png "title=" Qq20161104152321.png "alt=" Wkiol1gcprntrpgkaaehti3onvo665.png "/>

650) this.width=650; "src=" Http://s3.51cto.com/wyfs02/M02/89/C6/wKioL1gcPSXitDvZAADIkYwWyv8051.png "title=" Qq20161104152340.png "alt=" Wkiol1gcpsxitdvzaadikywwyv8051.png "/>

7, we now return to the client to service HTTP

[[email protected] ~]# service httpd start  
Starting Httpd:httpd:Could Span class= "Hljs-keyword" >not reliably determine the server ' s fully Qualified domain name , using Localhost.localdomain Span class= "Hljs-keyword" >for ServerName
                                             ,         &NB Sp   [ ok  ]


8、再回到zabbix的web界面看下(从最新事件中可以看出,已经恢复成功了)

9, the dashboard on the home page has resumed

650) this.width=650; "src=" Http://s4.51cto.com/wyfs02/M00/89/C6/wKioL1gcPUODvjo6AAD6D90-zOA709.png "title=" Qq20161104152440.png "alt=" Wkiol1gcpuodvjo6aad6d90-zoa709.png "/>

Alarm Level Introduction

1, visual display, different levels show different colors, such as the general severity of Green
2, sound alarm, different levels of different sounds.
3, using user-defined media alerts, such as serious problems texting, other issues to send mail.
4, according to the severity to define whether the alarm

Zabbix Trigger Dependency Relationship

Zabbix trigger can set the dependency, for example: We have a cabinet inside the monitoring of 10 servers, but 10 servers have a switch above, assuming that we have a switch, our server must also be contacted, the server can not contact with the above service also detected, it would not be fried boiling, All is the alarm, this time we can use the dependency relationship, set up the dependency relationship, we fail the switch, the following host and service will not initiate failure notification, but remember to timely repair


This article from "Live by the Sea like Waves" blog, please be sure to keep this source http://zhang789.blog.51cto.com/11045979/1869490

Zabbix Special topic: Fifth Chapter Zabbix ADD trigger Triggers

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.