#1 (permalink)  
Old 04-16-2009, 09:38 PM
Registered User
 
Join Date: Mar 2008
Posts: 8
Ben Harris is on a distinguished road
Exclamation 509 Bandwidth Limit Exceeded

Hi there,

I'm currently working on a script to kind of detect if a site is down, or isn't as it should be. It is all working fine, but one of the things I was working on was identifying sites which have exceeded their bandwidth limit. I thought this would be easy as the Bandwidth Limit Exceeded page had its own HTTP status code, but when I came to test it out on an account which had exceeded its bandwidth limit, it would not work.

(I would like to add here that I know I can view accounts over their bandwidth limits within WHM, the script I am designing however needs to be able to identify the sites "status" no-matter which server the site is on)

I looked into it further, and it turns out that the page is actually returning a 500 Internal Server Error page and not the 509 status code.

I took a look in /usr/local/cpanel/apache/mod_bwlimited.c and I can see clearly that the status code is defined in it, and it all looked OK.

Is anyone else seeing the same thing? Is it a bug or just my server?

Regards,

Ben
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply

Tags
mod_bwlimited 509

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT -5. The time now is 02:15 PM.


Powered by vBulletin® Version 3.8.2
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
© cPanel Inc