<?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[Stuck file Agent]]></title><description><![CDATA[<p dir="auto">Hi All,</p>
<p dir="auto">I am very new to NetXMS. Here is my requirement : I want to monitor for a .txt file should not stuck more than 15 min in c:/tmp folder.<br />
For that which Agent Parameter i have to choose<br />
Please suggest me.<br />
Thanks.<br />
JP</p>
]]></description><link>https://forum.netxms.org/topic/947/stuck-file-agent</link><generator>RSS for Node</generator><lastBuildDate>Fri, 13 Nov 2026 07:22:19 GMT</lastBuildDate><atom:link href="https://forum.netxms.org/topic/947.rss" rel="self" type="application/rss+xml"/><pubDate>Wed, 14 Jul 2010 15:22:18 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Stuck file Agent on Wed, 28 Jul 2010 16:24:03 GMT]]></title><description><![CDATA[<p dir="auto">First of all, you have to specify full path, not just Temp. Second, you have syntax errors in recursion and size parameters - you should use only digits here. So, parameter should looks like</p>
<p dir="auto">File.Count('C:\Temp', 'SAS*.txt', 1, 0, 90)</p>
<p dir="auto">to count number of files older than 90 seconds.</p>
<p dir="auto">Then, threshold by itself looks correct, but did you create appropriate rule in event processing policy?</p>
<p dir="auto">Also, take a look at this step-by-step configuration example: <a href="https://www.netxms.org/documentation/confexample/" rel="nofollow ugc">https://www.netxms.org/documentation/confexample/</a>. It's quite old, and screens  will look a bit different, but you should get an idea.</p>
<p dir="auto">Best regards,<br />
Victor</p>
]]></description><link>https://forum.netxms.org/post/4358</link><guid isPermaLink="true">https://forum.netxms.org/post/4358</guid><dc:creator><![CDATA[victor]]></dc:creator><pubDate>Wed, 28 Jul 2010 16:24:03 GMT</pubDate></item><item><title><![CDATA[Reply to Stuck file Agent on Wed, 28 Jul 2010 14:04:19 GMT]]></title><description><![CDATA[<p dir="auto">Hi Victor,</p>
<p dir="auto">As per your suggestions i have created txt file monitoring by parameter as 'Temp\','SAS*.txt',true,&gt;0,90 And threshold screen shot is attached. Today what i have observed is there is one file sit from 2 days but i didn't get alarm and i have created totally 5 DCIs all are connected to SYS_THRESHOLD_REACHED. But When ever the process down i am getting only Java process Alarm Remaining are not. Please advise me and confirm me like we have to choose different Threshold for every DCI.</p>
<p dir="auto">Thanks,<br />
JP</p>
<hr />
<p dir="auto"><img src="/assets/uploads/files/smf/0000000000364-Threshold.PNG" alt="Threshold.PNG" class="img-markdown  img-fluid" width="448" height="465" /></p>
]]></description><link>https://forum.netxms.org/post/4357</link><guid isPermaLink="true">https://forum.netxms.org/post/4357</guid><dc:creator><![CDATA[redro]]></dc:creator><pubDate>Wed, 28 Jul 2010 14:04:19 GMT</pubDate></item><item><title><![CDATA[Reply to Stuck file Agent on Thu, 15 Jul 2010 12:27:33 GMT]]></title><description><![CDATA[<p dir="auto">Victor,</p>
<p dir="auto">Great help, how ever i am looking for Error in Tomcat log file. basically tomcat will write the log on console. I have tried with several agents but no luck. Could you please don't hesitate to assist me.</p>
<p dir="auto">And i am not able to understand threshold theory, i have gone through the user manual and google search too. If you have any information on the same please help me.</p>
<p dir="auto">Thanks,<br />
JP.</p>
]]></description><link>https://forum.netxms.org/post/4327</link><guid isPermaLink="true">https://forum.netxms.org/post/4327</guid><dc:creator><![CDATA[redro]]></dc:creator><pubDate>Thu, 15 Jul 2010 12:27:33 GMT</pubDate></item><item><title><![CDATA[Reply to Stuck file Agent on Wed, 14 Jul 2010 23:18:47 GMT]]></title><description><![CDATA[<p dir="auto">Hi!</p>
<p dir="auto">Yo can use File.Count parameter. Full syntax is following:</p>
<p dir="auto">File.Count(path, pattern, recursive, size, age)</p>
<p dir="auto">where</p>
<table class="table table-bordered table-striped">
<thead>
<tr>
<th>path</th>
<th>path to directory or file to check</th>
</tr>
</thead>
<tbody>
<tr>
<td>pattern</td>
<td>pattern for file name matching</td>
</tr>
<tr>
<td>recursive</td>
<td>recursion flag; if set to 1 or true, agent will scan subdirectories</td>
</tr>
<tr>
<td>size</td>
<td>size filter (bytes); if &lt; 0, only files with size less than abs(value) will match; if &gt; 0, only files with size greater than value will match; if 0, all files will match</td>
</tr>
<tr>
<td>age</td>
<td>age filter (seconds); if &lt; 0, only files created after now - abs(value) will match; if &gt; 0, only files created before now - value will match; if 0, all files will match</td>
</tr>
</tbody>
</table>
<p dir="auto">path argument is mandatory, all other are optional.</p>
<p dir="auto">So, to count number of .txt files older than 15 minutes in c:\tmp, you can use</p>
<p dir="auto">File.Count('C:\tmp', '*.txt', 0, 0, 900)</p>
<p dir="auto">And after that you just need to set threshold for this parameter to &gt;0, generate appropriate event, and process it as usual.</p>
<p dir="auto">Best regards,<br />
Victor</p>
]]></description><link>https://forum.netxms.org/post/4326</link><guid isPermaLink="true">https://forum.netxms.org/post/4326</guid><dc:creator><![CDATA[victor]]></dc:creator><pubDate>Wed, 14 Jul 2010 23:18:47 GMT</pubDate></item></channel></rss>