Page 1 of 1

Check the time and date stamps on files in FTP Site

Posted: Fri Feb 07, 2014 11:06 am
by FTL
Hi all,

Just a quicky - I've had a look around the exchange but cant find anything, so if i've missed something ill ask here too...

I have a need to check 3 files on a remote FTP server to make sure they are copied over onto it every night.

I thought i could do this by Nagios checking the time and date stamp on the files and if they are older than 24 hours when i run the check i know the copy hasn't succeeded and will get an email alert to say so.

Copy is from a Windows server to a FTP site also hosted on a windows box.

Job is run via a command line FTP transfer using Windows Task Scheduler.

At the moment i can get Windows to email me an alert to say the job has finished running but no job results or outputs or anything so will have to manually FTP to remote server and check the dates each day.

Is there such plugin out there that can do this or this going to be a custom script jobby?

Thanks

Re: Check the time and date stamps on files in FTP Site

Posted: Fri Feb 07, 2014 3:54 pm
by tmcdonald
I'm guessing that if you checked Exchange and Google diligently and did not find anything, it will be a custom script. I looked too and did not come up with anything either.

Re: Check the time and date stamps on files in FTP Site

Posted: Fri Feb 07, 2014 3:55 pm
by sreinhardt
Strictly checking through ftp, I am not sure if anything has been written to do that, although I do know that it technically could be done. However would it be possible to install an agent or do a wmi check on the server that you need to verify? We should be able to check file settings with either of those options too.

Re: Check the time and date stamps on files in FTP Site

Posted: Wed Feb 12, 2014 12:11 pm
by FTL
Apologies for the delay - ive had a few days off!

Hmmm WMI checking. Maybe possible, id have to check with the guys.
Problem is the Server is a remote server in a data warehouse for offsite storage of important backups - so its not my server to go installing agents onto.

I backup SQL and WEB bits to a file with my backup software and thats the file being zapped accross via FTP to the remote server share via a private tunnel.
The link is from the Level 3 Datacentre my servers sit in over to the data warehouse accross the city.

Could we do a fileage check via WMI directly on the server - as long as its agentless and no config needs to be done on the remote server.

Still possible do you think Sreinhardt with
http://exchange.nagios.org/directory/Pl ... us/details

Thanks

Re: Check the time and date stamps on files in FTP Site

Posted: Wed Feb 12, 2014 12:22 pm
by slansing
Yes you would be using check_wmi_plus to do this, and it would be agentless. You can follow their documentation for proper configuration on the remote windows system's end.