File Monitoring via nrpe (windows)

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
nms
Posts: 222
Joined: Wed Sep 28, 2016 9:35 am

Re: File Monitoring via nrpe (windows)

Post 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
You do not have the required permissions to view the files attached to this post.
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: File Monitoring via nrpe (windows)

Post 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\\"
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
Locked