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';
Article Comments
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
Oct, 2016 - Permalink
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> )..
Oct, 2016 - Permalink
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?
Oct, 2016 - Permalink
Using Exe / Script as the vehicle
The remote server returned an error: 227 entering passive Mode (server-ip)
Nov, 2016 - Permalink
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
Nov, 2016 - Permalink
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
Oct, 2016 - Permalink