check_files plugin issue
Posted: Mon Sep 25, 2017 12:13 pm
Hi,
We are trying to monitor files that are not updated from 10 minutes using check_files plugin.
We are using below command
/usr/local/nagios/libexec/check_nrpe -H XXXXX -p 5666 -t 30 -c check_files -a path="E:\\Applications\\RTGF\\RTGFPolling\\Logs" pattern="`date +%Y%m%d`-RGTFLog.txt" "filter=written < -10m" 'critical=count>0' top-syntax='${status}: ${problem_count}/${count} files' 'empty-state=OK'
We are receiving alert with UNKNOWN state if no file older than 10 minutes.
Is it possible to get alert with OK state instead of UNKNOWN state ?
We are trying to monitor files that are not updated from 10 minutes using check_files plugin.
We are using below command
/usr/local/nagios/libexec/check_nrpe -H XXXXX -p 5666 -t 30 -c check_files -a path="E:\\Applications\\RTGF\\RTGFPolling\\Logs" pattern="`date +%Y%m%d`-RGTFLog.txt" "filter=written < -10m" 'critical=count>0' top-syntax='${status}: ${problem_count}/${count} files' 'empty-state=OK'
We are receiving alert with UNKNOWN state if no file older than 10 minutes.
Is it possible to get alert with OK state instead of UNKNOWN state ?