Advanced Schedule

Started by AP_ops, April 10, 2013, 11:58:40 AM

Previous topic - Next topic

AP_ops

Hello,

I want to configure a custom file.count schedule (to check a specific folder daily between 7:00 AM to 1:00 AM  every 5 minutes) and i want this folder to be empty (0 files) between the specific period and if i have file to trigger an alarm (only between this period).

So i tried several combinations and it doesn`t work.
Here is my examples that i tried

1st.
*/5 7-1 * * * *

it doesn`t work

2nd. (combination of 2 schedules)
* 7-1 * * * *
*/5 * * * * *

it works every 5 minutes but i get an alert all the time

3rd. (combination of 3 schedules)
* 7-0 * * * *
* 0-1 * * * *
*/5 * * * * *

it works every 5 minutes but i get an alert all the time


Can you please someone advice/help me with the correct schedule that i have to specify?

Thanks in advance

Regards,
Andreas

Victor Kirhenshtein

Hi!

Just checked the source code - NetXMS does not support ranges n-m where n > m. So you should be able to achieve desired result with the following combined schedule:

*/5 0 * * * *
*/5 7-23 * * * *

This will collect DCI every day from 00:00 to 00:59 and from 7:00 to 23:59. If you want to include 1:00 as well, you should add

0 1 * * * *

to match exactly this time.

Best regards,
Victor

AP_ops

Hello,

That's work fine but only with 5 fields (* * * * *)! With 6 fields it has problem and the schedule doesnt work!
So i added the same schedules like this:

*/5 0 * * *
*/5 7-23 * * *

Thanks & Regards,
Andreas