Monitor for presence of daily uploaded file

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
pentiumone133
Posts: 13
Joined: Tue Mar 29, 2016 2:48 pm

Monitor for presence of daily uploaded file

Post 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!
bwallace
Posts: 1145
Joined: Tue Nov 17, 2015 1:57 pm

Re: Monitor for presence of daily uploaded file

Post 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.
Be sure to check out the Knowledgebase for helpful articles and solutions!
User avatar
eloyd
Cool Title Here
Posts: 2190
Joined: Thu Sep 27, 2012 9:14 am
Location: Rochester, NY
Contact:

Re: Monitor for presence of daily uploaded file

Post 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.
Image
Eric Loyd • http://everwatch.global • 844.240.EVER • @EricLoyd
I'm a Nagios Fanatic! • Join our public Nagios Discord Server!
bwallace
Posts: 1145
Joined: Tue Nov 17, 2015 1:57 pm

Re: Monitor for presence of daily uploaded file

Post by bwallace »

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!
Locked