How to monitor web application URL via Nagios core 4.3.4.?

An open discussion forum for obtaining help with Nagios Core. Nagios Core users of all experience levels are welcome here. Subforum have been created for the discussion of Nagios Core and Nagios Plugin development.

NOTE: The SourceForge.net mailing lists have been deprecated in favor of this forum in order to expedite support and provide additional features not available on the old mailing list.

How to monitor web application URL via Nagios core 4.3.4.?

Postby 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
https://abcreporting.com
.
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!.
Ravikimt
 
Posts: 65
Joined: Tue Apr 03, 2018 12:02 pm

Re: How to monitor web application URL via Nagios core 4.3.4

Postby 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
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
User avatar
scottwilkerson
CTO
 
Posts: 9726
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises

Re: How to monitor web application URL via Nagios core 4.3.4

Postby 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-
https://abcreporting.com


Response comes with this url-
https://extranet.abc.com/marrsso/idp/SSO.saml2
Ravikimt
 
Posts: 65
Joined: Tue Apr 03, 2018 12:02 pm

Re: How to monitor web application URL via Nagios core 4.3.4

Postby 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.
User avatar
cdienger
Support Tech
 
Posts: 1419
Joined: Tue Feb 07, 2017 11:26 am

Re: How to monitor web application URL via Nagios core 4.3.4

Postby Ravikimt » Mon Jun 18, 2018 2:07 am

@cdienger Thank you so much now it's working fine.
Ravikimt
 
Posts: 65
Joined: Tue Apr 03, 2018 12:02 pm

Re: How to monitor web application URL via Nagios core 4.3.4

Postby tmcdonald » Mon Jun 18, 2018 9:43 am

Did you have further (related) questions or are we good to lock this up?
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.

Be sure to check out our Knowledgebase for helpful articles and solutions!
User avatar
tmcdonald
Operations Engineer
 
Posts: 9055
Joined: Mon Sep 23, 2013 8:40 am

Re: How to monitor web application URL via Nagios core 4.3.4

Postby 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
Ravikimt
 
Posts: 65
Joined: Tue Apr 03, 2018 12:02 pm

Re: How to monitor web application URL via Nagios core 4.3.4

Postby 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
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
User avatar
scottwilkerson
CTO
 
Posts: 9726
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises

Re: How to monitor web application URL via Nagios core 4.3.4

Postby Ravikimt » Tue Jun 19, 2018 11:30 am

Thanks, I am good now, you can go ahead and lock this thread.
Ravikimt
 
Posts: 65
Joined: Tue Apr 03, 2018 12:02 pm

Re: How to monitor web application URL via Nagios core 4.3.4

Postby 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
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
User avatar
scottwilkerson
CTO
 
Posts: 9726
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises


Return to Nagios Core

Who is online

Users browsing this forum: No registered users and 14 guests