Nagios checks for AWS S3 file ages
Posted: Wed Sep 27, 2017 10:50 am
Hello,
I am currently having issues with a Nagios check related to Amazon S3 file checks. I am trying to set up checks on the buckets in S3 to check file dates and times, so if our Synology units fail to back up to S3 we will be notified. Currently our Synology units backup files to S3 buckets, but the file dates and sizes change daily so it is not as simple as constantly checking for one file being backed up. Synology will notify us if they fail to back up to S3, but recently we had an issue where Synology broke and not only failed to back up but failed to notify that the backups failed.
In our environment we run a similar check that checks for file ages and if the file age in a folder is greater then 48 hours we get alerts. I have found only a few plugins online which even mention AWS, and I am having issues setting them up. https://exchange.nagios.org/directory/P ... 29/details This plugin I have been trying to use, and it seems easy enough. After putting the script into the /usr/lib/nagios/plugins folder I try to execute the script and get this response:
Can't locate HariSekhonUtils.pm in @INC (you may need to install the HariSekhonUtils module) (@INC contains: ./lib /etc/perl /usr/local/lib/x86_64-linux-gnu/perl/5.24.1 /usr/local/share/perl/5.24.1 /usr/lib/x86_64-linux-gnu/perl5/5.24 /usr/share/perl5 /usr/lib/x86_64-linux-gnu/perl/5.24 /usr/share/perl/5.24 /usr/local/lib/site_perl /usr/lib/x86_64-linux-gnu/perl-base) at ./check_aws_s3_file.pl line 24.
BEGIN failed--compilation aborted at ./check_aws_s3_file.pl line 24.
I have tried to follow his instructions here: https://github.com/harisekhon/nagios-plugins. But I have not been able to figure this check out yet. Has anyone had any luck with setting checks up to monitor files in AWS S3?
Thanks
I am currently having issues with a Nagios check related to Amazon S3 file checks. I am trying to set up checks on the buckets in S3 to check file dates and times, so if our Synology units fail to back up to S3 we will be notified. Currently our Synology units backup files to S3 buckets, but the file dates and sizes change daily so it is not as simple as constantly checking for one file being backed up. Synology will notify us if they fail to back up to S3, but recently we had an issue where Synology broke and not only failed to back up but failed to notify that the backups failed.
In our environment we run a similar check that checks for file ages and if the file age in a folder is greater then 48 hours we get alerts. I have found only a few plugins online which even mention AWS, and I am having issues setting them up. https://exchange.nagios.org/directory/P ... 29/details This plugin I have been trying to use, and it seems easy enough. After putting the script into the /usr/lib/nagios/plugins folder I try to execute the script and get this response:
Can't locate HariSekhonUtils.pm in @INC (you may need to install the HariSekhonUtils module) (@INC contains: ./lib /etc/perl /usr/local/lib/x86_64-linux-gnu/perl/5.24.1 /usr/local/share/perl/5.24.1 /usr/lib/x86_64-linux-gnu/perl5/5.24 /usr/share/perl5 /usr/lib/x86_64-linux-gnu/perl/5.24 /usr/share/perl/5.24 /usr/local/lib/site_perl /usr/lib/x86_64-linux-gnu/perl-base) at ./check_aws_s3_file.pl line 24.
BEGIN failed--compilation aborted at ./check_aws_s3_file.pl line 24.
I have tried to follow his instructions here: https://github.com/harisekhon/nagios-plugins. But I have not been able to figure this check out yet. Has anyone had any luck with setting checks up to monitor files in AWS S3?
Thanks