jeremiah23
12-05-2001, 02:59 PM
I am running red hat linux 7.1 using whm cpanel and I want to set up a script that would email the customer when they have gone above 75% of their bandwidth how do I go about this?
![]() | View Full Version : Using WHM and sending email when above 75% of bandwidth jeremiah23 12-05-2001, 02:59 PM I am running red hat linux 7.1 using whm cpanel and I want to set up a script that would email the customer when they have gone above 75% of their bandwidth how do I go about this? bobcares 12-06-2001, 12:11 PM Hi! I guess you would have a write a script for this. However you have to add a new database to add all the packages and their limits. Also all clients with this package info. Then it would be easy. All you have to do is check the entire bandwidth and compare if it is > 75% . If yes then send the mail. Have a great day :) Regards amar Vince 12-06-2001, 01:56 PM Simply compare the value assigned to BWLIMIT in /var/cpanel/users/username with the amount used, shown in the file /var/cpanel/bandwidth/username. Hope this helps. Vince. jeremiah23 12-06-2001, 03:31 PM Okay just compare, do you think that perl would work for this or should I use something else. and then wouldn't the script have to run I don't want to take the time to do it so would i used a cronjob for this task signed, confused in MO |