<?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[Use logwatch parameter in data collection]]></title><description><![CDATA[<p dir="auto">Hello,</p>
<p dir="auto">I have configured logwatch to parse the content of my windows server application event log.<br />
I can now collect over DCI Number of records processed and Number of records matched.<br />
And i can fire an alarm over my event policy rule where i can see the parsed parameter content (it is a float value).<br />
Is it possible to configure a DCI that will collect this value?</p>
<p dir="auto">Thanks for any help.</p>
<p dir="auto">Regards</p>
<hr />
<p dir="auto"><img src="/assets/uploads/files/smf/0000000001751-Transform.png" alt="Transform.png" class="img-markdown  img-fluid" width="921" height="721" /></p>
<p dir="auto"><img src="/assets/uploads/files/smf/0000000001753-Situation.png" alt="Situation.png" class="img-markdown  img-fluid" width="1018" height="121" /></p>
<p dir="auto"><img src="/assets/uploads/files/smf/0000000001755-EventProcessing.png" alt="EventProcessing.png" class="img-markdown  img-fluid" width="1511" height="192" /></p>
<p dir="auto"><img src="/assets/uploads/files/smf/0000000001757-EventLog.png" alt="EventLog.png" class="img-markdown  img-fluid" width="1511" height="543" /></p>
]]></description><link>https://forum.netxms.org/topic/3170/use-logwatch-parameter-in-data-collection</link><generator>RSS for Node</generator><lastBuildDate>Fri, 13 Nov 2026 11:18:11 GMT</lastBuildDate><atom:link href="https://forum.netxms.org/topic/3170.rss" rel="self" type="application/rss+xml"/><pubDate>Fri, 23 May 2014 10:07:17 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Use logwatch parameter in data collection on Sat, 24 May 2014 17:28:48 GMT]]></title><description><![CDATA[<p dir="auto">Hello Victor,</p>
<p dir="auto">return real(res)</p>
<p dir="auto">Doesn't work also.</p>
<p dir="auto">Have you any other suggestions.</p>
<p dir="auto">Thanks and Regards</p>
<p dir="auto">José</p>
]]></description><link>https://forum.netxms.org/post/13980</link><guid isPermaLink="true">https://forum.netxms.org/post/13980</guid><dc:creator><![CDATA[JMC Software]]></dc:creator><pubDate>Sat, 24 May 2014 17:28:48 GMT</pubDate></item><item><title><![CDATA[Reply to Use logwatch parameter in data collection on Sat, 24 May 2014 17:04:28 GMT]]></title><description><![CDATA[<p dir="auto">Hi!</p>
<p dir="auto">Actually that means that server did not recognize string value as floating point number. You can try to set data type to float and use explicit cast with real(), like</p>
<pre><code>return real(res)
</code></pre>
<p dir="auto">It is also possible that your locale expects floating point numbers to have , instead of .</p>
<p dir="auto">Best regards,<br />
Victor</p>
]]></description><link>https://forum.netxms.org/post/13976</link><guid isPermaLink="true">https://forum.netxms.org/post/13976</guid><dc:creator><![CDATA[victor]]></dc:creator><pubDate>Sat, 24 May 2014 17:04:28 GMT</pubDate></item><item><title><![CDATA[Reply to Use logwatch parameter in data collection on Sat, 24 May 2014 16:39:23 GMT]]></title><description><![CDATA[<p dir="auto">Yesss it shows....<br />
I was thinking it recognize the datatype itself.<br />
Can i make a strong type convert in transformation script?</p>
<p dir="auto">Thanks again.</p>
<p dir="auto">Regards</p>
<p dir="auto">José</p>
]]></description><link>https://forum.netxms.org/post/13974</link><guid isPermaLink="true">https://forum.netxms.org/post/13974</guid><dc:creator><![CDATA[JMC Software]]></dc:creator><pubDate>Sat, 24 May 2014 16:39:23 GMT</pubDate></item><item><title><![CDATA[Reply to Use logwatch parameter in data collection on Sat, 24 May 2014 16:34:05 GMT]]></title><description><![CDATA[<p dir="auto">Hi!</p>
<p dir="auto">Try to change DCI data type to string - will it show correct history then?</p>
<p dir="auto">Best regards,<br />
Victor</p>
]]></description><link>https://forum.netxms.org/post/13973</link><guid isPermaLink="true">https://forum.netxms.org/post/13973</guid><dc:creator><![CDATA[victor]]></dc:creator><pubDate>Sat, 24 May 2014 16:34:05 GMT</pubDate></item><item><title><![CDATA[Reply to Use logwatch parameter in data collection on Sat, 24 May 2014 15:10:27 GMT]]></title><description><![CDATA[<p dir="auto">Hello Victor,</p>
<p dir="auto">It seems i have still something going wrong.<br />
My DCI History is still 0.0.</p>
<p dir="auto">I have the Event that works well an reads the Application Event Log.<br />
To check it i have an action that writes the value as an Event in Netxms and the values are correct.<br />
I have also the action that updates the situation, an the value is also updated correctly.<br />
If i test my transformation in the DCI it shows also the right value, so it can access the situation correctly.<br />
But the DCI itselfs stores all the time 0.0.</p>
<p dir="auto">Is this a Bug or are i missing something?</p>
<p dir="auto">Thanks for your feedback.</p>
<p dir="auto">Regards</p>
<p dir="auto">José</p>
]]></description><link>https://forum.netxms.org/post/13972</link><guid isPermaLink="true">https://forum.netxms.org/post/13972</guid><dc:creator><![CDATA[JMC Software]]></dc:creator><pubDate>Sat, 24 May 2014 15:10:27 GMT</pubDate></item><item><title><![CDATA[Reply to Use logwatch parameter in data collection on Sat, 24 May 2014 06:46:57 GMT]]></title><description><![CDATA[<p dir="auto">Create Victor</p>
<p dir="auto">Thanks it works.</p>
]]></description><link>https://forum.netxms.org/post/13970</link><guid isPermaLink="true">https://forum.netxms.org/post/13970</guid><dc:creator><![CDATA[JMC Software]]></dc:creator><pubDate>Sat, 24 May 2014 06:46:57 GMT</pubDate></item><item><title><![CDATA[Reply to Use logwatch parameter in data collection on Fri, 23 May 2014 15:52:41 GMT]]></title><description><![CDATA[<p dir="auto">Hi!</p>
<p dir="auto">Yes, it's possible. You can create "situation" object and in event processing policy set situation's attribute. Then you can create DCI with source "Internal" and parameter "Dummy" and in transformation script read value from situation's attribute. Sample script to access situation can be found here: <a href="https://www.netxms.org/documentation/adminguide/event-processing.html#situations" rel="nofollow ugc">https://www.netxms.org/documentation/adminguide/event-processing.html#situations</a>.</p>
<p dir="auto">Best regards,<br />
Victor</p>
]]></description><link>https://forum.netxms.org/post/13966</link><guid isPermaLink="true">https://forum.netxms.org/post/13966</guid><dc:creator><![CDATA[victor]]></dc:creator><pubDate>Fri, 23 May 2014 15:52:41 GMT</pubDate></item></channel></rss>