AppD Archive

Health Rule Schedule

Leanne_Sprague
New Member

I am trying to create a schedule for a health rule so that is runs from 7am - 11pm Monday - Saturday.  I have no problems with the 7am - 11pm.  But the addition of days is proving to be troublesome.  This is the start 0 0 7 ? * MON-SAT and this is the end 0 0 23 ? * MON-SAT that I tried.  But I am getting a error saying that 0 0 7 ? * MON-SAT is not a parseable cron expression.  But it is based on an example on the Quartz Scheduler page referenced in the AppDynamics documentation.

Any guidance that could be provided would be greatly appreciated.

Tags (1)
0 Karma
1 Solution

Arun_Dasetty
Super Champion

Hi,

Controller evaluates the rule as per physical instance timezone where controller is installed as the config looks fine check if that is the case here , if not please send the screenshots depicting the issue and outout from controller db for query output:

mysql> select * from schedule \G;

Regards,

Arun

View solution in original post

0 Karma

Arun_Dasetty
Super Champion

Hi,

Can you try the integer representation format of weekdays like below for the cron expressions and see if that suggestions helps:

0 0 7 ? * 2-7

instead 0 0 7 ? * MON-SAT.

Regards,

Arun

0 Karma

Leanne_Sprague
New Member
The change to 0 0 7 ? * 2-7 was accepted by the UI. But now I have another question. When I have a start of 0 0 7 ? * 2-7 and an end of 0 0 23 ? * 2-7, I am still getting emails for the health rule between 11pm and 7am. What start and end values do I need to use for a health rule that I want to check from 7am - 11pm Monday - Saturday?

Thanks

Leanne

0 Karma

Arun_Dasetty
Super Champion

Hi,

Controller evaluates the rule as per physical instance timezone where controller is installed as the config looks fine check if that is the case here , if not please send the screenshots depicting the issue and outout from controller db for query output:

mysql> select * from schedule \G;

Regards,

Arun

0 Karma

Arun_Dasetty
Super Champion

Hi,

Does that suggestion provided helped? it looks the other format is not allowed due to UI level validation

Regards,

Arun

0 Karma
Get Updates on the Splunk Community!

.conf25 technical session recap of Observability for Gen AI: Monitoring LLM ...

If you’re unfamiliar, .conf is Splunk’s premier event where the Splunk community, customers, partners, and ...

A Season of Skills: New Splunk Courses to Light Up Your Learning Journey

There’s something special about this time of year—maybe it’s the glow of the holidays, maybe it’s the ...

Announcing the Migration of the Splunk Add-on for Microsoft Azure Inputs to ...

Announcing the Migration of the Splunk Add-on for Microsoft Azure Inputs to Officially Supported Splunk ...