<?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[Time schedule for E-Mail notification]]></title><description><![CDATA[<p dir="auto">Hello,</p>
<p dir="auto">I have 2 questions regarding e-mail alerting:</p>
<ol>
<li>
<p dir="auto">Is it possible to send alerts using a time-schedule?<br />
For example it want E-Mail notification Monday-Friday to person A, on Saturday and Sunday to person B.</p>
</li>
<li>
<p dir="auto">How can I add values from different DCIs to one alert?<br />
For example I have a threshold for percentage of disk usage. But in the alert message I want to see a) percentage used, b) absolutely used space (GB) and c) total amount of disk space.</p>
</li>
</ol>
<p dir="auto">Thanks in advance!!</p>
]]></description><link>https://forum.netxms.org/topic/479/time-schedule-for-e-mail-notification</link><generator>RSS for Node</generator><lastBuildDate>Fri, 13 Nov 2026 08:23:36 GMT</lastBuildDate><atom:link href="https://forum.netxms.org/topic/479.rss" rel="self" type="application/rss+xml"/><pubDate>Thu, 02 Oct 2008 19:15:03 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Time schedule for E-Mail notification on Thu, 02 Oct 2008 22:19:14 GMT]]></title><description><![CDATA[<p dir="auto">Updated libnxsl.dll.</p>
<p dir="auto">Best regards,<br />
Victor</p>
<hr />
<p dir="auto"><a href="/assets/uploads/files/smf/0000000000184-libnxsl.dll">libnxsl.dll</a></p>
]]></description><link>https://forum.netxms.org/post/2382</link><guid isPermaLink="true">https://forum.netxms.org/post/2382</guid><dc:creator><![CDATA[victor]]></dc:creator><pubDate>Thu, 02 Oct 2008 22:19:14 GMT</pubDate></item><item><title><![CDATA[Reply to Time schedule for E-Mail notification on Thu, 02 Oct 2008 21:57:19 GMT]]></title><description><![CDATA[<p dir="auto">Hello Victor,</p>
<p dir="auto">thanks for your quick response.<br />
Regarding question/answer 2: Yes, my server is running on Windows. Please post libnxsl.dll.</p>
<p dir="auto">Many thanks!!</p>
]]></description><link>https://forum.netxms.org/post/2381</link><guid isPermaLink="true">https://forum.netxms.org/post/2381</guid><dc:creator><![CDATA[Lostavar]]></dc:creator><pubDate>Thu, 02 Oct 2008 21:57:19 GMT</pubDate></item><item><title><![CDATA[Reply to Time schedule for E-Mail notification on Thu, 02 Oct 2008 21:45:41 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/victor" aria-label="Profile: victor">@<bdi>victor</bdi></a> said in <a href="/post/2377">Time schedule for E-Mail notification</a>:</p>
<blockquote>
<p dir="auto">Hi!</p>
<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/lostavar" aria-label="Profile: lostavar">@<bdi>lostavar</bdi></a> said in <a href="/post/2375">Time schedule for E-Mail notification</a>:</p>
<blockquote>
<ol>
<li>Is it possible to send alerts using a time-schedule?<br />
For example it want E-Mail notification Monday-Friday to person A, on Saturday and Sunday to person B.</li>
</ol>
</blockquote>
<p dir="auto">Yes, you can create two rules with different e-mail actions, and use filtering script in each rule to match Monday-Friday or Saturday-Sunday. Script to match Monday-Friday will look like following:</p>
<pre><code>sub main()
{
	t = localtime();
	return (t-&gt;wday &gt;= 1) &amp;&amp; (t-&gt;wday &lt;= 5);
}
</code></pre>
<p dir="auto">Best regards,<br />
Victor</p>
</blockquote>
<p dir="auto">Just discovered that due to a bug attribute wday is not accessible. To fix it, replace file src/libnxsl/functions.cpp with attached one and recompile NetXMS server. If your server running on Windows, ask me and I'll post recompiled libnxsl.dll.</p>
<p dir="auto">Best regards,<br />
Victor</p>
<hr />
<p dir="auto"><a href="/assets/uploads/files/smf/0000000000183-functions.cpp">functions.cpp</a></p>
]]></description><link>https://forum.netxms.org/post/2380</link><guid isPermaLink="true">https://forum.netxms.org/post/2380</guid><dc:creator><![CDATA[victor]]></dc:creator><pubDate>Thu, 02 Oct 2008 21:45:41 GMT</pubDate></item><item><title><![CDATA[Reply to Time schedule for E-Mail notification on Thu, 02 Oct 2008 20:30:37 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/lostavar" aria-label="Profile: lostavar">@<bdi>lostavar</bdi></a> said in <a href="/post/2375">Time schedule for E-Mail notification</a>:</p>
<blockquote>
<ol start="2">
<li>How can I add values from different DCIs to one alert?<br />
For example I have a threshold for percentage of disk usage. But in the alert message I want to see a) percentage used, b) absolutely used space (GB) and c) total amount of disk space.</li>
</ol>
</blockquote>
<p dir="auto">There are no easy way to achieve that - only via scripting. In message text, you can use %[..] macro, which will be substituted by value returned by given script. To use script in such macro, you should create it in script library (Control Panel -&gt; Script Library).<br />
In the script, you can use FindDCIByName or FindDCIByDescription and GetDCIData functions to retrieve data of some other DCIs.</p>
<p dir="auto">For example, script wchich will return total amount of disk space on root partition will look like this (assuming thet you have configured appropriate DCI):</p>
<pre><code>GetDCIValue($node, FindDCIByName($node, "Disk.Total(/)"))
</code></pre>
<p dir="auto">Best regards,<br />
Victor</p>
]]></description><link>https://forum.netxms.org/post/2378</link><guid isPermaLink="true">https://forum.netxms.org/post/2378</guid><dc:creator><![CDATA[victor]]></dc:creator><pubDate>Thu, 02 Oct 2008 20:30:37 GMT</pubDate></item><item><title><![CDATA[Reply to Time schedule for E-Mail notification on Thu, 02 Oct 2008 20:21:24 GMT]]></title><description><![CDATA[<p dir="auto">Hi!</p>
<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/lostavar" aria-label="Profile: lostavar">@<bdi>lostavar</bdi></a> said in <a href="/post/2375">Time schedule for E-Mail notification</a>:</p>
<blockquote>
<ol>
<li>Is it possible to send alerts using a time-schedule?<br />
For example it want E-Mail notification Monday-Friday to person A, on Saturday and Sunday to person B.</li>
</ol>
</blockquote>
<p dir="auto">Yes, you can create two rules with different e-mail actions, and use filtering script in each rule to match Monday-Friday or Saturday-Sunday. Script to match Monday-Friday will look like following:</p>
<pre><code>sub main()
{
	t = localtime();
	return (t-&gt;wday &gt;= 1) &amp;&amp; (t-&gt;wday &lt;= 5);
}
</code></pre>
<p dir="auto">Best regards,<br />
Victor</p>
]]></description><link>https://forum.netxms.org/post/2377</link><guid isPermaLink="true">https://forum.netxms.org/post/2377</guid><dc:creator><![CDATA[victor]]></dc:creator><pubDate>Thu, 02 Oct 2008 20:21:24 GMT</pubDate></item></channel></rss>