Sponsor:

Server and Web Integrator
Link:
Kloxo-MR logo
6.5.0 or 7.0.0
Click for "How to install"
Donation/Sponsorship:
Kloxo-MR is open-source.
Donate and or Sponsorship always welcome.
Click to:
Click Here
Please login or register. 2024-04-25, 18:06:56

Author Topic: [REQUEST] scavenge email  (Read 3762 times)

0 Members and 1 Guest are viewing this topic.

Offline chrisf

  • Senior Master
  • **
  • Posts: 883
  • Karma: +11/-1
  • Gender: Male
  • Be the change that you wish to see in the world.
    • View Profile
    • Conviction's Hosting
[REQUEST] scavenge email
« on: 2014-06-07, 03:36:17 »
In order to keep track of scavenge, on scavenge set time page (admin -> scavenge config) have a check box for:

[ ] Send email to Admin when scavenge completes

Then if box is checked, send an email like:

Subject: Scavenge has completed

Scavenge started: May x, 20xx, xx:xx:xx
Scavenge completed: Xxx xx 20xx, xx:xx:xx

---------
This would be very easy to implement.

Thank you for considering.
Christopher

Knowledge in: PHP, Perl, MySQL, Javascript, Actionscript, FLASH, HTML, CSS
Server Administrator / Developer: https://convictionshosting.com

Offline Spacedust

  • Super Grand Master
  • ****
  • Posts: 4,050
  • Karma: +1/-0
    • View Profile
Re: [REQUEST] scavenge email
« Reply #1 on: 2014-06-07, 22:22:40 »
+1 from me ;)

Offline chrisf

  • Senior Master
  • **
  • Posts: 883
  • Karma: +11/-1
  • Gender: Male
  • Be the change that you wish to see in the world.
    • View Profile
    • Conviction's Hosting
Re: [REQUEST] scavenge email
« Reply #2 on: 2014-06-08, 10:52:48 »
This is very easy to do, please add this Mustafa.  This way it is easy to know scavenge is running, and how long it takes.
Christopher

Knowledge in: PHP, Perl, MySQL, Javascript, Actionscript, FLASH, HTML, CSS
Server Administrator / Developer: https://convictionshosting.com

Offline MRatWork

  • Administrator
  • The Elite
  • *****
  • Posts: 15,807
  • Karma: +119/-11
  • Gender: Male
    • View Profile
    • MRatWork Forum
Re: [REQUEST] scavenge email
« Reply #3 on: 2014-06-08, 11:20:15 »
Try update your 6.5.1.b
..:: MRatWork (Mustafa Ramadhan Projects) ::..
-- Server/Web-integrator - Web Hosting (Kloxo-MR READY!) --

Offline chrisf

  • Senior Master
  • **
  • Posts: 883
  • Karma: +11/-1
  • Gender: Male
  • Be the change that you wish to see in the world.
    • View Profile
    • Conviction's Hosting
Re: [REQUEST] scavenge email
« Reply #4 on: 2014-06-09, 07:42:21 »
Thank you Mustafa!   After waiting for scavenge to run and it never did, I realized why, and propose a fix.

First, in scavenge.php please change
Code: [Select]
$starttime = time();
And
Code: [Select]
$endtime = time();

To

Code: [Select]
$starttime = date('m/d/Y h:i:s a', time());

$endtime = date('m/d/Y h:i:s a', time());

So in email it is human readable time not a unix timestamp ;)

Now, the reason for scavenge not running when I set it, say 0 hr 15 min is due to php54s date.timezone setting.  in /usr/local/lxlabs/kloxo/init/php54s/php54s.ini it is set to 'Europe/London'.  It makes my lxphp time not the same as my server.  I need 'America/Detroit'.  I set it in the above ini and script/restart, lxphp now set correctly.  Scavenge ran exactly when I set time in kloxoMR panel! :)  You need to have somewhere to set kloxo php date.timezone so on update I don't have to keep changing /usr/local/lxlabs/kloxo/init/php54s/php54s.ini

Maybe a flag file?  kloxophptimezone.flg  with one line, the timezone setting, for me:
Code: [Select]
America/Detroit

Then in /script/cleanup set timezone for correct kloxo php.ini to that timezone.

Understand?  I try to explain good for you.

Also, email was sent from Admin@xxx.xx.xx.xx (server ip).
« Last Edit: 2014-06-09, 07:52:09 by chrisf »
Christopher

Knowledge in: PHP, Perl, MySQL, Javascript, Actionscript, FLASH, HTML, CSS
Server Administrator / Developer: https://convictionshosting.com

 


Top 4 Global Search Engines:    Google    Bing    Baidu    Yahoo

Page created in 0.028 seconds with 18 queries.

web stats analysis