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!
Monitor for presence of daily uploaded file
-
pentiumone133
- Posts: 13
- Joined: Tue Mar 29, 2016 2:48 pm
Re: Monitor for presence of daily uploaded file
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.
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.
Be sure to check out the Knowledgebase for helpful articles and solutions!
Re: Monitor for presence of daily uploaded file
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.
Eric Loyd • http://everwatch.global • 844.240.EVER • @EricLoyd
I'm a Nagios Fanatic! • Join our public Nagios Discord Server!
Re: Monitor for presence of daily uploaded file
Thanks eloyd. OP, keep us posted and let us know if we can assist with anything.
Be sure to check out the Knowledgebase for helpful articles and solutions!