URL status monitoring

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
RIDS_I2MP
Posts: 751
Joined: Thu Mar 13, 2014 9:25 am

Re: URL status monitoring

Post by RIDS_I2MP »

Below mentioned is the output of using -f follow and -v:

[nagios@hostname libexec]$ ./check_http -H <IP> -f follow -I <IP> -u <extended URL>-p 80 -s 'Namespace:' -v
GET <extended URL>HTTP/1.1
User-Agent: check_http/v2.0.3 (nagios-plugins 2.0.3)
Connection: close
Host: <IP>
Accept: */*


http://<IP>:80<extended URL>is 448 characters
STATUS: HTTP/1.1 301 Moved Permanently
**** HEADER ****
Date: Thu, 08 Jun 2017 09:21:06 GMT
Server: Apache
Location: http://<IP><extended URL>/
Content-Length: 236
Connection: close
Content-Type: text/html; charset=iso-8859-1
**** CONTENT ****
<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
<html><head>
<title>301 Moved Permanently</title>
</head><body>
<h1>Moved Permanently</h1>
<p>The document has moved <a href="<URL>">here</a>.</p>
</body></html>

Redirection to http://<IP>:80<extended URL>
GET <extended URL>/ HTTP/1.1
User-Agent: check_http/v2.0.3 (nagios-plugins 2.0.3)
Connection: close
Host: <IP>
Accept: */*


http://<IP>:80<extended URL> is 1068 characters
STATUS: HTTP/1.1 200 OK
**** HEADER ****
Date: Thu, 08 Jun 2017 09:21:06 GMT
Server: Apache
Last-Modified: Fri, 19 Aug 2011 20:49:07 GMT
ETag: "d08e-344-dc4956c0"
Accept-Ranges: bytes
Content-Length: 836
Connection: close
Content-Type: text/html
**** CONTENT ****
<!--
Licensed Materials - Property of IBM

BI and PM: ps

(C) Copyright IBM Corp. 2005, 2009

US Government Users Restricted Rights - Use, duplication or disclosure restricted by GSA ADP Schedule Contract with IBM Corp.
-->
<html>
<head>
<meta name="Copyright" content="(C) Copyright IBM Corp. 2005, 2009."/>
<meta name="Trademark" content="Licensed Material - Property of IBM Corp. IBM, the IBM logo, and Cognos are trademarks of IBM Corp., registered in many jurisdictions worldwide."/>
<meta http-equiv="refresh" content="0; URL=cgi-bin/cognos.cgi?b_action=xts.run&m=portal/main.xts&startwel=yes">
</head>
<body style="background-color:#ffffff">
<div align="center">
<img src="skins/corporate/branding/portal_splash.gif" style="position:relative; top:80px">
</div>
</body>
</html>
HTTP CRITICAL: HTTP/1.1 200 OK - string 'Namespace:' not found on <URL> - 1068 bytes in 0.002 second response time |time=0.002305s;;;0.000000 size=1068B;;;0


But what about the command is not able to detect the string in spite of string is present?
Thanks & Regards,
I2MP Team.
User avatar
tgriep
Madmin
Posts: 9190
Joined: Thu Oct 30, 2014 9:02 am

Re: URL status monitoring

Post by tgriep »

I do not see the Namespace: string in the verbose output of the plugin so the plugin seems to be reporting the correct status.
In the screen capture showing the Namespace: string, did you have to login to another web page to get to that screen?
Be sure to check out our Knowledgebase for helpful articles and solutions!
Locked