• Please be aware: Kaspersky Anti-Virus has been deprecated
    With the upgrade to Plesk Obsidian 18.0.64, "Kaspersky Anti-Virus for Servers" will be automatically removed from the servers it is installed on. We recommend that you migrate to Sophos Anti-Virus for Servers.
  • The Horde webmail has been deprecated. Its complete removal is scheduled for April 2025. For details and recommended actions, see the Feature and Deprecation Plan.
  • We’re working on enhancing the Monitoring feature in Plesk, and we could really use your expertise! If you’re open to sharing your experiences with server and website monitoring or providing feedback, we’d love to have a one-hour online meeting with you.

Issue Event Handler not calling script

BigD213

New Pleskian
Server operating system version
Ubuntu 20.04.4 LTS
Plesk version and microupdate number
Plesk Obsidian Version 18.0.44
plesk-version.png
event-handler.png

The only event that will successfully call the script /root/test-handler.sh is when I create a new mailbox (Mail account created).

The script is not called when I:
  • create a domain
  • delete a domain
  • create a subdomain
  • delete a subdomain.
Your assistance is appreciated
 
Try the Default domain (the first domain added to a subscription) created event (if you haven't already).

It's been a while since I've played with the event handlers. I don't remember when the Domain created event is fired exactly. However if I remember correctly only the Default domain (the first domain added to a subscription) created event is fired when a primary domain is added (i.e the first domain added to a subscription).
 
Try the Default domain (the first domain added to a subscription) created event (if you haven't already).

It's been a while since I've played with the event handlers. I don't remember when the Domain created event is fired exactly. However if I remember correctly only the Default domain (the first domain added to a subscription) created event is fired when a primary domain is added (i.e the first domain added to a subscription).

Thanks for this suggestion. You will see from the image I posted that this is the first item on the list that I have tried and it does not call the script.
 
You will see from the image I posted that this is the first item on the list that I have tried and it does not call the script.
Ah, right, I missed that, sorry.

I can't replicate the issue your facing though. When I create a Default domain (the first domain added to a subscription) created event and have it call a simple bash script to write to a log file it works as expected on my server when I add a primary domain in Plesk.

Could it be anything in your script?
 
Back
Top