Support

Admin Tools

#28026 Automated PHP file scan output?

Posted in ‘Admin Tools for Joomla! 4 & 5’
This is a public ticket

Everybody will be able to see its contents. Do not include usernames, passwords or any other sensitive information.

Environment Information

Joomla! version
n/a
PHP version
n/a
Admin Tools version
n/a

Latest post by on Saturday, 29 July 2017 17:17 CDT

douglasmccarroll
Hi,

I've got a cron job for the PHP file scan set up and working successfully. My hosting company (DreamHost) emails me the output from the cron job each time it is run. I'd like to set up a Gmail filter so that the emails for problem-free runs bypass my inbox.

A successful run gives me output like the output below.

Is it safe for me to assume that a run that finds any problems will not have the string "File scanning job finished successfully" in it's output?

Or, alternatively, is there a string that I can expect if/when there are problems?

Thanks,

Douglas



Unsetting time limit restrictions.

Site paths determined by this script:
JPATH_BASE : /home/douglasmccarroll/languagecollaborative.com
JPATH_ADMINISTRATOR : /home/douglasmccarroll/languagecollaborative.com/administrator

Starting file scanning

Last Tick : 2017-06-27 09:00:07 GMT-0700 (PDT)
Memory used : 4.56 Mb
Warnings : no warnings issued (good)

Last Tick : 2017-06-27 09:00:07 GMT-0700 (PDT)
Memory used : 5.17 Mb
Warnings : no warnings issued (good)

Last Tick : 2017-06-27 09:00:08 GMT-0700 (PDT)
Memory used : 5.3 Mb
Warnings : no warnings issued (good)


>> ~1000 of these blocks snipped


Last Tick : 2017-06-27 09:11:05 GMT-0700 (PDT)
Memory used : 5.48 Mb
Warnings : no warnings issued (good)

Last Tick : 2017-06-27 09:11:05 GMT-0700 (PDT)
Memory used : 5.48 Mb
Warnings : no warnings issued (good)

Last Tick : 2017-06-27 09:11:05 GMT-0700 (PDT)
Memory used : 5.48 Mb
Warnings : no warnings issued (good)

File scanning job finished successfully after approximately 11 minutes
Peak memory usage: 6.27 Mb

nicholas
Akeeba Staff
Manager
The output of the CRON script simply tells you if the scan process managed to run successfully, i.e. it finished scanning your entire site. If the email contains "File scanning job finished successfully" it means that the scan is complete. If the scan failed to complete at all this line won't be printed. I would create a mail rule which looks for this line from emails coming from your site's CRON email address and automatically archive them. Thus you'll only see an email when a scan failed to run.

That said, this only tells you if the scan ran. It does NOT tell you if there were any modified or added files. This information can only be found in the scan report on your site. You can be sent a copy of that report by email. Please go to Components, Admin Tools, PHP File Change Scanner and click the Options button at the top right of the toolbar. Click on the File Scanner tab. The second option reads "Send results to this email". Enter your email address there. Now when the scan is complete you will be emailed the scan result summary, telling you how many files have been added, modified or remained the same. This is the actionable information I suspect you are looking for.

Nicholas K. Dionysopoulos

Lead Developer and Director

🇬🇷Greek: native 🇬🇧English: excellent 🇫🇷French: basic • 🕐 My time zone is Europe / Athens
Please keep in mind my timezone and cultural differences when reading my replies. Thank you!

douglasmccarroll
Great. I'm all set now. Thanks.

BTW, I love your products. :)

nicholas
Akeeba Staff
Manager
You're welcome! Thank you for your kind words :) Have a great day!

Nicholas K. Dionysopoulos

Lead Developer and Director

🇬🇷Greek: native 🇬🇧English: excellent 🇫🇷French: basic • 🕐 My time zone is Europe / Athens
Please keep in mind my timezone and cultural differences when reading my replies. Thank you!

System Task
system
This ticket has been automatically closed. All tickets which have been inactive for a long time are automatically closed. If you believe that this ticket was closed in error, please contact us.

Support Information

Working hours: We are open Monday to Friday, 9am to 7pm Cyprus timezone (EET / EEST). Support is provided by the same developers writing the software, all of which live in Europe. You can still file tickets outside of our working hours, but we cannot respond to them until we're back at the office.

Support policy: We would like to kindly inform you that when using our support you have already agreed to the Support Policy which is part of our Terms of Service. Thank you for your understanding and for helping us help you!