<?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[Оповещение telegram]]></title><description><![CDATA[<p dir="auto">Добрый вечер, не могу разобраться как установить драйвер telegram<br />
Cent OS 8<br />
Помогите пожалуйста у кого работает. В мануале совершенно не понятно как его заставить работать.</p>
<hr />
<p dir="auto"><img src="/assets/uploads/files/smf/0000000005354-dr.png" alt="dr.png" class="img-markdown  img-fluid" width="957" height="550" /></p>
]]></description><link>https://forum.netxms.org/topic/6810/оповещение-telegram</link><generator>RSS for Node</generator><lastBuildDate>Fri, 13 Nov 2026 14:05:17 GMT</lastBuildDate><atom:link href="https://forum.netxms.org/topic/6810.rss" rel="self" type="application/rss+xml"/><pubDate>Fri, 11 Dec 2020 16:38:39 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Оповещение telegram on Mon, 14 Dec 2020 20:26:02 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/filipp-sudanov" aria-label="Profile: filipp-sudanov">@<bdi>filipp-sudanov</bdi></a> said in <a href="/post/29046">Оповещение telegram</a>:</p>
<blockquote>
<p dir="auto">Несколько путей:</p>
<p dir="auto">а) в правиле в EPP в filtering script:</p>
<pre><code>return ( (strftime("%H", time()) &gt;= 8) and (strftime("%H", time()) &lt; 19) );
</code></pre>
<p dir="auto">Таким образом все правило в EPP не будет срабатывать ночью. Алармы также не будут создаваться. Если нужны алармы, то тогда нужно два правила в EPP.</p>
<p dir="auto">б) не запускать action, отсылающий сообщение напрямую, а запускать action, вызывающий NXSL скрипт. В этом скрипте сделать проверку по времени и оттуда запускать отсылку сообщения:</p>
<pre><code>if ( (strftime("%H", time()) &gt;= 8) and (strftime("%H", time()) &lt; 19) )
{
    SendNotification("Telegram", "Alice; Bob", "", "My message text");
}
</code></pre>
</blockquote>
<p dir="auto">Первый вариант работает, по второму получаю ошибку<br />
Script (Telegrtam) execution error: Error 11 in line 3: Function not found</p>
]]></description><link>https://forum.netxms.org/post/29055</link><guid isPermaLink="true">https://forum.netxms.org/post/29055</guid><dc:creator><![CDATA[Turm]]></dc:creator><pubDate>Mon, 14 Dec 2020 20:26:02 GMT</pubDate></item><item><title><![CDATA[Reply to Оповещение telegram on Mon, 14 Dec 2020 13:53:05 GMT]]></title><description><![CDATA[<p dir="auto">Несколько путей:</p>
<p dir="auto">а) в правиле в EPP в filtering script:</p>
<pre><code>return ( (strftime("%H", time()) &gt;= 8) and (strftime("%H", time()) &lt; 19) );
</code></pre>
<p dir="auto">Таким образом все правило в EPP не будет срабатывать ночью. Алармы также не будут создаваться. Если нужны алармы, то тогда нужно два правила в EPP.</p>
<p dir="auto">б) не запускать action, отсылающий сообщение напрямую, а запускать action, вызывающий NXSL скрипт. В этом скрипте сделать проверку по времени и оттуда запускать отсылку сообщения:</p>
<pre><code>if ( (strftime("%H", time()) &gt;= 8) and (strftime("%H", time()) &lt; 19) )
{
    SendNotification("Telegram", "Alice; Bob", "", "My message text");
}
</code></pre>
]]></description><link>https://forum.netxms.org/post/29046</link><guid isPermaLink="true">https://forum.netxms.org/post/29046</guid><dc:creator><![CDATA[Filipp Sudanov]]></dc:creator><pubDate>Mon, 14 Dec 2020 13:53:05 GMT</pubDate></item><item><title><![CDATA[Reply to Оповещение telegram on Mon, 14 Dec 2020 10:24:17 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/filipp-sudanov" aria-label="Profile: filipp-sudanov">@<bdi>filipp-sudanov</bdi></a> said in <a href="/post/29039">Оповещение telegram</a>:</p>
<blockquote>
<p dir="auto">А уведомления вне этого временного диапазона должны выбрасываться или дожидаться утра?</p>
</blockquote>
<p dir="auto">В идеале, критические бы приходили даже ночью, а остальные выбрасывались.</p>
]]></description><link>https://forum.netxms.org/post/29042</link><guid isPermaLink="true">https://forum.netxms.org/post/29042</guid><dc:creator><![CDATA[Turm]]></dc:creator><pubDate>Mon, 14 Dec 2020 10:24:17 GMT</pubDate></item><item><title><![CDATA[Reply to Оповещение telegram on Mon, 14 Dec 2020 09:44:14 GMT]]></title><description><![CDATA[<p dir="auto">А уведомления вне этого временного диапазона должны выбрасываться или дожидаться утра?</p>
]]></description><link>https://forum.netxms.org/post/29039</link><guid isPermaLink="true">https://forum.netxms.org/post/29039</guid><dc:creator><![CDATA[Filipp Sudanov]]></dc:creator><pubDate>Mon, 14 Dec 2020 09:44:14 GMT</pubDate></item><item><title><![CDATA[Reply to Оповещение telegram on Mon, 14 Dec 2020 07:57:03 GMT]]></title><description><![CDATA[<p dir="auto">Большое спасибо, все получилось.<br />
Еще вопросик, а как сделать что-бы уведомления приходили только в период с 8 до 19 ?</p>
]]></description><link>https://forum.netxms.org/post/29037</link><guid isPermaLink="true">https://forum.netxms.org/post/29037</guid><dc:creator><![CDATA[Turm]]></dc:creator><pubDate>Mon, 14 Dec 2020 07:57:03 GMT</pubDate></item><item><title><![CDATA[Reply to Оповещение telegram on Sat, 12 Dec 2020 18:31:46 GMT]]></title><description><![CDATA[<p dir="auto">yum install libcurl-devel<br />
потом ./configure без --without-curl</p>
]]></description><link>https://forum.netxms.org/post/29035</link><guid isPermaLink="true">https://forum.netxms.org/post/29035</guid><dc:creator><![CDATA[alk]]></dc:creator><pubDate>Sat, 12 Dec 2020 18:31:46 GMT</pubDate></item><item><title><![CDATA[Reply to Оповещение telegram on Sat, 12 Dec 2020 18:26:21 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/alk" aria-label="Profile: alk">@<bdi>alk</bdi></a> said in <a href="/post/29033">Оповещение telegram</a>:</p>
<blockquote>
<blockquote>
<p dir="auto">generated by GNU Autoconf 2.69.  Invocation command line was</p>
<p dir="auto">  $ ./configure --with-server --with-mariadb --with-mariadb-compat-headers --with-agent --without-curl --disable-ssh --disable-mqtt --disable-dependency-tracking</p>
</blockquote>
<p dir="auto">cURL был принудительно отключен в configure: --without-curl</p>
</blockquote>
<p dir="auto">Не смог победить:<br />
configure: error: libcurl is required. Check that it is installed or use --without-curl option</p>
<p dir="auto">Как теперь можно добавить?</p>
]]></description><link>https://forum.netxms.org/post/29034</link><guid isPermaLink="true">https://forum.netxms.org/post/29034</guid><dc:creator><![CDATA[Turm]]></dc:creator><pubDate>Sat, 12 Dec 2020 18:26:21 GMT</pubDate></item><item><title><![CDATA[Reply to Оповещение telegram on Sat, 12 Dec 2020 17:19:01 GMT]]></title><description><![CDATA[<blockquote>
<p dir="auto">generated by GNU Autoconf 2.69.  Invocation command line was</p>
<p dir="auto">  $ ./configure --with-server --with-mariadb --with-mariadb-compat-headers --with-agent --without-curl --disable-ssh --disable-mqtt --disable-dependency-tracking</p>
</blockquote>
<p dir="auto">cURL был принудительно отключен в configure: --without-curl</p>
]]></description><link>https://forum.netxms.org/post/29033</link><guid isPermaLink="true">https://forum.netxms.org/post/29033</guid><dc:creator><![CDATA[alk]]></dc:creator><pubDate>Sat, 12 Dec 2020 17:19:01 GMT</pubDate></item><item><title><![CDATA[Reply to Оповещение telegram on Sat, 12 Dec 2020 16:42:17 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/alk" aria-label="Profile: alk">@<bdi>alk</bdi></a> said in <a href="/post/29029">Оповещение telegram</a>:</p>
<blockquote>
<p dir="auto">cURL был доступен в момент сборки? Лог config.log остался?</p>
</blockquote>
<p dir="auto">Да, смотрите вложение.</p>
<hr />
<p dir="auto"><a href="/assets/uploads/files/smf/0000000005355-config.log">config.log</a></p>
]]></description><link>https://forum.netxms.org/post/29032</link><guid isPermaLink="true">https://forum.netxms.org/post/29032</guid><dc:creator><![CDATA[Turm]]></dc:creator><pubDate>Sat, 12 Dec 2020 16:42:17 GMT</pubDate></item><item><title><![CDATA[Reply to Оповещение telegram on Sat, 12 Dec 2020 16:27:49 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/filipp-sudanov" aria-label="Profile: filipp-sudanov">@<bdi>filipp-sudanov</bdi></a> said in <a href="/post/29026">Оповещение telegram</a>:</p>
<blockquote>
<p dir="auto">Какая версия NetXMS?</p>
</blockquote>
<p dir="auto">Версия 3.6.300</p>
]]></description><link>https://forum.netxms.org/post/29031</link><guid isPermaLink="true">https://forum.netxms.org/post/29031</guid><dc:creator><![CDATA[Turm]]></dc:creator><pubDate>Sat, 12 Dec 2020 16:27:49 GMT</pubDate></item><item><title><![CDATA[Reply to Оповещение telegram on Fri, 11 Dec 2020 19:58:03 GMT]]></title><description><![CDATA[<p dir="auto">cURL был доступен в момент сборки? Лог config.log остался?</p>
]]></description><link>https://forum.netxms.org/post/29029</link><guid isPermaLink="true">https://forum.netxms.org/post/29029</guid><dc:creator><![CDATA[alk]]></dc:creator><pubDate>Fri, 11 Dec 2020 19:58:03 GMT</pubDate></item><item><title><![CDATA[Reply to Оповещение telegram on Fri, 11 Dec 2020 17:46:41 GMT]]></title><description><![CDATA[<p dir="auto">Какая версия NetXMS?</p>
]]></description><link>https://forum.netxms.org/post/29026</link><guid isPermaLink="true">https://forum.netxms.org/post/29026</guid><dc:creator><![CDATA[Filipp Sudanov]]></dc:creator><pubDate>Fri, 11 Dec 2020 17:46:41 GMT</pubDate></item></channel></rss>