• If you are still using CentOS 7.9, it's time to convert to Alma 8 with the free centos2alma tool by Plesk or Plesk Migrator. Please let us know your experiences or concerns in this thread:
    CentOS2Alma discussion

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