FtpMonitor The FtpMonitor is able to validate ftp connection dial-up processes. The monitor can test ftp server on multiple ports and specific login data. The service using the FtpMonitor is up if the FTP server responds with return codes between 200 and 299. For special cases the service is also marked as up for 425 and 530. This monitor implements placeholder substitution in parameter values. Monitor Facts Class Name org.opennms.netmgt.poller.monitors.FtpMonitor Remote Enabled true Configuration and Use Table 1. Monitor specific parameters for the FtpMonitor. Parameter Description Required Default value Placeholder substitution retry Number of attempts to get a valid FTP response/response-text optional 0 No port A list of TCP ports to which connection shall be tried. optional 20,21 No password This parameter is meant to be used together with the userid parameter to perform authentication. This parameter specifies the password to be used. optional empty string Yes userid This parameter is meant to be used together with the password parameter to perform authentication. This parameter specifies the user ID to be used. optional - Yes This monitor implements the Common Configuration Parameters. Examples Some example configuration how to configure the monitor in the 'poller-configuration.xml' <service name="FTP" interval="300000" user-defined="false" status="on"> <parameter key="retry" value="1"/> <parameter key="timeout" value="3000"/> <parameter key="port" value="21"/> <parameter key="userid" value=""/> <parameter key="password" value=""/> </service> <service name="FTP-With-Auth-From-Asset" interval="300000" user-defined="false" status="on"> <parameter key="retry" value="1"/> <parameter key="timeout" value="3000"/> <parameter key="port" value="21"/> <parameter key="userid" value="\{username\}"/> <parameter key="password" value="{password}"/> </service> <service name="FTP-Customer" interval="300000" user-defined="false" status="on"> <parameter key="retry" value="1"/> <parameter key="timeout" value="3000"/> <parameter key="port" value="21"/> <parameter key="userid" value="Customer"/> <parameter key="password" value="MySecretPassword"/> </service> <monitor service="FTP" class-name="org.opennms.netmgt.poller.monitors.FtpMonitor"/> <monitor service="FTP-With-Auth-From-Asset" class-name="org.opennms.netmgt.poller.monitors.FtpMonitor"/> <monitor service="FTP-Customer" class-name="org.opennms.netmgt.poller.monitors.FtpMonitor"/> Hint Comment from FtpMonitor source Also want to accept the following ERROR message generated by some FTP servers following a QUIT command without a previous successful login: "530 QUIT : User not logged in. Please login with USER and PASS first." Also want to accept the following ERROR message generated by some FTP servers following a QUIT command without a previously successful login: "425 Session is disconnected." See also: http://tools.ietf.org/html/rfc959 DNSResolutionMonitor HostResourceSwRunMonitor