Jump to content

Cron Output


medfordite

Recommended Posts

I was wondering if there was a way to customize the Cron output email that is sent.  Currently, we have the following:

 

 

X-Powered-By: PHP/5.3.27Content-type: text/htmlAttempting to run all tasks for My Hosting Site.Attempting to renew services and create invoices.The create invoices task has completed.Attempting to apply credits to open invoices.There are no invoices to which credits may be applied.The apply credits task has completed.Attempting to deliver invoices scheduled for delivery.No invoices are scheduled to be delivered.The deliver invoices task has completed.Attempting to provision paid pending services.The paid pending services task has completed.Attempting to unsuspend paid suspended services.The unsuspend services task has completed.Attempting to process renewing services.The process renewing services task has completed.Attempting to update exchange rates.Exchange rates were updated successfully.The exchange rates task has completed.Attempting plugin cron for order accept_paid_orders.Finished plugin cron for order accept_paid_orders.Attempting plugin cron for support_manager poll_tickets.Finished plugin cron for support_manager poll_tickets.Attempting to clean up old logs.0 old Gateway logs have been deleted.0 old Module logs have been deleted.The clean logs task has completed.All tasks have been completed.Attempting to run all system tasks.Attempting to validate the license.The license validation task has completed.Attempting to backup the database to AmazonS3.The backup completed successfully.The AmazonS3 database backup task has completed.Attempting to backup the database via SFTP.The backup completed successfully.The SFTP database backup task has completed.All system tasks have been completed.

 

I typically rely on this to watch for past due notices, or other items which we wouldn't normally get a notice on via email.   Is there a way to at least add some line breaks or divide things by section? 

 

 

Link to comment
Share on other sites

Would this in effect add a new line after the output then?

 

Don't know why but cPanel's update cron output looks better to me but it might just be the double lines they add in it too:

 

 

[20130826.001631] [27260] Dependencies Resolved

[20130826.001631] [27260]

[20130826.001631] [27260]

================================================================================

[20130826.001631] [27260] Package Arch Version Repository Size

[20130826.001631] [27260]

================================================================================

[20130826.001631] [27260] Updating: [20130826.001631] [27260] zabbix i386 2.0.8-1.el6 zabbixzone 121 k

[20130826.001631] [27260] zabbix-agent i386 2.0.8-1.el6 zabbixzone 137 k [20130826.001631]

[27260] [20130826.001631]

[27260] Transaction Summary

[20130826.001631] [27260]

================================================================================

Link to comment
Share on other sites

Adding the newline would make it look similar to:

 

X-Powered-By: PHP/5.3.27
Content-type: text/html

Attempting to run all tasks for My Hosting Site.
Attempting to renew services and create invoices.
The create invoices task has completed.

Attempting to apply credits to open invoices.
There are no invoices to which credits may be applied.
The apply credits task has completed.

Attempting to deliver invoices scheduled for delivery.
No invoices are scheduled to be delivered.
The deliver invoices task has completed.

Attempting to provision paid pending services.
The paid pending services task has completed.

Attempting to unsuspend paid suspended services.
The unsuspend services task has completed.

Attempting to process renewing services.
The process renewing services task has completed.

Attempting to update exchange rates.
Exchange rates were updated successfully.
The exchange rates task has completed.

Attempting plugin cron for order accept_paid_orders.
Finished plugin cron for order accept_paid_orders.

Attempting plugin cron for support_manager poll_tickets.
Finished plugin cron for support_manager poll_tickets.

Attempting to clean up old logs.
0 old Gateway logs have been deleted.
0 old Module logs have been deleted.
The clean logs task has completed.

All tasks have been completed.

Attempting to run all system tasks.
Attempting to validate the license.
The license validation task has completed.

Attempting to backup the database to AmazonS3.
The backup completed successfully.
The AmazonS3 database backup task has completed.

Attempting to backup the database via SFTP.
The backup completed successfully.

The SFTP database backup task has completed.

All system tasks have been completed.

 

Of course the language files will need to be updated after each upgrade of Blesta, as these files will be overwritten.

Link to comment
Share on other sites

Adding the newline would make it look similar to:

 

X-Powered-By: PHP/5.3.27
Content-type: text/html

Attempting to run all tasks for My Hosting Site.
Attempting to renew services and create invoices.
The create invoices task has completed.

Attempting to apply credits to open invoices.
There are no invoices to which credits may be applied.
The apply credits task has completed.

Attempting to deliver invoices scheduled for delivery.
No invoices are scheduled to be delivered.
The deliver invoices task has completed.

Attempting to provision paid pending services.
The paid pending services task has completed.

Attempting to unsuspend paid suspended services.
The unsuspend services task has completed.

Attempting to process renewing services.
The process renewing services task has completed.

Attempting to update exchange rates.
Exchange rates were updated successfully.
The exchange rates task has completed.

Attempting plugin cron for order accept_paid_orders.
Finished plugin cron for order accept_paid_orders.

Attempting plugin cron for support_manager poll_tickets.
Finished plugin cron for support_manager poll_tickets.

Attempting to clean up old logs.
0 old Gateway logs have been deleted.
0 old Module logs have been deleted.
The clean logs task has completed.

All tasks have been completed.

Attempting to run all system tasks.
Attempting to validate the license.
The license validation task has completed.

Attempting to backup the database to AmazonS3.
The backup completed successfully.
The AmazonS3 database backup task has completed.

Attempting to backup the database via SFTP.
The backup completed successfully.

The SFTP database backup task has completed.

All system tasks have been completed.

 

Of course the language files will need to be updated after each upgrade of Blesta, as these files will be overwritten.

Mate where do we find the cron edits?

 

Oh in: /language/en_us/cron.php

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...