Many getwork.php files
|
04-30-2017, 08:07 AM
(This post was last modified: 04-30-2017 08:09 AM by ShaneLabs.)
Post: #1
|
|||
|
|||
Many getwork.php files
Does anyone know what would cause thousands of getwork.php files to be duplicated in the /var/www directory? Here's an image:
![]() They're all empty, various dates spanning months since I first created the server. Are these lock files that aren't able to be deleted due to permissions or something? Thanks, Shane |
|||
05-12-2017, 11:03 PM
Post: #2
|
|||
|
|||
RE: Many getwork.php files
They aren't lock files. Is that the server AMI?
If I had to guess, I may have screwed up the crontab entry that makes fake requests to getwork.php to allow the cron jobs to run without any agents present. If it is doing a wget it may be missing -O /dev/null. Check crontab-e and see what the cron job looks like. |
|||
05-18-2017, 02:42 AM
Post: #3
|
|||
|
|||
RE: Many getwork.php files
Yes, I am using the server AMI - and yup, just checked the crontab for www-data user and the entry read:
/usr/bin/wget "http://127.0.0.1/work/getwork.php" > /dev/null 2>&1 I updated with the -O to read: /usr/bin/wget -O /dev/null "http://127.0.0.1/work/getwork.php" 2>&1 I'll delete those existing files and see if they come back. BTW - good to know there's a cron entry that allows the server to run appropriately without polling agents - great idea. |
|||
« Next Oldest | Next Newest »
|
User(s) browsing this thread: 1 Guest(s)