File Monitoring via nrpe (windows)
Posted: Fri Jan 18, 2019 8:24 am
Hi all,
I have a folder in which files are placed on a daily basis, usually early morning.
I am trying to monitor if the last file has been placed in the past 24 hrs, i.e. if older then 24 hrs I raise an alert.
I am using the check_nrpe for this using the check_files script.
The format I'm trying to use is:
But if a file is not placed (or I remove the last file for testing) I still get an ok.
Am I using the correct format for monitoring a file? The files placed are in CSV format as per attached.
Rgds
I have a folder in which files are placed on a daily basis, usually early morning.
I am trying to monitor if the last file has been placed in the past 24 hrs, i.e. if older then 24 hrs I raise an alert.
I am using the check_nrpe for this using the check_files script.
The format I'm trying to use is:
Code: Select all
/usr/local/nagios/libexec/check_nrpe -H am1-sha-app01-p_w-billing -t 30 -c check_files -a path="D:\\WS06\\CdrProcessing\\Reports\\VFI\\BalanceReportsFrom_eServ\\POSTFONE\\Sent\\" 'filter= written > -24h' 'warn= count > 0' 'empty-state=warning' 'empty-syntax=${status}: Last MVNOAccountBalance File is older then 24Hrs'Am I using the correct format for monitoring a file? The files placed are in CSV format as per attached.
Rgds