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

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

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

Post 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!.
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

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

Post 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
Former Nagios employee
Creator:
ahumandesign.com
enneagrams.com
Ravikimt
Posts: 77
Joined: Tue Apr 03, 2018 12:02 pm

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

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

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

Post 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
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

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

Post by Ravikimt »

@cdienger Thank you so much now it's working fine.
tmcdonald
Posts: 9117
Joined: Mon Sep 23, 2013 8:40 am

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

Post by tmcdonald »

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

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

Post 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
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

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

Post 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
Former Nagios employee
Creator:
ahumandesign.com
enneagrams.com
Ravikimt
Posts: 77
Joined: Tue Apr 03, 2018 12:02 pm

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

Post by Ravikimt »

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:

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

Post by scottwilkerson »

Ravikimt wrote:Thanks, I am good now, you can go ahead and lock this thread.
Glad to help.

Locking
Former Nagios employee
Creator:
ahumandesign.com
enneagrams.com
Locked