Creating an action

Now, it's time to tie all this together and tell Zabbix that we want to receive email notifications when our test box is experiencing a heavy load.

Things that tell the Zabbix server to do something upon certain conditions are called actions. An action has three main components:

  • Main configuration: This allows us to set up general options, such as the email subject and the message.
  • Action operations: These specify what exactly has to be done, including who to send the message to and what message to send.
  • Action conditions: These allow us to specify when this action is used and when operations are performed. Zabbix allows us to set many detailed conditions, including hosts, host groups, times, specific problems (triggers) and their severity, among others.

To configure actions, take the following steps:

  1. Open Configuration | Actions.
  2. Click on Create action. (Make sure that the drop-down box Event source in the top-right corner has Triggers selected.)

A form is presented that lets you configure preconditions and the action to take:

  1. First, enter a name for your new action, such as Test action, and add a new condition by selecting Trigger and =.
  2. Next, use the Select button to select the trigger that you made on your test host.  
  3. Click Add, then select the Recovery operations checkbox, and select Send message for Operation type.
  1. Next, select Admin as the user to send the recovery message under Send to Users, and click Add:

  1. Next, we should define the operation to perform, so switch to the Operations tab.
  2. In the Operations tab, insert 1h in Default operation step duration, as shown in the following screenshot:

  1. In here, click on New in the Operations block. This will open the Operation details block.
  2. In the Send to Users section, click on the Add button. In the resulting popup, click on the Admin user.
  3. Now, locate the Add control for the Operation details block. This is the first arrow in the screenshot.
  4. Next, click on Add (the second arrow) in the preceding screenshot.

Congratulations! You have just configured the simplest possible action.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
3.22.51.241