• Our team is looking to connect with folks who use email services provided by Plesk, or a premium service. If you'd like to be part of the discovery process and share your experiences, we invite you to complete this short screening survey. If your responses match the persona we are looking for, you'll receive a link to schedule a call at your convenience. We look forward to hearing from you!
  • We are looking for U.S.-based freelancer or agency working with SEO or WordPress for a quick 30-min interviews to gather feedback on XOVI, a successful German SEO tool we’re looking to launch in the U.S.
    If you qualify and participate, you’ll receive a $30 Amazon gift card as a thank-you. Please apply here. Thanks for helping shape a better SEO product for agencies!
  • The BIND DNS server has already been deprecated and removed from Plesk for Windows.
    If a Plesk for Windows server is still using BIND, the upgrade to Plesk Obsidian 18.0.70 will be unavailable until the administrator switches the DNS server to Microsoft DNS. We strongly recommend transitioning to Microsoft DNS within the next 6 weeks, before the Plesk 18.0.70 release.
  • The Horde component is removed from Plesk Installer. We recommend switching to another webmail software supported in Plesk.

Event Handler Issues

CruzMark

Regular Pleskian
I'm having an issue with a couple of event handlers. I'm testing using the code from the admin guide, modified for the "Disk space limit for client account reached" event.


The code is:

#!/bin/sh

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 "client limits exceeded" >> /tmp/event_handler.log # information on the client account

echo "name: ${NEW_CONTACT_NAME}" >> /tmp/event_handler.log # client's name
echo "diskspace: ${NEW_MAXIMUM_DISK_SPACE}" >> /tmp/event_handler.log # client'sdiskspace

echo "--------------" >> /tmp/event_handler.log


and the event handler just calls the script.

The result I'm getting for this (when I run the DailyMaintenance script) is:

--------------
Thu Apr 29 17:42:57 PDT 2010
uid=0(root) gid=0(root) groups=0(root),1(bin),2(daemon),3(sys),4(adm),6(disk),10(wheel)
client limits exceeded
name:
diskspace: 2097152
--------------

In other words, the NEW_CONTACT_NAME is not being sent. I've also tried using OLD_CONTACT_NAME to no avail.

I'm seeing the same behavior with a script modified to trap the "Disk Space Limit for Domain Reached" event.

So, is there a bug here, or am I doing something wrong?

Thanks for your help.
 
Thank you gor detailed description of problem. Really, we have already submitted bugreport regarding this problem. It is under developer's investigation now and I hope it will be fixed in the next Plesk update.
 
Back
Top