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.
Ravikimt
Posts: 77 Joined: Tue Apr 03, 2018 12:02 pm
Post
by Ravikimt » Thu Jun 14, 2018 3:23 am
I have to monitor a web application URL it's a https link looks like this URL not exact the same
.
How I can monitor this link if don't have any other information like (Server IP n all). Is it possible to monitor this link .?
@scottwilkerson Can you please suggest something here.? Thanks in advance!.
scottwilkerson
DevOps Engineer
Posts: 19396 Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:
Post
by scottwilkerson » Thu Jun 14, 2018 9:20 am
The check_http plugin can do what you need and comes with the nagios-plugins package
In it's simplest form:
Code: Select all
./check_http -H abcreporting.com -S
Ravikimt
Posts: 77 Joined: Tue Apr 03, 2018 12:02 pm
Post
by Ravikimt » Fri Jun 15, 2018 3:29 am
@scottwilkerson I have already tried this command.
Code: Select all
./check_http -H abcreporting.com -S
But it gives me below mentioned error, But I am getting the proper response or web page if I try to access the same url via my web browser.
HTTP CRITICAL: HTTP/1.0 503 Service Unavailable - 1736 bytes in 0.979 second response time |time=0.979090s;;;0.000000 size=1736B;;;0
I observed one more thing while getting the response from web the url changes it's not same url looks like some redirection happens.
Requesting for this site-
Response comes with this url-
cdienger
Support Tech
Posts: 5045 Joined: Tue Feb 07, 2017 11:26 am
Post
by cdienger » Fri Jun 15, 2018 1:20 pm
You may need the --sni option in order to make sure you're connecting to the correct site:
./check_http -H abcreporting.com --sni -S
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new
Privacy Policy .
Ravikimt
Posts: 77 Joined: Tue Apr 03, 2018 12:02 pm
Post
by Ravikimt » Mon Jun 18, 2018 2:07 am
@cdienger Thank you so much now it's working fine.
tmcdonald
Posts: 9117 Joined: Mon Sep 23, 2013 8:40 am
Post
by tmcdonald » Mon Jun 18, 2018 9:43 am
Did you have further (related) questions or are we good to lock this up?
Former Nagios employee
Ravikimt
Posts: 77 Joined: Tue Apr 03, 2018 12:02 pm
Post
by Ravikimt » Tue Jun 19, 2018 1:57 am
Just I want to know that what does it mean "--sni" in below mentioned command.?
Code: Select all
./check_http -H abcreporting.com --sni -S
scottwilkerson
DevOps Engineer
Posts: 19396 Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:
Post
by scottwilkerson » Tue Jun 19, 2018 11:04 am
Ravikimt wrote: Just I want to know that what does it mean "--sni" in below mentioned command.?
Code: Select all
./check_http -H abcreporting.com --sni -S
from the help
Code: Select all
# /usr/local/nagios/libexec/check_http --help
Code: Select all
--sni
Enable SSL/TLS hostname extension support (SNI)
It helps some servers get correct info for SSL certificate support
Ravikimt
Posts: 77 Joined: Tue Apr 03, 2018 12:02 pm
Post
by Ravikimt » Tue Jun 19, 2018 11:30 am
Thanks, I am good now, you can go ahead and lock this thread.
scottwilkerson
DevOps Engineer
Posts: 19396 Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:
Post
by scottwilkerson » Tue Jun 19, 2018 11:33 am
Ravikimt wrote: Thanks, I am good now, you can go ahead and lock this thread.
Glad to help.
Locking