Page 1 of 1

URL monitoring

Posted: Wed Jun 08, 2016 12:41 am
by abodage
Hi Team,

While configuring URL monitoring I am getting "HTTP CRITICAL - No data received from host" status.

I am using following command,

Code: Select all

/usr/local/nagios/libexec/check_http -H abc123  -f ok -I xx.xx.xx.xx -u '/enoviafcs/servlet/fcs/about' -p 443


Thanks.

Re: URL monitoring

Posted: Wed Jun 08, 2016 9:15 am
by rkennedy
Is your host 'abc123', and is everything correct? What is the output of curl https://abc123/enoviafcs/servlet/fcs/about?

Re: URL monitoring

Posted: Fri Jun 10, 2016 1:32 am
by abodage
Hi,
Output of

Code: Select all

curl https://abc123/enoviafcs/servlet/fcs/about
is below:

Code: Select all

[root@xxxnagiosxi00 ~]# curl -I https://abc123.xxx.com/enoviafcs/servlet/fcs/about
HTTP/1.1 200 OK
Server: Apache-Coyote/1.1
Content-Length: 0
Date: Fri, 10 Jun 2016 06:28:08 GMT

Re: URL monitoring

Posted: Fri Jun 10, 2016 9:55 am
by rkennedy
abodage wrote:Hi,
Output of

Code: Select all

curl https://abc123/enoviafcs/servlet/fcs/about
is below:

Code: Select all

[root@xxxnagiosxi00 ~]# curl -I https://abc123.xxx.com/enoviafcs/servlet/fcs/about
HTTP/1.1 200 OK
Server: Apache-Coyote/1.1
Content-Length: 0
Date: Fri, 10 Jun 2016 06:28:08 GMT
Can you adjust your command to use the full FQDN instead of just abc123 as you did in the CURL? For example -

Code: Select all

/usr/local/nagios/libexec/check_http -H abc123.xxx.com  -f ok -I xx.xx.xx.xx -u '/enoviafcs/servlet/fcs/about' -p 443