check insecure certificate or self signed certificate host

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
Locked
navachaitanya
Posts: 1
Joined: Thu Jan 07, 2016 10:37 pm

check insecure certificate or self signed certificate host

Post by navachaitanya »

Hi All,
I have a internal webserver and I was monitoring the server on 80 port with check_http and now I have installed a self signed certificate for the webserver and now I want to monitor the webserver on port 443, because it has a self signed certificate I was not able to monitor the server with check_http and it is throwing the error, can any one help me on this.
I have tried with below command but there is no use

Code: Select all

./check_http -H 192.168.14.184 -p 443
HTTP WARNING: HTTP/1.1 400 Bad Request - 441 bytes in 0.002 second response time |time=0.002341s;;;0.000000 size=441B;;;0
Please some one help me on this
User avatar
cdienger
Support Tech
Posts: 5045
Joined: Tue Feb 07, 2017 11:26 am

Re: check insecure certificate or self signed certificate ho

Post by cdienger »

Use the "-S" option to force SSL:

./check_http -H 192.168.14.184 -p 443 -S
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
Locked