NRPE - check_file_change.sh

#!/bin/bash if [ find /var/local/lib/x/ -type f -mmin -120 | wc -l -ge 20 ] then echo “OK - 20 or more files were changed during the last 120 minutes in /var/local/lib/x/” else echo “CRITICAL - Less than 20 files were changed during the last 120 minutes in /var/local/lib/x/” fi