Log Files

check_file_monitoring

Description:

Plugin in python to be run remotely via check_by_ssh on a FTP/SFTP/SCP server (in my case NAS synology).
It allows to monitor if a file (like a backup of a device) is created regularly and optionally validate it against a md5 if available.
It runs as follow (script must be on the remote server like here “/var/services/homes/nagios/check_file_monitoring”):

check_file_monitoring -d ” -f ‘file pattern to be matched’ -s -c -w ” -t

sudo -u nagios /usr/local/nagios/libexec/check_by_ssh -H -C “/var/services/homes/nagios/check_file_monitoring -d ‘/volumex/backup/nagios/’ -f ‘nagios_server*.gz’ -s md5 -c 7 -w 5” -t 180

Return something like:
OK – Last file found /volumex/backup/nagios/nagios_server_mycompany.org.backup.200508.tar.gz was updated on 2020-05-08 , has a size of 1366862734 KiBs and has a valid md5 calculated of bb1ad22a1403bc94f2650a61ac14fc9c wich matches the one received in /volumex/backup/nagios/nagios_server_mycompany.org.backup.200508.tar.gz.md5

Current Version

1.0

Last Release Date

2020-04-02

Compatible With

  • Nagios 4.x
  • Nagios XI

Owner


Project Files
Project Notes
Reviews (0) Add a Review
Add a Review

You must be logged in to submit a review.

Thank you for your review!

Your review has been submitted and is pending approval.

Recommend

To:


From:


Thank you for your recommendation!

Your recommendation has been sent.

Project Stats
Rating
0 (0)
Favorites
0
Views
4,558