<?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[Monitoring FTP daemon[Solved]]]></title><description><![CDATA[<p dir="auto">Hello everybody!</p>
<p dir="auto">I'm a new NetXMS user (very noob) and I'm sorry if the question has been already made, but I was unable to find an answer.</p>
<p dir="auto">My goal is to monitor a FTP daemon (in particular, I'm using vsftpd) using NetXMS. My configuration is:</p>
<p dir="auto">a) NetXMS server+agent installed on a virtual machine with Debian and only with the command line<br />
b) NetXMS agent installed on a local machine (Xubuntu) where I have my FTP daemon installed and which I use to connect to the NetXMS client through web interface or Management Console.</p>
<p dir="auto">I have this strange configuration only because I'm testing my skills, and I'm trying to "learn" NetXMS.</p>
<p dir="auto">So, I've tried to monitor the FTP daemon using similar passages of this tutorial <a href="http://wiki.netxms.org/wiki/How_to_send_e-mail_notification_when_disk_space_is_low" rel="nofollow ugc">http://wiki.netxms.org/wiki/How_to_send_e-mail_notification_when_disk_space_is_low</a> but I haven't been able to set up the right value on Data-Parameter in the general voice of the DCI.<br />
Now my questions are:</p>
<ol>
<li>What should I put on the Parameter voice in the DCI configuration window?</li>
<li>Is there an easiest, or righter, method to monitor a FTP daemon? If yes, could someone please explain me this method?</li>
</ol>
<p dir="auto">Thanks to all for the support!</p>
]]></description><link>https://forum.netxms.org/topic/2394/monitoring-ftp-daemon-solved</link><generator>RSS for Node</generator><lastBuildDate>Fri, 13 Nov 2026 12:16:02 GMT</lastBuildDate><atom:link href="https://forum.netxms.org/topic/2394.rss" rel="self" type="application/rss+xml"/><pubDate>Tue, 21 May 2013 10:43:42 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Monitoring FTP daemon[Solved] on Wed, 22 May 2013 09:54:33 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/victor" aria-label="Profile: victor">@<bdi>victor</bdi></a> said in <a href="/post/10339">Monitoring FTP daemon[Solved]</a>:</p>
<blockquote>
<p dir="auto">Hi!</p>
<p dir="auto">You can use portcheck subagent to check that network service is actually responds. There is short documentation: <a href="http://wiki.netxms.org/wiki/Subagent:PortCheck" rel="nofollow ugc">http://wiki.netxms.org/wiki/Subagent:PortCheck</a>. There are no FTP support, so you can only check that TCP connection can be established.</p>
</blockquote>
<p dir="auto">Yes, I did something similar. I just used ServiceCheck.Custom(<em>IPserverFTP, 21</em>) and the threshold is "=0". So, till I get 0 by the agent, the port 21 is open and then the service is up; once I get 1 the service is down and the alarm is raised.</p>
<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/victor" aria-label="Profile: victor">@<bdi>victor</bdi></a> said in <a href="/post/10339">Monitoring FTP daemon[Solved]</a>:</p>
<blockquote>
<p dir="auto">Another option is to define external parameter on one of the agents to connect and check FTP server. It could be something like this:</p>
<pre><code>ExternalParameter = FTP.Status(*):echo quit | nc -q1 $1 21 | grep '^220 .*' | wc -l
</code></pre>
<p dir="auto">After you add this line to nxagentd.conf and restart agent, it will provide new paraneter FTP.Status, which will take server DNS name or IP address as argument, and return 1 if 220 got in response, and 0 otherwise.</p>
<p dir="auto">Best regards,<br />
Victor</p>
</blockquote>
<p dir="auto">This solution is much smarter and works with the same logic of the first one. So, I'm twice happy: my ideas where right and I obtain also a better solution. Many thanks Victor!</p>
]]></description><link>https://forum.netxms.org/post/10341</link><guid isPermaLink="true">https://forum.netxms.org/post/10341</guid><dc:creator><![CDATA[BlackMamba]]></dc:creator><pubDate>Wed, 22 May 2013 09:54:33 GMT</pubDate></item><item><title><![CDATA[Reply to Monitoring FTP daemon[Solved] on Tue, 21 May 2013 19:02:19 GMT]]></title><description><![CDATA[<p dir="auto">Hi!</p>
<p dir="auto">You can use portcheck subagent to check that network service is actually responds. There is short documentation: <a href="http://wiki.netxms.org/wiki/Subagent:PortCheck" rel="nofollow ugc">http://wiki.netxms.org/wiki/Subagent:PortCheck</a>. There are no FTP support, so you can only check that TCP connection can be established.</p>
<p dir="auto">Another option is to define external parameter on one of the agents to connect and check FTP server. It could be something like this:</p>
<pre><code>ExternalParameter = FTP.Status(*):echo quit | nc -q1 $1 21 | grep '^220 .*' | wc -l
</code></pre>
<p dir="auto">After you add this line to nxagentd.conf and restart agent, it will provide new paraneter FTP.Status, which will take server DNS name or IP address as argument, and return 1 if 220 got in response, and 0 otherwise.</p>
<p dir="auto">Best regards,<br />
Victor</p>
]]></description><link>https://forum.netxms.org/post/10339</link><guid isPermaLink="true">https://forum.netxms.org/post/10339</guid><dc:creator><![CDATA[victor]]></dc:creator><pubDate>Tue, 21 May 2013 19:02:19 GMT</pubDate></item><item><title><![CDATA[Reply to Monitoring FTP daemon[Solved] on Tue, 21 May 2013 14:56:23 GMT]]></title><description><![CDATA[<p dir="auto">I did it!<br />
The answer to my question (1) is: Process.Count(vsftpd). Then I set the threshold to "=0" so the agent verifies the process count and if the daemon is stopped (or down for any reason) the DCI has 0 as value and the alarm is raised. I know that it isn't a very smart solution, but at least it works!<br />
Unfortunately I didn't figure out a easier way. If someone would like to answer to my question (2), he is welcome!</p>
<p dir="auto">Now I have another question. I'd like to verify not only that the daemon is running, but also that the service is working. To do this, I need to connect somehow to the FTP server and verify the reply I obtain after a login attempt. Or just read the answer of the connection attempt. Is it possible to do something like that using NetXMS, possibly using the agent in the local machine (the one where I also have the FTP daemon running)?</p>
]]></description><link>https://forum.netxms.org/post/10337</link><guid isPermaLink="true">https://forum.netxms.org/post/10337</guid><dc:creator><![CDATA[BlackMamba]]></dc:creator><pubDate>Tue, 21 May 2013 14:56:23 GMT</pubDate></item></channel></rss>