I'm sure this is simple but right now my brain has ceased to operate.
I'm using the very useful ping_server module to alert me on the status of cron runs. I'm using it to notify me of when cron has run sucessfully on about 20 or so Drupal 4.6 sites that I'm having to admin. There really isn't a very usefull way to gather that very simple piece of information across many sites but its obviously simple if you only have to deal with one. I've tried to find a non-invasive and low overhead way to retrieve this information without sucess. There is some useful stuff in this link http://drupal.org/node/42498 in which the patch submitter notes
"I realized that Drupal doesn't keep track of the last cron run, which is strange, since it adds a watchdog() after every run but nothing keeps track of the time of the last run. So this patch fixes that and as a result, cleans up a few core modules to make use of this new variable."
I've added the pinging code to the ping module on one of the sites and it is working perfectly. The only problem is that is doesnt' give me the time of the ping .
The lines print like this:
Recently updated sites
site1.com - site1slogan
site2.com - site2slogan
site3.com - site3slogan
site4.com - site4slogan
As you can see the missing piece of information is the ping time which would also be the cron run completion time for the site. So site3.com could have in fact not run cron for two weeks but there would be no way to know. Just simply adding the time of the ping would make this aveyr usuful.
It would look like this
Recently updated sites
site1.com - site1slogan last ping 3/8/2006 02:55
site2.com - site2slogan last ping 3/8/2006 02:23
site3.com - site3slogan last ping 2/22/2006 22:23
site4.com - site4slogan last ping 3/8/2006 02:10
Can anyone tell me how to print this on the same line as the ping notation? It would be greatly apprecaited. Thankyou either way.