Article ID: 125688, created on May 31, 2015, last review on May 31, 2015

  • Applies to:
  • Plesk 11.0 for Linux
  • Plesk 11.5 for Linux


Event Handler "Service plan of reseller created" was created, according to Administrator's guide:

Here is the script:


/bin/date >> /tmp/event_handler.log 
echo "NEW_DOMAIN_TEMPLATE: ${NEW_DOMAIN_TEMPLATE}" >> /tmp/event_handler.log

But environment variable 'NEW_DOMAIN_TEMPLATE' does not have the name of the new service plan - it is empty.


This is Plesk internal issue PPPM-736, which is expected to be fixed in future Plesk updates.


Get the name of the new service plan using this script part:


pass=`cat /etc/psa/.psa.shadow`
var=`mysql -uadmin -p"$pass" psa --skip-column-names -e"select name from Templates where id=(select max( from Templates t, clients c where and c.type='reseller')"`

echo "NEW_DOMAIN_TEMPLATE: $var" >> /tmp/event_handler.log

Search Words

Event Handler

Service plan of reseller created


Event Manager

29d1e90fd304f01e6420fbe60f66f838 56797cefb1efc9130f7c48a7d1db0f0c a914db3fdc7a53ddcfd1b2db8f5a1b9c aea4cd7bfd353ad7a1341a257ad4724a 0a53c5a9ca65a74d37ef5c5eaeb55d7f 01bc4c8cf5b7f01f815a7ada004154a2

Email subscription for changes to this article
Save as PDF