To add the template, follow the below steps:
- Go to Configuration > Host and click on Template.
(2) On the next page, please click on Create Template.
(3) In this page, you need to add the Template name, Visible name which you want to be visible, add the Groups and then click on Add button.
The required parameters to enter here are
1. Template name : Enter a template name. Alpha-numericals, spaces and underscores are allowed.
2. Groups: Select one or several groups by clicking Select button. The template must belong to a group.
When done, click Add. Your new template should be visible in the list of templates.
To add Items in Applications, follow the below steps.
(1) Go to Configuration > Template. In that page, click on the template you want to add the Item to.
(2) Go to Configuration → Hosts and find the 'test' we have created. Click on the Items link in the row of 'test', and then click on Create item.
(3) You will see the below screen. Give the proper name to the new Item. Here you need to enter
- Name: Enter CPU load .
- Key: Enter system.cpu.load .
- Type of information: For the system.cpu.load key, set it to Numeric (float).
To add the Trigger, follow the below steps.
(1) To configure a trigger for our item, go to Configuration → Hosts, find 'test' and click on Triggers next to it and then on Create trigger. This presents us with a trigger definition form
(2) For our trigger, enter Name
- Enter CPU load too high on 'test' for 5 minutes as the value. This will be the trigger name displayed in lists and elsewhere.
and Expression
- Enter: avg(/test/system.cpu.load,5m)>4
This is the trigger expression. Make sure that the expression is entered right, down to the last symbol. The item key here (system.cpu.load) is used to refer to the item. This particular expression basically says that the problem threshold is exceeded when the CPU load average value for 5 minutes is over 4.
When done, click Add. The new trigger should appear in the trigger list.