Closed cxc718 closed 4 years ago
after much trial and error, got it working by redoing the command as follows:
check_nrpe -H x.x.x.x -c check_drivesize -a "filter=type in ('fixed') and name not regexp '.(System Reserved|SYSTEM RESE).' and drive_or_id not like '?'" "warning=used>90%" "critical=used>95%"
OUTPUT: (expected and correct) Result code: 0 OK All 3 drive(s) are ok|'F:\ used'=377.33093GB;377.99736;398.99721;0;419.99706 'F:\ used %'=90%;90;95;0;100 'L:\ used'=17.26781GB;89.99736;94.99721;0;99.99706 'L:\ used %'=17%;90;95;0;100 'C:\ used'=51.45414GB;53.90946;56.90444;0;59.89941 'C:\ used %'=86%;90;95;0;100
I've seen the filter "name not like '\?\'" in several postings as the way to filter out \?\Volume disks, but that fails on every host I've tried it on, wondering if that is a bug that it does not work?
Issue and Steps to Reproduce
I am using nsclient 0.5.2.039 running under windows 2k8,2k12, and 2k16. I am using check_drivesize. I'm trying to use the filter keyword to exclude non-fixed drives, system partitions, and volumes returned as a GUID. Seems I can exclude one, or the other but not both.
PLEASE PASTE LOG HERE this msg repeats in the nsclient.log:
2019-10-02 14:18:20: error:c:\source\master\include\socket/connection.hpp:273: Seems we other end is not using ssl: unknown protocol 2019-10-02 14:18:20: error:c:\source\master\include\socket/connection.hpp:274: Please review the ssl option as well as ssl options in settings. 2019-10-02 14:18:55: error:c:\source\master\include\socket/connection.hpp:273: Seems we other end is not using ssl: unknown protocol 2019-10-02 14:18:55: error:c:\source\master\include\socket/connection.hpp:274: Please review the ssl option as well as ssl options in settings. 2019-10-02 14:18:55: error:c:\source\master\include\socket/connection.hpp:273: Seems we other end is not using ssl: unknown protocol 2019-10-02 14:18:55: error:c:\source\master\include\socket/connection.hpp:274: Please review the ssl option as well as ssl options in settings. 2019-10-02 14:23:08: error:c:\source\master\include\socket/connection.hpp:273: Seems we other end is not using ssl: unknown protocol 2019-10-02 14:23:08: error:c:\source\master\include\socket/connection.hpp:274: Please review the ssl option as well as ssl options in settings.