ftp transfer check timeout

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
vital4ik
Posts: 19
Joined: Wed Apr 17, 2013 1:23 pm

ftp transfer check timeout

Post by vital4ik »

Hi guys, I am back with yet another issue now retarding ftp transfer check
im getting this: (Service Check Timed Out)
lftp was not installed so i had to install it. i see that check_ftp_fully script is used. it seems that both nagios and check_ftp_fully work fine, since even when i try to connect manually from the nagios box to the ftp server using lftp client it just hangs..


Edit:

output from the lftp command:

Code: Select all

<- 234 AUTH command OK. Initializing SSL connection.
-> CLNT lftp/4.4.2
`ls' at 0 [Logging in...]
it pretty much hangs at this point
ftp server is serv-u 11 on port 21 it uses ftp with explicit ssl/tls
Last edited by slansing on Thu Apr 25, 2013 9:24 am, edited 1 time in total.
Reason: Please do not double post, and also please use code-wraps when you place snippits of code on the screen, this helps clear clutter!
slansing
Posts: 7698
Joined: Mon Apr 23, 2012 4:28 pm
Location: Travelling through time and space...

Re: ftp transfer check timeout

Post by slansing »

Can you share where you downloaded the plugin from? The link?
vital4ik
Posts: 19
Joined: Wed Apr 17, 2013 1:23 pm

Re: ftp transfer check timeout

Post by vital4ik »

it came with the ftp wizard that I downloaded here:
http://exchange.nagios.org/directory/Ad ... rd/details
the problem is with lftp client and explicit ssl/tls it seems, nagios waits for lftp and times out waiting for output
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: ftp transfer check timeout

Post by scottwilkerson »

As this plugin is designed I don't believe it supports SSL

You could modify the plugin to add something to each of the command lines like this

Code: Select all

${LFTP} -u ${USERNAME},${PASSWORD} -p${PORT} -e "set ftp:ssl-force true,ftp:ssl-protect-data true;LS; QUIT" ${HOSTNAME} &> /dev/null
but I am unsure of the exact commands you would need to use, it would be a bit of trial and error...
http://linux.die.net/man/1/lftp
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
Locked