monitor https request
Posted: Tue Dec 09, 2014 1:32 am
Hi Sir
I want to monitor https request in nagios
./check_http -Hlocalhost -p443 -vv
GET / HTTP/1.1
User-Agent: check_http/v2.0 (nagios-plugins 2.0)
Connection: close
Host: localhost:443
http://localhost:443/ is 553 characters
STATUS: <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
**** HEADER ****
<html><head>
<title>400 Bad Request</title>
</head><body>
<h1>Bad Request</h1>
<p>Your browser sent a request that this server could not understand.<br />
Reason: You're speaking plain HTTP to an SSL-enabled server port.<br />
Instead use the HTTPS scheme to access this URL, please.<br />
<blockquote>Hint: <a href="https://localhost/"><b>https://localhos ... kquote></p>
<hr>
<address>Apache/2.2.22 (Ubuntu) Server at localhost Port 443</address>
</body></html>
**** CONTENT ****
HTTP CRITICAL - Invalid HTTP response received from host on port 443: <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
./check_http -H localhost -p 443 --ssl
check_http: Invalid option - SSL is not available
Usage:
check_http -H <vhost> | -I <IP-address> [-u <uri>] [-p <port>]
[-J <client certificate file>] [-K <private key>]
[-w <warn time>] [-c <critical time>] [-t <timeout>] [-L] [-E] [-a auth]
[-b proxy_auth] [-f <ok|warning|critcal|follow|sticky|stickyport>]
[-e <expect>] [-d string] [-s string] [-l] [-r <regex> | -R <case-insensitive regex>]
[-P string] [-m <min_pg_size>:<max_pg_size>] [-4|-6] [-N] [-M <age>]
[-A string] [-k string] [-S <version>] [--sni] [-C <warn_age>[,<crit_age>]]
[-T <content-type>] [-j method]
I'm not able to understand this error please do some one suggest how to monitor https websites in nagios
Thanks
Varalakshmi
I want to monitor https request in nagios
./check_http -Hlocalhost -p443 -vv
GET / HTTP/1.1
User-Agent: check_http/v2.0 (nagios-plugins 2.0)
Connection: close
Host: localhost:443
http://localhost:443/ is 553 characters
STATUS: <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
**** HEADER ****
<html><head>
<title>400 Bad Request</title>
</head><body>
<h1>Bad Request</h1>
<p>Your browser sent a request that this server could not understand.<br />
Reason: You're speaking plain HTTP to an SSL-enabled server port.<br />
Instead use the HTTPS scheme to access this URL, please.<br />
<blockquote>Hint: <a href="https://localhost/"><b>https://localhos ... kquote></p>
<hr>
<address>Apache/2.2.22 (Ubuntu) Server at localhost Port 443</address>
</body></html>
**** CONTENT ****
HTTP CRITICAL - Invalid HTTP response received from host on port 443: <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
./check_http -H localhost -p 443 --ssl
check_http: Invalid option - SSL is not available
Usage:
check_http -H <vhost> | -I <IP-address> [-u <uri>] [-p <port>]
[-J <client certificate file>] [-K <private key>]
[-w <warn time>] [-c <critical time>] [-t <timeout>] [-L] [-E] [-a auth]
[-b proxy_auth] [-f <ok|warning|critcal|follow|sticky|stickyport>]
[-e <expect>] [-d string] [-s string] [-l] [-r <regex> | -R <case-insensitive regex>]
[-P string] [-m <min_pg_size>:<max_pg_size>] [-4|-6] [-N] [-M <age>]
[-A string] [-k string] [-S <version>] [--sni] [-C <warn_age>[,<crit_age>]]
[-T <content-type>] [-j method]
I'm not able to understand this error please do some one suggest how to monitor https websites in nagios
Thanks
Varalakshmi