Check_nrpe and checkfile


#1

I’using nagios 4.2.1 check_nrpe 3.2.0 nscp NSCP-0.5.0.62-x64

I do this check /usr/lib/nagios/plugins/check_nrpe -H 10.209.32.47 -c CheckFiles -a path=‘D:\AIAC1\LOG\AiaceARGO_1.log’ “filter=written lt -5m” syntax="%filename% was modifed %write%" MaxCrit=1 AiaceARGO_1.log was modifed 2017-07-07 13:13:02|‘count’=1;0;1

… and works

/usr/lib/nagios/plugins/check_nrpe -H 10.209.32.47 -c CheckFiles -a path=‘D:\AIAC1\LOG\AiaceARGO.log’ “filter=written lt -5m” syntax="%filename% was modifed %write%" MaxCrit=1 No files found|‘count’=0;0;1 … BUT THE FILE EXIST

Both filese are on the share becasu D:\AIACE1 is a windows sym link to a share

The difference between AiaceARGO_1.log AiaceARGO.log is AiaceARGO_1.log is close and NOT in USE

AiaceARGO.log is open from the application

Is there a way to solve this problem ?

thanks Emilio


#2

If I use nsclient 0.3.9 the command work well !!!

/usr/lib/nagios/plugins/check_nrpe -H 10.209.32.47 -c CheckFiles -a path=‘D:\AIAC1\LOG\AiaceARGO.log’ “filter=written lt -5m” syntax="%filename% was modifed %write%" MaxCrit=1 AiaceARGO.log was modifed 2017-07-12 08:30:02|‘count’=1;0;1

I would guess that the there is a bug in the newer version of the NSCLient++ and it cannot read the status if the file if it is open by another process

Please , someone could help me ?

Thanks Emilio


#3

Please upgrade to the newer check_files command.

// Michael Medin


#4

Hi Michael

Where do I find the new check_files command to download

thanks Emilio