• We value your experience with Plesk during 2024
    Plesk strives to perform even better in 2025. To help us improve further, please answer a few questions about your experience with Plesk Obsidian 2024.
    Please take this short survey:

    https://pt-research.typeform.com/to/AmZvSXkx
  • 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.

set event handler problem

Darko Bazulj

Basic Pleskian
Hi,

plesk : 12.0.18 Update #63

I'm playing with event manager but I have problem with setting simple event handler.
http://download1.parallels.com/Plesk/PP12/12.0/Doc/en-US/online/plesk-administrator-guide/59206.htm

I tested simple domain alias created event.

event : domain alias created
priority : 0
user : root
command : /usr/local/psa/bin/test-handler.sh


#!/bin/bash
echo "--------------" >> /tmp/event_handler.log
/bin/date >> /tmp/event_handler.log # information on the event date and time
/usr/bin/id >> /tmp/event_handler.log # information on the user, on behalf of which the script was executed (to ensure control)
echo "Domain alias added created" >> /tmp/event_handler.log # information on the created customer account
echo "Domain name: ${NEW_DOMAIN_ALIAS_NAME}" >> /tmp/event_handler.log # customer's name
#echo "Clien GUID: ${NEW_CLIENT_GUID}" >> /tmp/event_handler.log # customer's username in Plesk
echo "--------------" >> /tmp/event_handler.log
env >> /tmp/event_handler.log
echo "--------------" >> /tmp/event_handler.log

I don't get anything in the log file.

Is there any log which I can check what is happening with event or some other idea?

Regards,
Darko Bazulj
 
Hi, @Darko Bazulj!

It may be confusing but there are 2 events about creation of alias:
- Default domain, alias created (when alias is created for main domain)
- Domain alias created (When alias is creted for additional domain)

Some integrator use them. Check both of them.
 
Hi,

I've tested both events today but nothing is happening.
Maybe I'm missing something.

But I can't find any logs to see what is happening.

Do you have idea where to look or how to test to see what is happening?

Regards,
Darko Bazulj
 
Hi,

I have fixed the problem :)
I deleted everything, restarted server, checked script, permissions and created event handler, after that event handler started working.
Probably I was missing something but now I was cerfull.

Thank you for helping me.

Regards,
Darko Bazulj
 
Back
Top