Page 1 of 1

lfd Excessive resource usage squirrelmail

Posted: 11 Apr 2013, 03:52
by sneader
After upgrading to WHM 11.36, I'm getting email alerts regarding excessive resource usage with Squirrelmail, for example:
Resource: Virtual Memory Size
Exceeded: 231 > 200 (MB)
Executable: /usr/local/cpanel/3rdparty/php/53/bin/php-cgi
Command Line: /usr/local/cpanel/3rdparty/php/53/bin/php-cgi /usr/local/cpanel/base/3rdparty/squirrelmail/src/right_main.php
(in addition to right_main.php, we also see read_body.php, etc., so the php script name is not predictable)

I tried adding this to CSF, but it's not working:

# squirrelmail
pcmd:/usr/local/cpanel/3rdparty/php/53/bin/php-cgi /usr/local/cpanel/base/3rdparty/squirrelmail*

Can someone suggest the right syntax to whitelist Squirrelmail?

Thanks in advance!

- Scott

Re: lfd Excessive resource usage squirrelmail

Posted: 11 Apr 2013, 15:01
by Sergio
You have to add the following line in csf.pignore:
exe:/usr/local/cpanel/3rdparty/php/53/bin/php-cgi

Re: lfd Excessive resource usage squirrelmail

Posted: 15 Apr 2013, 15:37
by sneader
Hmmm... do I really want to start ignoring EVERYTHING related to /usr/local/cpanel/3rdparty/php/53/bin/php-cgi ??

That seems a bit dangerous, when all I want to do is whitelist squirrelmail?

Re: lfd Excessive resource usage squirrelmail

Posted: 15 Apr 2013, 15:42
by ForumAdmin
You'd probably be better off with:

Code: Select all

pcmd:/usr/local/cpanel/3rdparty/php/53/bin/php-cgi\s/usr/local/cpanel/base/3rdparty/squirrelmail/.*
Then restart lfd.

Re: lfd Excessive resource usage squirrelmail

Posted: 15 Apr 2013, 16:03
by sneader
Thanks Jonathan!! That is the push that I needed... very bad with regex, but I can take this example and use it in many ways. I appreciate your help and all your products and services!

- Scott