<?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[Replacing custom solution (elasticsearch and riemann) with NetXMS]]></title><description><![CDATA[<p dir="auto">Hello,<br />
I have (like many) a complex situation to monitor with information scattered in:</p>
<ul>
<li>syslog</li>
<li>snmp</li>
<li>graphite/collectd sensors</li>
</ul>
<p dir="auto">I was building a custom solution with elasticsearch, riemann, influxdb and so on<br />
But looking for a snmp input solution I have found NetXMS and now I am rebuilding my monitoring on it.<br />
But now I have several questions (yes I am reading and reading and reading docs):</p>
<ul>
<li>I am trying syslog parsing and my (simple) regular expression does not work. How can I debug it? Is there a way to try it on already received syslog messages? I cannot reproduce easily the syslog message to test</li>
<li>when I receive a syslog line "backup finished" I must check if time is above 8.00 (slow backup), how can I do it?</li>
<li>suppose I need to test that backup are executed, so I need to check that a syslog "finished backup" is present at least once a day, can I do it with repeatCount?</li>
</ul>
<p dir="auto">Thanks in advance for any help!<br />
Mario</p>
]]></description><link>https://forum.netxms.org/topic/6840/replacing-custom-solution-elasticsearch-and-riemann-with-netxms</link><generator>RSS for Node</generator><lastBuildDate>Fri, 13 Nov 2026 16:05:01 GMT</lastBuildDate><atom:link href="https://forum.netxms.org/topic/6840.rss" rel="self" type="application/rss+xml"/><pubDate>Fri, 01 Jan 2021 17:00:09 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Replacing custom solution (elasticsearch and riemann) with NetXMS on Mon, 04 Jan 2021 13:20:22 GMT]]></title><description><![CDATA[<p dir="auto">Hi!</p>
<ol>
<li>as discussed in another thread, under linux logger utility could be helpful to generate syslog messages</li>
<li>A matched syslog line generates an event, so we have to do the logic in Event Processing Policy (EPP). There you have filtering script - if it's not empty, event will be processed further only if that script returns true. You can just take current time in that script and check it:</li>
</ol>
<pre><code>now = localtime();
return (now-&gt;hour &gt;= 8);
</code></pre>
<ol start="3">
<li>I am not exactly sure how to use the repeatCount in syslog processing, but anyway reaction to syslog only happens when a new syslog message is received. Here we need something in another place that would be executed regularly, event if there will be no syslog messages from a given node. A possible approach could be:</li>
</ol>
<ul>
<li>when you receive backup successful message, store current unixtime in custom attribute of the node. You can do this in filter script in EPP:</li>
</ul>
<pre><code>$node-&gt;setCustomAttribute("lastBackupTime", time());
</code></pre>
<ul>
<li>create a DCI with origin "Internal" and parameter "Dummy".</li>
<li>in transformation script add the following:</li>
</ul>
<pre><code>return time() - $node-&gt;getCustomAttribute("lastBackupTime");
</code></pre>
<p dir="auto">as the result this DCI will have time in seconds since last backup.</p>
<ul>
<li>add threshold so that an event will be generated when time since last backup is too big.</li>
</ul>
]]></description><link>https://forum.netxms.org/post/29186</link><guid isPermaLink="true">https://forum.netxms.org/post/29186</guid><dc:creator><![CDATA[Filipp Sudanov]]></dc:creator><pubDate>Mon, 04 Jan 2021 13:20:22 GMT</pubDate></item></channel></rss>