To leverage our IT Automation feature here's what I recommend you to do. Assuming you have your server agent running in the server that you want to automate and created a script that will cleanup log files from your server,
1. Add an IT Automation of type server script. In the client navigate to Admin (left menu) > IT Automation > click add Automation button.
2. Give the path in which the script resides and save the automation by giving it a meaningful name. Leave the "Select Hosts for Server Script Execution" as $localhost so that you can apply this automation for any server.
3. Navigate to your server > edit the configuration of the server clicking on the hamburger icon > edit your server's threshold profile > In the Threshold Profile of your server, apply the automation for Disk Utilization Threshold and save it.
Henceforth, whenever the server's disk utilization threshold crosses 75% for 5 polls your automation will automatically be executed. You can apply as many automations as you want for a single attribute.
These steps apply to any attribute you configure for any type of monitor.
Hope this helps.
Product Manager, Site24x7