Exclude polls at certain times?

Started by xenth, April 28, 2008, 02:16:47 PM

Previous topic - Next topic

xenth

Is it possible to exclude polling for certain DCI's at set times?

For example I do not want the DCI's in my server template to check from 19:00-08:00 how
would I do this?

Victor Kirhenshtein

Yes, it's possible via advanced schedule. Just check "advanced schedule" checkbox in DCI configuration, and add one or more schedules in CRON format on advanced schedule tab. For example, to collect data every minute from 9:00 till 18:00, add schedule


* 9-18 * * *


See cron manpage or NetXMS user manual for detailed description of schedule syntax.

Best regards,
Victor

xenth


Anth0ny

It is possible to add a new option for Scheduler (Polling and storage)?

Add an "Exclusion Time" option (for direct adding one or more exclusions)

OR

Split field to two parts at "Use advanced shedule" tab and stay one as "Schedules" and add new with name "Exclusions" for adding exclusions intervals

Victor Kirhenshtein

I don't see any need for separating exclusions - everything can be defined as one or more advanced schedule record. For example, if I need not to poll DCI from 10:00 till 12:00 (not including 12:00 itself), I can use the following schedule:


* 0-9,12-23 * * *


I don't sink that it's much more complicated then writing "exclusion" schedule


* 10-12 * * *


Best regards,
Victor

Anth0ny

#5
you right.  :)

but how about if i don't want to poll every 60 seconds and want to change an interval to (for example) 600 or more seconds?

how can i use an advanced scheduling with non-standard poll interval?

Victor Kirhenshtein

every 600 seconds means every 10 minutes, so you can put */10 instead of * for minutes in schedule, like


*/10 10-22 * * *


which means "collect value every 10th minute from 10:00 till 22:50".

Best regards,
Victor

Anth0ny