mickem / nscp

NSClient++
http://nsclient.org
GNU General Public License v2.0
240 stars 94 forks source link

Check_nrpe and count files : bad Unknown status #717

Open emi65 opened 3 years ago

emi65 commented 3 years ago

/usr/lib/nagios/plugins/check_nrpe -H 10.209.30.212 -2 -c CheckFiles -a path='F:\FAXSR\MailConnector2\JobQueue' pattern=. MaxWarn=10 MaxCrit=10 No files found|'count'=0;10;10

Count (correctly) 0 files because in folder I have 0 files 
but the status i 3 (unkonwn)

Expected Behavior

I expect status OK

I use

nickerejv commented 3 years ago

@emi65 Have you been able to find a workaround for this?

Regards Nikolay

emi65 commented 3 years ago

I didn't find any workaround

jbeaujour commented 12 months ago

Hello Try check_files and this option : https://nsclient.org/docs/reference/windows/CheckDisk/#check_files_empty-state