Page 1 of 1

Monitor for presence of daily uploaded file

Posted: Wed Jun 22, 2016 11:38 am
by pentiumone133
Hello,

We have an FTP server that accepts a number of files from different offices around the globe. The frequency of the uploads varies but a basic example is something like this:

Sales : file name is Italy – YTD Sales _yyyymmdd_hhmm.xlsx every day at 08.00 AM
Items : file name is Italy-Items_yyyy.mm.dd.csv every Monday 10am
Customers : file name is Italy-Customers_yyyy.mm.dd.csv every Monday 10am

I have SSH access to the FTP server so I'd like to use that instead of going in over FTP to verify. How can I set an alert to trigger for these in the event that the file isnt uploaded by, say, 3 hours after its deadline. This would be simple for me if the file names were always the same but they differ by date and time daily. Im trying to figure out a regex pattern for this myself right now, but figured perhaps someone has done this before and could share.

Thanks for the help!

Re: Monitor for presence of daily uploaded file

Posted: Wed Jun 22, 2016 1:07 pm
by bwallace
Quite a few options, it may depend on what OS your server is...

check_MostRecent (Windows)
https://exchange.nagios.org/directory/P ... 1456514247

check_ file
https://exchange.nagios.org/directory/P ... 1456514247

check_fileage
https://exchange.nagios.org/directory/P ... ck/details

check_latestfile
https://exchange.nagios.org/directory/P ... 1456514247

There could very well others which might better suit your needs if you dig around on the exchange site. Hope this helps, lets us know if any other questions.

Re: Monitor for presence of daily uploaded file

Posted: Wed Jun 22, 2016 1:54 pm
by eloyd
If you need additional help with this, PM me. Sometimes finding the right plugin in the exchange can be hard. We've done this operation before.

Re: Monitor for presence of daily uploaded file

Posted: Wed Jun 22, 2016 2:22 pm
by bwallace
Thanks eloyd. OP, keep us posted and let us know if we can assist with anything.