mickem / nscp

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

check_drivesize : The system cannot find the path specified #679

Open ritouret opened 4 years ago

ritouret commented 4 years ago

Hello,

I don't understand how to use arguments to have a CRITICAL message if disk is missing :

Request : check_drivesize -a "drive=F:\CRP" "warning=used>90% and free<100G" "critical=used>95% and free<50G" "empty-state=CRITICAL" "empty-syntax=CRITICAL: Aucun disque" "show-all"

Answer : Filter processing failed: Failed to get size for F:\CRP: 57: The parameter is incorrect. : 0 > convert(0) and 0 < convert(53687091200)

With returncode = 3

It should be : CRITICAL: Aucun disque

What's going wrong with these arguments ?

The Nsclient version used is 0.5.2.35 2018-01-28

Thanks

ritouret commented 4 years ago

There is twice \ for drive argument but it only show one in this issue ...

andreasgottwald commented 4 years ago

Try forwardslashes instead of backslashes.