FreshX-GmbH / check_couchdb

Advanced CouchDB check script for Nagios / Centreon written in NodeJS
BSD 2-Clause "Simplified" License
0 stars 3 forks source link

Allow untrusted certificates #1

Open couilllard45682 opened 7 years ago

couilllard45682 commented 7 years ago

root@XXXXXX:~# /usr/local/bin/check_couchdb -H localhost --ssl -d Error : Error: CERT_UNTRUSTED

couilllard45682 commented 7 years ago

Using the variable NODE_TLS_REJECT_UNAUTHORIZED = "0" works.

root@XXXXXX:~# NODE_TLS_REJECT_UNAUTHORIZED="0" /usr/local/bin/check_couchdb -H localhost --ssl CouchDB ok|openDatabases=100 openFiles=301 requestTimeAvg=29.682 okRequests=3062 notAuthorizedRequests=null badResponseRequests=null notAllowedRequests=null