On executing provided script, a procedure with name "FreeDiskAlerts" will be created in [msdb] database. Later this proc can be used in jobs for automatic disk space alerts.
Users need to provide their input at below location:-
1) Search for line with text "--Set threshold for data and log files. High threshold for Log drive"
Modify the threshold value for Data and Log files drives in below line
,[Threshold] = CASE WHEN MAX(T_OUTER.Has_Log)=1 THEN 15 ELSE 10 END
By default as per script, there should be at least 15% free space on drives containing log files. Similarly 10% free space should be present on Data file drives.
Also, in case data or log files are not configured on C:\ drive of server, then minimum of 5 GB of space has been set as threshold value. This value can be modified by searching and updating below line in query:-
SELECT Drive,FreeMB,(FreeMB/1024),0,(5*1024)