Creating an action
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:
- Open Configuration | Actions.
- 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:
- Next, select Admin as the user to send the recovery message under Send to Users, and click Add:
Congratulations! You have just configured the simplest possible action.