Bobcares

Zabbix Triggers Explained in detail

by | Mar 3, 2020

Eager to know about triggers in the Zabbix monitoring system? We can help you.

Triggers are the conditions set on servers for generating alerts. The common triggers alert when the server has high load, disk usage, high mail flow, etc.

At Bobcares, we often get requests regarding Zabbix, as a part of our Server Management Services.

Today, let’s see how our Support Engineers set triggers to monitor servers effectively.

 

A glance through Zabbix

Zabbix is a monitoring software tool. It can be deployed for agent-based and agentless monitoring.

Here, agentless means, we can monitor any server without installing the Zabbix agent on that server.

Moreover, Zabbix is based on a client-server model.

This is used to monitor different aspects of server infrastructure like DB monitoring, application monitoring, Network monitoring, server monitoring, etc.

 

What are the Triggers in Zabbix?

Triggers represent the current system state. That is, it gives alert regarding services whether they are up or down.

Also, these are the logical expressions that evaluate the data from the server and give alerts accordingly.

Zabbix always generates popups based on triggers we set.

This evaluates the data at some conditions collected by items to generate notifications or popups.

Here, the item is a value read from a host. And these items are used to gather the system data.

 

How do we add a trigger?

Recently, one of our customers approached us with a request to add the basic triggers in his Zabbix.

So, our Dedicated Engineers followed the steps below:

Firstly, we logged into his Zabbix dashboard. Then we get a panel like the one shown below:

 

Zabbix adding trigger

 

Then we followed the path Configuration>>hosts>>triggers

Under the trigger, select the create trigger option.

Then appears the main trigger creation screen, there we give a name for the trigger, select the severity for the trigger.

Also, create the expression for the trigger by using the item from the list.

That is: Select the item>> select the function to check for the item

And lastly, give the value for the trigger specifying when the trigger is to activate.

There we can see many other optional options.

Finally,  click on the add button.

This way, we add triggers for the customers.

For example, a trigger for Lack of available memory on server {HOST.NAME}, the expression will be

{xxxxhost:vm.memory.size[available].last(0)}<10M

 

Need custom triggers for the server?

Fortunately, Zabbix allows for creating custom triggers as well.

Our Support Engineers create custom triggers according to our customers’ requirements. For that, we create custom codes for items and add them to according files.

This depends on where we need to fetch the data. Usually, we fetch data from the following MySQL, Nginx and Apache files.

For MySQL triggers like number of users online, maximum connections, we customize the file /etc/zabbix/zabbix_agentd.d/userparameter_mysql.conf

Similarly, for Apache related parameters like maximum processes, online visitors count, etc. we edit the file /etc/zabbix/zabbix_agentd.d/userparameter_zapache.conf.

Then we create the item and follow the same steps above for adding the trigger.

 

[Having trouble in fixing Zabbix errors? – Our Experts are available 24/7.]

 

Conclusion

In this write-up, we saw Zabbix triggers explained in a simple way. Also, we discussed how our Support Engineers help customers in adding the trigger.

PREVENT YOUR SERVER FROM CRASHING!

Never again lose customers to poor server speed! Let us help you.

Our server experts will monitor & maintain your server 24/7 so that it remains lightning fast and secure.

GET STARTED

var google_conversion_label = "owonCMyG5nEQ0aD71QM";

0 Comments

Submit a Comment

Your email address will not be published. Required fields are marked *

Never again lose customers to poor
server speed! Let us help you.

Privacy Preference Center

Necessary

Necessary cookies help make a website usable by enabling basic functions like page navigation and access to secure areas of the website. The website cannot function properly without these cookies.

PHPSESSID - Preserves user session state across page requests.

gdpr[consent_types] - Used to store user consents.

gdpr[allowed_cookies] - Used to store user allowed cookies.

PHPSESSID, gdpr[consent_types], gdpr[allowed_cookies]
PHPSESSID
WHMCSpKDlPzh2chML

Statistics

Statistic cookies help website owners to understand how visitors interact with websites by collecting and reporting information anonymously.

_ga - Preserves user session state across page requests.

_gat - Used by Google Analytics to throttle request rate

_gid - Registers a unique ID that is used to generate statistical data on how you use the website.

smartlookCookie - Used to collect user device and location information of the site visitors to improve the websites User Experience.

_ga, _gat, _gid
_ga, _gat, _gid
smartlookCookie
_clck, _clsk, CLID, ANONCHK, MR, MUID, SM

Marketing

Marketing cookies are used to track visitors across websites. The intention is to display ads that are relevant and engaging for the individual user and thereby more valuable for publishers and third party advertisers.

IDE - Used by Google DoubleClick to register and report the website user's actions after viewing or clicking one of the advertiser's ads with the purpose of measuring the efficacy of an ad and to present targeted ads to the user.

test_cookie - Used to check if the user's browser supports cookies.

1P_JAR - Google cookie. These cookies are used to collect website statistics and track conversion rates.

NID - Registers a unique ID that identifies a returning user's device. The ID is used for serving ads that are most relevant to the user.

DV - Google ad personalisation

_reb2bgeo - The visitor's geographical location

_reb2bloaded - Whether or not the script loaded for the visitor

_reb2bref - The referring URL for the visit

_reb2bsessionID - The visitor's RB2B session ID

_reb2buid - The visitor's RB2B user ID

IDE, test_cookie, 1P_JAR, NID, DV, NID
IDE, test_cookie
1P_JAR, NID, DV
NID
hblid
_reb2bgeo, _reb2bloaded, _reb2bref, _reb2bsessionID, _reb2buid

Security

These are essential site cookies, used by the google reCAPTCHA. These cookies use an unique identifier to verify if a visitor is human or a bot.

SID, APISID, HSID, NID, PREF
SID, APISID, HSID, NID, PREF