Skip to content
  • Solutions
    By Role
    • For Developers
    • For Content Managers
    • For Agencies
    • For IT Admins
    • For Web Hosters
    • For Developers
    • For Content Managers
    • For Agencies
    • For IT Admins
    • For Web Hosters
    By Infrastructure
    • Overview
    • AWS
    • Microsoft Azure
    • Alibaba Cloud
    • Google Cloud Platform
    • Vultr
    • Overview
    • AWS
    • Microsoft Azure
    • Alibaba Cloud
    • Google Cloud Platform
    • Vultr
    • Digital Ocean
    • Linode
    • Upcloud
    • Oracle
    • OVH
    • Digital Ocean
    • Linode
    • Upcloud
    • Oracle
    • OVH
  • Product
    • Plesk Features
    • Plesk Editions
    • What’s new
    • Pricing
    • Roadmap
    • Lifecycle Policy
    • Extensions Catalogue
  • Pricing
  • Extensions
    Featured Extensions
    • SocialBee
    • WP Toolkit
    • Sitejet Builder for Plesk
    • SEO Toolkit
    • Joomla! Toolkit
    • Premium Email
    • Email Security
    • SocialBee
    • WP Toolkit
    • Sitejet Builder for Plesk
    • SEO Toolkit
    • Joomla! Toolkit
    • Premium Email
    • Email Security
    Bundles and packs:
    • Business and Collaboration Edition
    • WP pack
    • Hosting pack
    • Power pack
    • Language pack
    • Business and Collaboration Edition
    • WP pack
    • Hosting pack
    • Power pack
    • Language pack

    See all Extensions

  • For Partners
    • Plesk Contributor Program
    • Plesk Partner Program
    • Affiliate program
    • Plesk University
  • Help Center
    • Documentation
    • Professional Services
    • Support
    • Contact Us
    • Wiki
    • Forum
  • Plesk 360 login
  • Free Trial
  • Pricing
  • Solutions
    • By Role
      • For Developers
      • For Content Managers
      • For Agencies
      • For IT Admins
      • For Web Hosters
    • By Infrastructure
      • Overview
      • Plesk on Amazon Web Services (AWS & Lightsail)
      • Microsoft Azure
      • Alibaba Cloud
      • Google Cloud Platform
      • Vultr
      • DigitalOcean
      • Linode
      • UpCloud
      • Oracle
      • OVH
  • Products
  • Pricing
  • Extensions
    • Featured Extensions
      • SocialBee
      • WP Toolkit
      • Sitejet Builder for Plesk
      • SEO Toolkit
      • Joomla! Toolkit
      • Premium Email
      • Email Security
    • Bundles and packs:
      • Business and Collaboration Edition
      • WP pack
      • Hosting pack
      • Power pack
      • Language pack
      • See all Extensions
  • For Partners
    • Plesk Contributor Program
    • Plesk Partner Program
    • Affiliate Program
    • Plesk University
  • Help Center
    • Documentation
    • Professional Services
    • Support
    • Contact Us
    • Wiki
    • Forum
  • Plesk 360 login
  • Free Trial
  • Pricing
  • Solutions
    • By Role
      • For Developers
      • For Content Managers
      • For Agencies
      • For IT Admins
      • For Web Hosters
    • By Infrastructure
      • Overview
      • Plesk on Amazon Web Services (AWS & Lightsail)
      • Microsoft Azure
      • Alibaba Cloud
      • Google Cloud Platform
      • Vultr
      • DigitalOcean
      • Linode
      • UpCloud
      • Oracle
      • OVH
  • Products
  • Pricing
  • Extensions
    • Featured Extensions
      • SocialBee
      • WP Toolkit
      • Sitejet Builder for Plesk
      • SEO Toolkit
      • Joomla! Toolkit
      • Premium Email
      • Email Security
    • Bundles and packs:
      • Business and Collaboration Edition
      • WP pack
      • Hosting pack
      • Power pack
      • Language pack
      • See all Extensions
  • For Partners
    • Plesk Contributor Program
    • Plesk Partner Program
    • Affiliate Program
    • Plesk University
  • Help Center
    • Documentation
    • Professional Services
    • Support
    • Contact Us
    • Wiki
    • Forum
  • Plesk 360 login
  • Free Trial
Plesk 360 login
Free Trial

Knowledge Base

Event Parameters Passed by Event Handlers – Database disk quota events (Windows only)

 
administrator guideevent parameters passed by event handlersserver administrationdatabasedomain name

Events:

  • MySQL database quota reached
  • MySQL database soft quota reached
  • Microsoft SQL Server database quota reached
  • Microsoft SQL Server database soft quota reached
Parameter name and description Environment variable name Notes
Subscription’s domain name OLD_DOMAIN_NAME  
Subscription’s GUID OLD_DOMAIN_GUID  
Customer’s GUID OLD_CLIENT_GUID  
Customer’s GUID OLD_CLIENT_GUID  
The total amount of disk space that can be used by MySQL
databases on a subscription
OLD_MYSQL_DATABASE_QUOTA Only for MySQL events
Disk space currently used by MySQL databases on a subscription OLD_MYSQL_DATABASE_USAGE Only for MySQL events
The total amount of disk space that can be used by Microsoft
SQL Server databases on a subscription
OLD_MICROSOFT_SQL_DATABASE_QUOTA Only for MS SQL Server events
Disk space currently used by Microsoft SQL Server databases on
a subscription
OLD_MICROSOFT_SQL_DATABASE_USAGE Only for MS SQL Server events

The soft limit can be changed in the panel.ini file by
specifying the option databaseManagement.diskSpaceSoftQuota. The value
is percentage of the limit (default is 85%). For example:

[databaseManagement]
diskSpaceSoftQuota=50

Example of event handler:

C:tempmssql_soft.bat <NEW_DOMAIN_NAME> <NEW_DOMAIN_GUID> <NEW_CLIENT_GUID> <NEW_MICROSOFT_SQL_DATABASE_QUOTA> <NEW_MICROSOFT_SQL_DATABASE_USAGE> <OLD_DOMAIN_NAME> <OLD_DOMAIN_GUID> <OLD_CLIENT_GUID>
echo "--------------" >> c:tempmssql_soft_handler.log
date /T >> c:tempmssql_soft_handler.log
echo "NEW_DOMAIN_NAME: %1" >> c:tempmssql_soft_handler.log
echo "NEW_DOMAIN_GUID: %2" >> c:tempmssql_soft_handler.log
echo "NEW_CLIENT_GUID: %3" >> c:tempmssql_soft_handler.log
echo "NEW_MICROSOFT_SQL_DATABASE_QUOTA: %4" >> c:tempmssql_soft_handler.log
echo "NEW_MICROSOFT_SQL_DATABASE_USAGE: %5" >> c:tempmssql_soft_handler.log
echo "OLD_DOMAIN_NAME: %6" >> c:tempmssql_soft_handler.log
echo "OLD_DOMAIN_GUID: %7" >> c:tempmssql_soft_handler.log
echo "OLD_CLIENT_GUID: %8" >> c:tempmssql_soft_handler.log
echo "--------------" >> c:tempmssql_soft_handler.log
Tweet
Share
Share
Email
0 Shares
Read the full article
Related Posts

Server Management: All You Need To Know

Read More »

Plesk with Centralized Database and Network File System

Read More »

6 Things to Keep in Mind When Choosing an Ideal Server for Big Data Requirements

Read More »
Knowledge Base

Event Parameters Passed by Event Handlers – SSL/TLS certificate on mail server assigned/unassigned

Read More »

Event Parameters Passed by Event Handlers – Server health status changed

Read More »

Connecting to External Databases (Windows)

Read More »

Configuring ASP.NET (Windows)

Read More »

Hosting Wiki

  • Server Redundancy
  • PostgreSQL
  • Bare Metal Server
  • MySQL
  • Oracle VM Server
  • Server Virtualization Software
  • Windows Server
  • MSSQL
  • SQL
  • Domain
  • SQL database
  • NoSQL Database
  • Web Server
  • DNS Server
X-twitter Linkedin Youtube Reddit Github
  • Product
  • Login
  • Pricing
  • Editions
  • For Partners
  • Partner Program
  • Contributor Program
  • Affiliate Program
  • Plesk University
  • Company
  • Blog
  • Careers
  • Events
  • About Plesk
  • Our Brand
  • Resources
  • User and Admin guides
  • Help Center
  • Migrate to Plesk
  • Contact Us
  • Hosting Wiki
  • Forum
  • Legal
  • Legal
  • Privacy Policy
  • Imprint

© 2025 WebPros International GmbH

Part of the WebPros®  Family