Excellent script, thanks for sharing. This very same need is what Ive wanted since beginning with CloudLinux and I finally began searching for it today. In our case, wed prefer only admin gets the alert so if you do proceed to a WHM plugin please consider that as an option.
N.B. The script has a space in one variable at the top: $email_fr om
Also mismatching CODE tags have found their way into the second section.
For those who arent sure: Save the script to a folder, and add it to the crontab using CLI:
like this:
and it runs once a day at 5am.
N.B. The script has a space in one variable at the top: $email_fr om
Also mismatching CODE tags have found their way into the second section.
For those who arent sure: Save the script to a folder, and add it to the crontab using CLI:
Code:
$ crontab -e
Code:
0 5 * * * /usr/bin/php -q /yourfolder/lvealert.php
Comment