Difference between revisions of "Zabbix create template"

Line 1: Line 1:
 
[[Category:Linux]]
 
[[Category:Linux]]
 +
 +
 +
=Vocable=
 +
 +
Key points:
 +
 +
# Zabbix configuration rely on '''templates''' = set of applications, items, triggers and actions.
 +
 +
# Each ''template'' has a list of applications.
 +
 +
# Each ''application'' has a set of '''items''' = datasource
 +
 +
# Each ''item'' has some '''triggers''' = conditions to raise an event with a specific alert level and type
 +
 +
# Each ''trigger'' is bound to some '''actions''' = action to perform on when the trigger event is sent
 +
 +
# Each '''host''' belongs to one or more '''groups'''. Each ''group'' has some related ''templates'' they apply to their ''hosts''
 +
  
  
Line 38: Line 56:
  
  
=How to create a new application and related item, triggers, actions?=
+
=How to create a new application and related item(s)=
 
 
==Vocable==
 
 
 
Key points:
 
 
 
# Each template has a list of applications.
 
 
 
# Each ''application'' has a set of '''items''' = datasource
 
 
 
# Each ''item'' has some '''triggers''' = conditions to raise an event with a specific alert level and type
 
 
 
# Each ''trigger'' is bound to some '''actions''' = action to perform on when the trigger event is sent
 
 
 
  
  
Line 76: Line 81:
  
  
==Access / create item==
+
==Access / create item (~ datasource)==
  
 
* Items list
 
* Items list
Line 110: Line 115:
 
* Item type: '''zabbix agent (active)''' => the client will report all changes to the server, client's does NOT wait for server interrogation: it's pro-active
 
* Item type: '''zabbix agent (active)''' => the client will report all changes to the server, client's does NOT wait for server interrogation: it's pro-active
 
* Key: '''logrt''' => to handle log files rotation
 
* Key: '''logrt''' => to handle log files rotation
 +
 +
 +
 +
 +
 +
=How to create a new trigger(s) and related action(s)=
 +
 +
 +
==Access / create trigger (~ event condition)==

Revision as of 09:20, 14 August 2014


Vocable

Key points:

  1. Zabbix configuration rely on templates = set of applications, items, triggers and actions.
  1. Each template has a list of applications.
  1. Each application has a set of items = datasource
  1. Each item has some triggers = conditions to raise an event with a specific alert level and type
  1. Each trigger is bound to some actions = action to perform on when the trigger event is sent
  1. Each host belongs to one or more groups. Each group has some related templates they apply to their hosts


Access templates

Zabbix template access

→ Configuration menu >> Templates


Don't forget to choose the group of template you want to see.


Create new template

You can request a new template creation from the template menu:

Zabbix template 01 create template

→ Configuration menu >> Templates >> Create template


Then, you just have to fill up the forms:

  • Tab 1 Template : Give a template a name. Template name = Visible name


  • Tab 2 Linked templates : If you plan to use Linux then create a link to Template OS Linux. Otherwise, create a link to Zabbix agent.


Zabbix create template tab2


  • Tab 3 Macros : nothing to do over here !


How to create a new application and related item(s)

Access / create application

  • Access applications' list

Zabbix template 04 applications

→ Configuration menu >> Templates >> Searched template >> Applications


  • Create new application

Zabbix template 05 new application

→ Configuration menu >> Templates >> Searched template >> Applications >> Create application


==> Give a name to the new application and save.

==> It should appears it the applications list


Access / create item (~ datasource)

  • Items list

Zabbix template 06 App Items

→ Configuration menu >> Templates >> Searched template >> Applications >> Application's Items


  • Create / edit item

Zabbix template 07 create edit Item

→ Configuration menu >> Templates >> Searched template >> Applications >> Application's Item


  • Fill the form

Zabbix template 08 Item properties

→ Configuration menu >> Templates >> Searched template >> Applications >> Application's Items >> Item >> Create Item | edit Item


Important notes:

Each type of items has a different set of keys (functions). You can find the complete list on Zabbix documentation:


To monitor a log file I'm using:

  • Item type: zabbix agent (active) => the client will report all changes to the server, client's does NOT wait for server interrogation: it's pro-active
  • Key: logrt => to handle log files rotation



How to create a new trigger(s) and related action(s)

Access / create trigger (~ event condition)