Jump to content

7.1 ticket escalation cron despite having no ticket escalations setup


xyzulu

Recommended Posts

Despite having no ticket escalation rules setup, every 5 mins (when system cron is run) the following is logged in my admin activity module:

 

System

Automated Task: Starting Ticket Escalation Rules

 

This makes the admin activity module fairly useless now, as this is the only recent activity being logged. Any suggestions on how to resolve/disable this?

 

 

PS 7.1 is looking good otherwise!

Edited by xyzulu
Link to comment
Share on other sites

I also saw endless entries regarding running the escalation cron in the logs and i do not use ticket escalations, and so I tried following the instructions at http://docs.whmcs.com/Crons and configured the cron job to read

*/5 * * * * php -q /home/username/crons/cron.php skip --TicketEscalations 

(Substitute your own path as necessary)

 

That seemed to work beautifully if you don't want the escalations to run at all.

 

Perhaps an option to suppress logging would be appropriate if you do want to run them ?

Link to comment
Share on other sites

I've submitted a feature request to address this as I was advised to do so. It's currently awaiting moderation. I have also gently tried to get the support person who updated my ticket to escalate this to someone else ie a developer

 

Here is a small sample of the now fairly useless activity log that WHMCS support explained to me is intended behaviour. They said, and I quote: "As part of the new updates to the cron functionality, this is intended behavior."

 

Screen Shot 2016-12-17 at 9.06.57 pm.png

 

I have pages and pages of pretty much the same thing.

 

That being said, I do feel WHMCS will eventually address this relatively minor issue to resolve, as I doubt this was in fact intended behaviour.

Still, it's been a rather painful process. It doesn't even seem like staff are interested in listening to feedback, or that they even feedback what they see on these forums to their support staff. I hope I'm wrong.

Edited by xyzulu
Link to comment
Share on other sites

Some good news..

 

First of all a guy named Karl Flemming emailed me via my own website the following:

 

I tried to answer the thread on the WHMCS forums a couple of days ago, but I am still waiting for my 'moderated' post to be approved.

 

Since, I don't use any ticket escalations, I use the following in the cron job :

*/5 * * * * php -q /path/to/cron.php skip --TicketEscalations

 

This stopped all the log entries about something I didn't use, and may work for you as well

 

Please see http://docs.whmcs.com/Crons for more information which is where I found this work-round.

This is an excellent workaround. Thanks Karl.

 

WHMCS, please approve Karl's post, he deserves the credit for this.

 

Second, while I felt I have had to push harder than I feel I should have as a paying customer.. it seems from a recent update to my ticket with WHMCS on this issue it's finally been seen by the right people. It sounds like the developers are now discussing this (despite brushing me off at first, telling me to open a feature request and then declining that). I'm hopeful this tiny issue will get the attention it deserves so that the activity log can once again be a useful feature of WHMCS.

Link to comment
Share on other sites

I have added skip --TicketEscalations to my only cron and notifications still appear in the activity log every 5 minutes. Does anyone know what could possibly prevent this from working? Thanks for the help!

 

From my investigations the only way to resolve that is to use a different php cli than just "php".

Use the command: whereis php

.. to find a cli that may work for you.

 

You can troubleshoot via ssh yourself using the ../cron.php -vvv switch FYI

 

I hope it helps

Link to comment
Share on other sites

  • WHMCS Support Manager
Side point: I've submitted a bug report as the activity log is going well over the limits you set in Setup > General

Client-related logs are maintained indefinitely for audit trails and PCI compliance. The Activity Log length setting applies to general "System" entries.

Link to comment
Share on other sites

Update that may clear up some problems some people have experienced.

 

You can now call '/usr/local/bin/php' if you need the php-cli binary, and '/usr/bin/php' if you need the CGI variant.

 

If you call 'php' only via the CRON, you're going to end up using the CGI binary, since '/usr/bin' comes first in the CRON $PATH.

 

You will probably also need to turn on register_argc_argv in your PHP configuration to get this to work.

Link to comment
Share on other sites

Update that may clear up some problems some people have experienced.

 

You can now call '/usr/local/bin/php' if you need the php-cli binary, and '/usr/bin/php' if you need the CGI variant.

 

If you call 'php' only via the CRON, you're going to end up using the CGI binary, since '/usr/bin' comes first in the CRON $PATH.

 

You will probably also need to turn on register_argc_argv in your PHP configuration to get this to work.

 

This got it working for me, thanks!

Link to comment
Share on other sites

  • 3 weeks later...

This is not a solution? We actually USE ticket escalations, so we run that CRON job every 5 minutes or so, and the log is FULL of this - so we can't really see what happened before? I don't want to skip them at all.

 

Question also would be - do we still need a SEPARATE cron for ticket escalation anymore? (Such as this: crons/cron.php do_escalations) or does that run with the main cron every 5 minutes and does not log? Perhaps we are doing this by running it separately?

Link to comment
Share on other sites

This is not a solution? We actually USE ticket escalations, so we run that CRON job every 5 minutes or so, and the log is FULL of this - so we can't really see what happened before? I don't want to skip them at all.

 

Question also would be - do we still need a SEPARATE cron for ticket escalation anymore? (Such as this: crons/cron.php do_escalations) or does that run with the main cron every 5 minutes and does not log? Perhaps we are doing this by running it separately?

 

Esclations are handled by the cron running every 5 minutes, no need to have a seperate one specifically for esclations.

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.

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use & Guidelines and understand your posts will initially be pre-moderated