<?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[Netxms Agent - get oldest folder]]></title><description><![CDATA[<p dir="auto">How can i use NetXms agent "File.FolderCount" to get folders that are older than x ammount of time ? Is it possbile to specify time with "%{customAttribute:50}"? If not is it possbile to just get the date of oldest folder and then use "%{customAttribute:50}" in threshold ?</p>
]]></description><link>https://forum.netxms.org/topic/6364/netxms-agent-get-oldest-folder</link><generator>RSS for Node</generator><lastBuildDate>Fri, 13 Nov 2026 15:40:15 GMT</lastBuildDate><atom:link href="https://forum.netxms.org/topic/6364.rss" rel="self" type="application/rss+xml"/><pubDate>Wed, 08 Jan 2020 11:56:36 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Netxms Agent - get oldest folder on Thu, 09 Jan 2020 06:29:22 GMT]]></title><description><![CDATA[<p dir="auto">Got that part working. Any suggestions for template use case when i have different servers with different age value ? Or do i need to create them all manualy ?</p>
<p dir="auto">Most simplest thing would be to get just 1 folder thats also the oldes one and return its age, then it could be compared in threshhold with %{customAttribute:50}</p>
]]></description><link>https://forum.netxms.org/post/27239</link><guid isPermaLink="true">https://forum.netxms.org/post/27239</guid><dc:creator><![CDATA[Egert143]]></dc:creator><pubDate>Thu, 09 Jan 2020 06:29:22 GMT</pubDate></item><item><title><![CDATA[Reply to Netxms Agent - get oldest folder on Wed, 08 Jan 2020 18:41:16 GMT]]></title><description><![CDATA[<p dir="auto">Hi,</p>
<p dir="auto">fifth argument to File.FolderCount represents age filter. If &lt; 0, only files created after now - abs(value) will match; if &gt; 0, only files created before now - value will match. For example, to count folders older than one day in /tmp (without recursion) you can use</p>
<p dir="auto">File.FolderCount(/tmp,*,0,,86400)</p>
<p dir="auto">Best regards,<br />
Victor</p>
]]></description><link>https://forum.netxms.org/post/27236</link><guid isPermaLink="true">https://forum.netxms.org/post/27236</guid><dc:creator><![CDATA[victor]]></dc:creator><pubDate>Wed, 08 Jan 2020 18:41:16 GMT</pubDate></item></channel></rss>