Page 1 of 1
How to monitor web application URL via Nagios core 4.3.4.?
Posted: Thu Jun 14, 2018 3:23 am
by Ravikimt
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!.
Re: How to monitor web application URL via Nagios core 4.3.4
Posted: Thu Jun 14, 2018 9:20 am
by scottwilkerson
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
Re: How to monitor web application URL via Nagios core 4.3.4
Posted: Fri Jun 15, 2018 3:29 am
by Ravikimt
@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-
Re: How to monitor web application URL via Nagios core 4.3.4
Posted: Fri Jun 15, 2018 1:20 pm
by cdienger
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
Re: How to monitor web application URL via Nagios core 4.3.4
Posted: Mon Jun 18, 2018 2:07 am
by Ravikimt
@cdienger Thank you so much now it's working fine.
Re: How to monitor web application URL via Nagios core 4.3.4
Posted: Mon Jun 18, 2018 9:43 am
by tmcdonald
Did you have further (related) questions or are we good to lock this up?
Re: How to monitor web application URL via Nagios core 4.3.4
Posted: Tue Jun 19, 2018 1:57 am
by Ravikimt
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
Re: How to monitor web application URL via Nagios core 4.3.4
Posted: Tue Jun 19, 2018 11:04 am
by scottwilkerson
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
Re: How to monitor web application URL via Nagios core 4.3.4
Posted: Tue Jun 19, 2018 11:30 am
by Ravikimt
Thanks, I am good now, you can go ahead and lock this thread.
Re: How to monitor web application URL via Nagios core 4.3.4
Posted: Tue Jun 19, 2018 11:33 am
by scottwilkerson
Ravikimt wrote:Thanks, I am good now, you can go ahead and lock this thread.
Glad to help.
Locking