What is this?

This knowledgebase contains questions and answers about PRTG Network Monitor and network monitoring in general.

Learn more

PRTG Network Monitor

Intuitive to Use. Easy to manage.
More than 500,000 users rely on Paessler PRTG every day. Find out how you can reduce cost, increase QoS and ease planning, as well.

Free Download

Top Tags


View all Tags

FTP server file count looks like not working with passive mode?

Votes:

0

I've setup a sensor for counting files in a specific folder. But constant receiving the following alarm:

227 Entering Passive Mode

Below the logs:

[Probe] 26-10-2016 13:42:05 Microsoft Windows 7 Professional 6.1.7601.65536 nl-NL [Sensor] FTPFileCount 15.1.1 Run by PRTG probe. [Parameters] -debug=C:\ProgramData\Paessler\PRTG Network Monitor\Logs (Sensors)\Result of Sensor 2245.txt -u=xxx -p=xxx -id=2245 ftp://<ftpserver>/live/outbox [Trace] Checking folder /live/outbox/. [Error] De externe server heeft een fout geretourneerd: 227 Entering Passive Mode (192,168,248,50,220,225). . Exitcode custom_error

Data ---------------- Data['blockedsens'].asString := ''; Data['canlinux'].asString := '0'; Data['channelinfos'].asString := '{"0":{"Unit":"oukCount","CustomUnit":"","ValueLookupName":"","LimitMode":"0","LimitMinError":"","LimitMinWarning":"","LimitMaxError":"","LimitMaxWarning":""},"1":{"Unit":"oukTimeResponse","CustomUnit":"","ValueLookupName":"","LimitMode":"0","LimitMinError":"","LimitMinWarning":"","LimitMaxError":"","LimitMaxWarning":""}}'; Data['channelnames'].asString := 'Files'#$D#$A + '0'#$D#$A + 'Execution Time'#$D#$A + '1'#$D#$A + ''; Data['environment'].asString := ''; Data['exefile'].asString := 'FTPFileCount.exe'; Data['exeparams'].asString := '-u="<username>" -p="<password>" -id=2245 ftp://<ftp_server>/live/outbox'; Data['fastcount'].asString := '0'; Data['host'].asString := '<server IP>'; Data['hostv6'].asString := ''; Data['inerror'].asString := '1'; Data['interfacenumber'].asString := ''; Data['inum'].asString := ''; Data['ipversion'].asString := '0'; Data['isexesensor'].asString := '1'; Data['lastmsg'].asString := '227 Entering Passive Mode (<server_ip>,220,41). .'; Data['lastuptime'].asString := '0'; Data['linuxlogindomain'].asString := ''; Data['linuxloginpassword'].asString := '*'; Data['monitorchange'].asString := '0'; Data['mutexname'].asString := 'ptfftpcountID2245'; Data['ptfwriteresult'].asString := '1'; Data['reboot'].asString := '42668.4755329745'; Data['reqmsginterval'].asString := '600'; Data['requiredotnetversion'].asString := '40'; Data['sensorid'].asString := '2245'; Data['simulate'].asString := '0'; Data['timeout'].asString := '600'; Data['tlsexplicit_default'].asString := ''; Data['tlsexplicit_ftp'].asString := ''; Data['tlsexplicit_imap'].asString := ''; Data['tlsexplicit_pop3'].asString := ''; Data['tlsexplicit_port'].asString := ''; Data['tlsexplicit_smtp'].asString := ''; Data['uptimecount'].asString := '0'; Data['usednstime'].asString := '0'; Data['usewindowsauthentication'].asString := ''; Data['valuetype'].asString := '0'; Data['windowslogindomain'].asString := ''; Data['windowsloginpassword'].asString := '*'; Data['windowsloginusername'].asString := ''; Data['writeresult'].asString := '0';

ftp ftp-files prtg

Created on Oct 26, 2016 11:55:05 AM



10 Replies

Votes:

0

There is another version of the sensor that has not been implemented yet. Stay tuned, I will send it to you manually so you can use it as a custom sensor.

Kind regards,

Erhard

Created on Oct 26, 2016 9:22:45 PM by  Erhard Mikulik [Paessler Support]



Votes:

0

Where can I find it :) ?

Created on Oct 27, 2016 6:00:57 AM



Votes:

0

Did you mail us the custom sensor already?

Created on Oct 27, 2016 8:50:53 AM



Votes:

0

I will email it to you as soon as I get the new version from the developer, I somehow misplaced my local copy unfortunately :/

Kind regards,

Erhard

Created on Oct 27, 2016 9:36:03 AM by  Erhard Mikulik [Paessler Support]

Last change on Oct 27, 2016 9:46:17 AM by  Erhard Mikulik [Paessler Support]



Votes:

0

You've got mail.

Kind regards,

Erhard

Created on Oct 28, 2016 12:05:00 PM by  Erhard Mikulik [Paessler Support]



Votes:

0

Thnx for the mail. Tried the following:

-u="<user>" -p="<pass>" -f="<folder>" -pasv -h="<server>" -id="2246"

which is resulting in the following error: 227 Entering Passive Mode (<server> )..

Created on Oct 31, 2016 8:02:15 AM



Votes:

0

Which sensor type did you use as "vehicle" for the executable? Exe/Script or Exe/Script Advanced? What output do you get when running the executable with parameters in a command prompt window?

Created on Oct 31, 2016 7:41:05 PM by  Erhard Mikulik [Paessler Support]



Votes:

0

Using Exe / Script as the vehicle

The remote server returned an error: 227 entering passive Mode (server-ip)

Created on Nov 1, 2016 7:50:27 AM



Votes:

0

I'll consult the developer and get back to you.

Kind regards,

Erhard

Created on Nov 1, 2016 12:11:49 PM by  Erhard Mikulik [Paessler Support]



Votes:

0

This could be an issue due to a firewall. Is there a firewall between PRTG and the FTP? Further "candidates" might be the firewall running on the PRTG server (or Remote Probe) and the FTP itself, try disabling those local firewalls to see if it works then and check the logs of firewalls in-between. "227 entering passive mode" is basically ok, but then it seems to just sit there not being able to proceed and a firewall might be a possible reason for this.

Kind regards,

Erhard

Created on Nov 1, 2016 3:34:06 PM by  Erhard Mikulik [Paessler Support]




Disclaimer: The information in the Paessler Knowledge Base comes without warranty of any kind. Use at your own risk. Before applying any instructions please exercise proper system administrator housekeeping. You must make sure that a proper backup of all your data is available.