• Introducing WebPros Cloud - a fully managed infrastructure platform purpose-built to simplify the deployment of WebPros products !  WebPros Cloud enables you to easily deliver WebPros solutions — without the complexity of managing the infrastructure.
    Join the pilot program today!
  • Support for BIND DNS has been removed from Plesk for Windows due to security and maintenance risks.
    If a Plesk for Windows server is still using BIND, the upgrade to Plesk Obsidian 18.0.70 will be unavailable until the administrator switches the DNS server to Microsoft DNS.

Plesk 12 Event Handlers -- where are they stored?

Status
Not open for further replies.

gbotica

Regular Pleskian
Hi,

I'm trying to find an easy way to copy a number of Event Handlers from the Plesk 12 Event Manager from one Plesk install to another. Is there a way to do this?

I've had a look, but cannot seem to figure it out -- are these handlers stored in the PSA database, or somewhere on the file system?

Thanks.
 
Yes, event handlers stored in psa database. Additionaly there is special CLI utility. For instance:

[root@ppu12-1 ~]# /usr/local/psa/bin/event_handler -l
Id 1
Name Service stopped
Priority 0
User root
Command /usr/local/psa/admin/bin/modules/watchdog/wd --unmonit-service=<new_service> --plesk-name

[root@ppu12-1 ~]# plesk db

mysql> select * from event_handlers;
+----+-----------+----------+------+-------------------------------------------------------------------------------------------+
| id | action_id | priority | user | command |
+----+-----------+----------+------+-------------------------------------------------------------------------------------------+
| 1 | 2 | 0 | root | /usr/local/psa/admin/bin/modules/watchdog/wd --unmonit-service=<new_service> --plesk-name |
+----+-----------+----------+------+-------------------------------------------------------------------------------------------+
1 row in set (0.00 sec)
 
Status
Not open for further replies.
Back
Top