Check_nrpe and checkfile
Posted: Fri Jul 07, 2017 9:10 am
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 files are on the share because
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
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 files are on the share because
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