Page 2 of 2

Re: File Monitoring via nrpe (windows)

Posted: Thu Jan 24, 2019 5:51 am
by nms
Hi,

I have tried this here' my output:

1. I have these files:
2019-01-24_1126.png
Running the command

Code: Select all

[nagios@am1nms-nagiosxi ~]$ /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}: My CSV File is older then 24Hrs' 
WARNING: My CSV File is older then 24Hrs|'count'=0;0;0
At this stage, I shouldn't have a warning as the last file is newer than 24hrs!

2. Next, I placed a new text file:
2019-01-24_1126.png
if I run the same command I still get a warning.

I expected to see an OK for both cases.

The server is a Windows 2008 Server R2 Datacenter with the latest NSCP client 0.5.3.35

Re: File Monitoring via nrpe (windows)

Posted: Thu Jan 24, 2019 8:06 am
by scottwilkerson
These aren't the same folder, the command you are running is on a subfolder containing "POSTFONE" but the directory you are showing isn't

Code: Select all

-a path="D:\\WS06\\CdrProcessing\\Reports\\VFI\\BalanceReportsFrom_eServ\\POSTFONE\\Sent\\"