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
Check the time and date stamps on files in FTP Site
Re: Check the time and date stamps on files in FTP Site
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.
Former Nagios employee
-
sreinhardt
- -fno-stack-protector
- Posts: 4366
- Joined: Mon Nov 19, 2012 12:10 pm
Re: Check the time and date stamps on files in FTP Site
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.
Nagios-Plugins maintainer exclusively, unless you have other C language bugs with open-source nagios projects, then I am happy to help! Please pm or use other communication to alert me to issues as I no longer track the forum.
Re: Check the time and date stamps on files in FTP Site
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
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
-
slansing
- Posts: 7698
- Joined: Mon Apr 23, 2012 4:28 pm
- Location: Travelling through time and space...
Re: Check the time and date stamps on files in FTP Site
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.