<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[Schedule starting at a specific date/time]]></title><description><![CDATA[<p dir="auto">Hi,</p>
<p dir="auto">I'm trying to set a website monitoring where the content changes at a specific date/time.<br />
Otherwise said, I need to stop monitoring the current content at some moment and the start monitoring other content from that moment forwards.</p>
<p dir="auto">What would be the most efficient way to achieve this?</p>
<p dir="auto">I was thinking of creating two DCI's and set them when they should start/stop monitoring, can the cron syntax of the custom Schedule property of a DCI handle this?<br />
Otherwise scripting will surly get things done, but is it really needed?</p>
<p dir="auto">Regards,</p>
<p dir="auto">Dan</p>
]]></description><link>https://forum.netxms.org/topic/1526/schedule-starting-at-a-specific-date-time</link><generator>RSS for Node</generator><lastBuildDate>Fri, 13 Nov 2026 10:15:57 GMT</lastBuildDate><atom:link href="https://forum.netxms.org/topic/1526.rss" rel="self" type="application/rss+xml"/><pubDate>Thu, 29 Dec 2011 14:53:11 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Schedule starting at a specific date/time on Tue, 03 Jan 2012 13:43:35 GMT]]></title><description><![CDATA[<p dir="auto">Hi Victor,</p>
<p dir="auto">Thanks for the example. Although it surly works I find it to be too error-prone, at least for me it is <img src="https://forum.netxms.org/assets/plugins/nodebb-plugin-emoji/emoji/android/1f642.png?v=72b86a538fc" class="not-responsive emoji emoji-android emoji--slightly_smiling_face" style="height:1.4em;width:auto;vertical-align:middle" title=":-)" alt="🙂" /><br />
I'm glad I'm not misusing anything, so I'll stick to my script <img src="https://forum.netxms.org/assets/plugins/nodebb-plugin-emoji/emoji/android/1f609.png?v=72b86a538fc" class="not-responsive emoji emoji-android emoji--wink" style="height:1.4em;width:auto;vertical-align:middle" title=";-)" alt="😉" /></p>
<p dir="auto">Regards,</p>
<p dir="auto">Dan</p>
]]></description><link>https://forum.netxms.org/post/6642</link><guid isPermaLink="true">https://forum.netxms.org/post/6642</guid><dc:creator><![CDATA[DanG]]></dc:creator><pubDate>Tue, 03 Jan 2012 13:43:35 GMT</pubDate></item><item><title><![CDATA[Reply to Schedule starting at a specific date/time on Tue, 03 Jan 2012 12:43:16 GMT]]></title><description><![CDATA[<p dir="auto">Hi!</p>
<p dir="auto">Yes, the main problem with advanced schedule is that you cannot specify year in schedule. Otherwise within a year you can create very flexible schedules - don't forget that you can specify more than one schedule for DCI. For example, monitoring from 15.01 9:00 till 10.03 14:59 can be defined as follows:</p>
<p dir="auto">* 9-23 15 1 *<br />
* * 16-31 1 *<br />
* * * 2 *<br />
* * 1-9 3 *<br />
* 0-14 10 3 *</p>
<p dir="auto">1 - covers period 15.01 9:00 - 23:59<br />
2 - covers period 16.01 00:00 - 31.01 23:59<br />
3 - covers entire February<br />
4 - covers period 01.03 00:00 - 09.03 23:59<br />
5 - covers period 10.03 00:00 - 10.03 14:59</p>
<p dir="auto">And I don't think that using transformation script here is a misuse - it is what they was intended for.</p>
<p dir="auto">Best regards,<br />
Victor</p>
]]></description><link>https://forum.netxms.org/post/6639</link><guid isPermaLink="true">https://forum.netxms.org/post/6639</guid><dc:creator><![CDATA[victor]]></dc:creator><pubDate>Tue, 03 Jan 2012 12:43:16 GMT</pubDate></item><item><title><![CDATA[Reply to Schedule starting at a specific date/time on Tue, 03 Jan 2012 09:21:29 GMT]]></title><description><![CDATA[<p dir="auto">Hi Victor,<br />
I’m afraid it doesn’t solve my problem. Having a one shot to test the website is not good enough, I need to test that page every minute starting on a specific date. To my best knowledge cron does not offer this functionality.</p>
<p dir="auto">I ended up adding a DCI Transformation Script to filter the event for a given date range:</p>
<p dir="auto">sub main()<br />
{<br />
 if(<br />
        localtime(time())-&gt;year == 2012<br />
       <br />
     &amp;&amp; localtime(time())-&gt;mon &gt;= 0<br />
     &amp;&amp; localtime(time())-&gt;mday &gt;= 1<br />
   <br />
     &amp;&amp; localtime(time())-&gt;mon &lt;= 0<br />
     &amp;&amp; localtime(time())-&gt;mday =&lt; 15<br />
  )<br />
  {<br />
   return $1;<br />
  }</p>
<p dir="auto">  return 0;<br />
}</p>
<p dir="auto">In this example for all tests within 1st and 15th of January 2012 the real result is returned ($1).<br />
For anything outside that period, success (=0) is always returned disregarding the actual result.<br />
Alternatively I could have added something similar to the Filtering Script of the Event Processing Policy, however that would require me to create a new Event and Processing Policy for each date rage I want to test on. Using the Transformation Script  for Filtering may be misusing it, but it does the job. I guess that adding a Filtering Script feature before the Transformation Script is an overkill.</p>
<p dir="auto">Regards,</p>
<p dir="auto">Dan</p>
]]></description><link>https://forum.netxms.org/post/6638</link><guid isPermaLink="true">https://forum.netxms.org/post/6638</guid><dc:creator><![CDATA[DanG]]></dc:creator><pubDate>Tue, 03 Jan 2012 09:21:29 GMT</pubDate></item><item><title><![CDATA[Reply to Schedule starting at a specific date/time on Mon, 02 Jan 2012 10:21:35 GMT]]></title><description><![CDATA[<p dir="auto">Hi!</p>
<p dir="auto">If you are not interested in checking that new content matches some exact text, but just to check for fact of change, then my proposed solution with diff thresholds will work. However, if you have to check that new content is available and matching some specific text/regexp, you have to create new DCI for each upcoming content change, and use advanced scheduling to execute it at specific time. With advanced scheduling, you will be able to execute the check at exact time or in given short interval. You can also use Java or C API to automate DCI creation if you have some external application which knows what the content will be.</p>
<p dir="auto">Best regards,<br />
Victor</p>
]]></description><link>https://forum.netxms.org/post/6630</link><guid isPermaLink="true">https://forum.netxms.org/post/6630</guid><dc:creator><![CDATA[victor]]></dc:creator><pubDate>Mon, 02 Jan 2012 10:21:35 GMT</pubDate></item><item><title><![CDATA[Reply to Schedule starting at a specific date/time on Mon, 02 Jan 2012 08:48:53 GMT]]></title><description><![CDATA[<p dir="auto">Hi Victor,</p>
<p dir="auto">The content of this website changes at a specific date, I want the monitoring system to verify that the new content shows at that time.<br />
If the test runs before the due date it will fail, so I need a way to start monitoring at a specific date/time.</p>
<p dir="auto">Regards,</p>
<p dir="auto">Dan</p>
]]></description><link>https://forum.netxms.org/post/6623</link><guid isPermaLink="true">https://forum.netxms.org/post/6623</guid><dc:creator><![CDATA[DanG]]></dc:creator><pubDate>Mon, 02 Jan 2012 08:48:53 GMT</pubDate></item><item><title><![CDATA[Reply to Schedule starting at a specific date/time on Fri, 30 Dec 2011 10:38:25 GMT]]></title><description><![CDATA[<p dir="auto">Hi!</p>
<p dir="auto">What is exact purpose of monitoring this web site? If you need to detect content changes on any time except allowed, you can just use "diff" threshold, and in event processing policy skip event generated by threshold if it occurs within valid content change time interval.</p>
<p dir="auto">Best regards,<br />
Victor</p>
]]></description><link>https://forum.netxms.org/post/6621</link><guid isPermaLink="true">https://forum.netxms.org/post/6621</guid><dc:creator><![CDATA[victor]]></dc:creator><pubDate>Fri, 30 Dec 2011 10:38:25 GMT</pubDate></item></channel></rss>