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
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