• Introducing WebPros Cloud - a fully managed infrastructure platform purpose-built to simplify the deployment of WebPros products !  WebPros Cloud enables you to easily deliver WebPros solutions — without the complexity of managing the infrastructure.
    Join the pilot program today!
  • The Horde component is removed from Plesk Installer. We recommend switching to another webmail software supported in Plesk.
  • 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.

sheduled task - domain disable.

C

calcomputer

Guest
Scheduling Tasks
Statistics calculation - generates statistics on the limits imposed on domains, such as traffic, disk usage, etc. If the utility detects that a limit is exceeded for a domain, this domain will be disabled.

What command have I to run to make disable a domain when the traffic limit is exceeded or the disk usage limit is exceeded?

Regards,

Carlos
 
You should use Event Manager mechanism. Go to Plesk CP -> Server -> Event manager , then Add New event handler and then you can chose either:
Limit on disk space reached for domain
or 'Limit on traffic reached for domain'
To read more about the mechanism on the page click "Help" in the left column. To disable the domain use the following command (description to be exact):

http://download1.swsoft.com/Plesk/Plesk8.2/Doc/plesk-8.2-win-cli/25738.htm
the domain name for the event is:
"<new_domain_name>"
 
Thanks, for example.

The command.

>domain.exe --off <domain_name> or <new_domain_name>


Can I specify the limit exceeded? or makes disable the domain if it exceeds all domain limits, the command above?

Carlos Lanzo
 
Limit values are specified under 'Client > Limits' and 'Domain > Limits' in Plesk CP. The event handler will disable the domain as soon as the 'Limit on traffic reached for a domain'.
 
Thanks.
Client > Limits' and 'Domain > Limits' this I know.

Only I need know If the command (domain.exe --off <domain_name>) make disable all limits or can I to indicate the specific limit (traffic,Mb,etc)?

Regards.
Carlos Lanzo. (I speack spanish - Sorry)
 
Hola Carlos! You see, this command (domain.exe --off <domain_name> or any other) will run as soon as some Event happens. There are dozens of various Events listed under Event Handler > Even drop-down menu -- you can choose also various kinds of limits reached. So, there is no way to specify the Event type in the command itself, but you can choose it from the drop-down menu. The most interesting about Event Handler is that the list of commands is not restricted to "domain.exe" command, just have a see here: http://download1.swsoft.com/Plesk/Plesk8.2/Doc/plesk-8.2-win-cli/index.htm
 
Back
Top