...
- login as root to ssh
- file SuspendCheck.cron.pl copy to /scripts directory
- file SuspendCheck.pm copy to /usr/local/cpanel/Cpanel directory
- execute command:
...
Code Block | ||
---|---|---|
| ||
chmod a+x /scripts/SuspendCheck.cron.pl |
...
|
- add following crontab line: (crontab -e)
Code Block | ||
---|---|---|
| ||
*/2 * * * * /usr/bin/perl /scripts/SuspendCheck.cron.pl |
...
- you can edit threshold for account suspension and warning ticket in SuspendCheck.cron.pl file by editing %defconfig hash values. By default ticket notification value is set to 20% of CPU usage, so for testing purposes please set it to lower level.
...