Programming Event Handlers to Execute Custom Scripts on Parallels Plesk Panel Server

Parallels Plesk Panel administrators can assign handlers to certain events in Parallels Plesk Panel and configure the event handlers to execute commands, for example custom scripts.

Parallels Plesk Panel administrators have the ability to monitor Parallels Plesk Panel user actions by programming Parallels Plesk Panel to automatically execute commands in response to specific control panel events. A control panel event is a successfully completed operation performed on a Parallels Plesk Panel object. For the list of Parallels Plesk Panel events that can trigger event handlers, see "Parallels Plesk Panel Events".

To create an event handler and configure it to execute a command, for example a custom script, use Event Manager in Parallels Plesk Panel. For each event type, Parallels Plesk Panel can pass a set of environmental variables. You have the ability to specify the specific environmental variables to be passed on to event handler commands each time an event handler is activated. For more information on the specific sets of environment variables passed on to event handler commands for different event types, see "Event Parameters Passed by Event Handlers".

This section provides background information about and complete instructions on creating and configuring Parallels Plesk Panel event handlers by Parallels Plesk Panel administrators.

In this chapter:

Parallels Plesk Panel Events

Creating Event Handlers

Removing Event Handlers

Composing Event Handler Command

Script Writing Rules