Page 1 of 1

Help with ignoring directory in users homedir

Posted: 19 Mar 2017, 17:26
by jumptofta
I keep getting false positive for (cxswatch Scanning /home/user/public_html/wp-content/cache/supercache/www.userdomain.com).

I have already put (hdir:/public_html/wp-content/cache/supercache) in cxs.ignore and restarted the service.

I still keep seeing many email regarding the same false positive any help would be great.

Re: Help with ignoring directory in users homedir

Posted: 05 Apr 2017, 10:48
by DigitalEssence
Hi,

can you paste your cxs.ignore file and also a copy of the logs where it is showing these directories being scanned.

Not sure I can be much help but it may help others to investigate the issue for you.

Re: Help with ignoring directory in users homedir

Posted: 05 Apr 2017, 14:01
by DigitalEssence
Just to add.

I added the following to my cxs.ignore and restarted the service:

Code: Select all

hdir:/public_html/wp-content/cache
hdir:/public_html/wp-content/wflogs
hfile:/public_html/error_log
And then get this in my logs:

Code: Select all

Apr  5 13:07:04 squirrel cxswatch[6921]: WARNING: '/home3/enamay/public_html/wp-content/cache/db/all/104' scanned 6 times in the last 30 seconds, you might want to ignore this resource
Apr  5 13:07:04 squirrel cxswatch[6921]: Ignoring resource for the next 300 seconds: '/home3/enamay/public_html/wp-content/cache/db/all/104'
Apr  5 13:07:04 squirrel cxswatch[6921]: WARNING: '/home3/enamay/public_html/wp-content/cache/db/all/63c' scanned 6 times in the last 30 seconds, you might want to ignore this resource
Apr  5 13:07:04 squirrel cxswatch[6921]: Ignoring resource for the next 300 seconds: '/home3/enamay/public_html/wp-content/cache/db/all/63c'
Apr  5 13:07:04 squirrel cxswatch[6921]: WARNING: '/home3/enamay/public_html/wp-content/cache/db/all/d55' scanned 6 times in the last 30 seconds, you might want to ignore this resource
Apr  5 13:07:04 squirrel cxswatch[6921]: Ignoring resource for the next 300 seconds: '/home3/enamay/public_html/wp-content/cache/db/all/d55'
Apr  5 13:07:04 squirrel cxswatch[6921]: WARNING: '/home3/enamay/public_html/wp-content/cache/db/all/674' scanned 6 times in the last 30 seconds, you might want to ignore this resource
Apr  5 13:07:04 squirrel cxswatch[6921]: Ignoring resource for the next 300 seconds: '/home3/enamay/public_html/wp-content/cache/db/all/674'
Apr  5 13:07:04 squirrel cxswatch[6921]: WARNING: '/home3/enamay/public_html/wp-content/cache/db/all/78e' scanned 6 times in the last 30 seconds, you might want to ignore this resource
Apr  5 13:07:04 squirrel cxswatch[6921]: Ignoring resource for the next 300 seconds: '/home3/enamay/public_html/wp-content/cache/db/all/78e'
Apr  5 13:07:04 squirrel cxswatch[6921]: WARNING: '/home3/enamay/public_html/wp-content/cache/db/all/3fd' scanned 6 times in the last 30 seconds, you might want to ignore this resource
Apr  5 13:07:04 squirrel cxswatch[6921]: Ignoring resource for the next 300 seconds: '/home3/enamay/public_html/wp-content/cache/db/all/3fd'
Apr  5 13:07:04 squirrel cxswatch[6921]: WARNING: '/home3/enamay/public_html/wp-content/cache/db/all/8b3' scanned 6 times in the last 30 seconds, you might want to ignore this resource
Apr  5 13:07:04 squirrel cxswatch[6921]: Ignoring resource for the next 300 seconds: '/home3/enamay/public_html/wp-content/cache/db/all/8b3'
Apr  5 13:07:04 squirrel cxswatch[6921]: WARNING: '/home3/enamay/public_html/wp-content/cache/db/options/053' scanned 6 times in the last 30 seconds, you might want to ignore this resource
Apr  5 13:07:04 squirrel cxswatch[6921]: Ignoring resource for the next 300 seconds: '/home3/enamay/public_html/wp-content/cache/db/options/053'
Apr  5 13:07:04 squirrel cxswatch[6921]: WARNING: '/home3/enamay/public_html/wp-content/cache/db/all/8e7' scanned 6 times in the last 30 seconds, you might want to ignore this resource
Apr  5 13:07:04 squirrel cxswatch[6921]: Ignoring resource for the next 300 seconds: '/home3/enamay/public_html/wp-content/cache/db/all/8e7'
Apr  5 13:07:04 squirrel cxswatch[6921]: WARNING: '/home3/enamay/public_html/wp-content/cache/db/all/cc6' scanned 6 times in the last 30 seconds, you might want to ignore this resource
Apr  5 13:07:04 squirrel cxswatch[6921]: Ignoring resource for the next 300 seconds: '/home3/enamay/public_html/wp-content/cache/db/all/cc6'
Apr  5 13:07:04 squirrel cxswatch[6921]: WARNING: '/home3/enamay/public_html/wp-content/cache/db/all/aac' scanned 6 times in the last 30 seconds, you might want to ignore this resource
Apr  5 13:07:04 squirrel cxswatch[6921]: Ignoring resource for the next 300 seconds: '/home3/enamay/public_html/wp-content/cache/db/all/aac'
Apr  5 13:07:04 squirrel cxswatch[6921]: WARNING: '/home3/enamay/public_html/wp-content/cache/db/all/b6a' scanned 6 times in the last 30 seconds, you might want to ignore this resource
Apr  5 13:07:04 squirrel cxswatch[6921]: Ignoring resource for the next 300 seconds: '/home3/enamay/public_html/wp-content/cache/db/all/b6a'
Apr  5 13:07:04 squirrel cxswatch[6921]: WARNING: '/home3/enamay/public_html/wp-content/cache/db/options/6be' scanned 6 times in the last 30 seconds, you might want to ignore this resource
Apr  5 13:07:04 squirrel cxswatch[6921]: Ignoring resource for the next 300 seconds: '/home3/enamay/public_html/wp-content/cache/db/options/6be'
Apr  5 13:07:04 squirrel cxswatch[6921]: WARNING: '/home3/enamay/public_html/wp-content/cache/db/all/975' scanned 6 times in the last 30 seconds, you might want to ignore this resource
Apr  5 13:07:04 squirrel cxswatch[6921]: Ignoring resource for the next 300 seconds: '/home3/enamay/public_html/wp-content/cache/db/all/975'
Apr  5 13:07:04 squirrel cxswatch[6921]: WARNING: '/home3/enamay/public_html/wp-content/cache/db/options/fe1' scanned 6 times in the last 30 seconds, you might want to ignore this resource
Apr  5 13:07:04 squirrel cxswatch[6921]: Ignoring resource for the next 300 seconds: '/home3/enamay/public_html/wp-content/cache/db/options/fe1'
Apr  5 13:07:04 squirrel cxswatch[6921]: WARNING: '/home3/enamay/public_html/wp-content/cache/db/all/db0' scanned 6 times in the last 30 seconds, you might want to ignore this resource
Apr  5 13:07:04 squirrel cxswatch[6921]: Ignoring resource for the next 300 seconds: '/home3/enamay/public_html/wp-content/cache/db/all/db0'
Apr  5 13:07:04 squirrel cxswatch[6921]: WARNING: '/home3/enamay/public_html/wp-content/cache/db/all/b05' scanned 6 times in the last 30 seconds, you might want to ignore this resource
Apr  5 13:07:04 squirrel cxswatch[6921]: Ignoring resource for the next 300 seconds: '/home3/enamay/public_html/wp-content/cache/db/all/b05'
Apr  5 13:07:10 squirrel cxswatch[6921]: WARNING: '/home3/enamay/public_html/wp-content/cache/db/all/8c5' scanned 6 times in the last 30 seconds, you might want to ignore this resource
Apr  5 13:07:10 squirrel cxswatch[6921]: Ignoring resource for the next 300 seconds: '/home3/enamay/public_html/wp-content/cache/db/all/8c5'
So I am seeing the same issue as you are.

Re: Help with ignoring directory in users homedir

Posted: 06 Apr 2017, 16:55
by DigitalEssence
Seems we have to add

Code: Select all

--ignore /etc/cxs/cxs.ignore 
to the cxs command in /etc/cxs/cxswatch.sh and then restart cxswatch.

I've just done this and restarted. looks as though the --ignore is missing from the command.