Attempt
check_http -H www.example.com -f follow -p 8080 -u /hello/#/world -s "content"
Result
HTTP WARNING: HTTP/1.1 404 Not Found - X bytes in 0.00X second response time |time=0.00XYZ
Analysis
Although multiple sources have been read [1,2,3,4 ] and a Wget, i.e. wget www.example.com:8080/hello/#/world
returns an OK it is unclear whether the check_http
does not work.
Perhaps the #
is causing an issue. According to this documentation the #
is an anchor which means that if var x
that x
is #/world
, but this does not help to solve the issue.
Downloading www.example.com
using wget and subsequently inspect the world
button indicates that this button is associated with a javascript source. This finding did not help to solve the issue either.
Attempt two
check_http -H www.example.com -f follow -p 8080 -u /hello/\#/world -v
Result two
GET /hello/#/world HTTP/1.1
User-Agent: check_http/vX (nagios-plugins X)
Connection: close
Host: www.example.com:8080
http://www.example.com:8080/hello/#/world is X characters
STATUS: HTTP/1.1 404 Not Found
**** HEADER ****
Server: Apache-Coyote/X
Content-Type: text/html;charset=utf-8
Content-Length: X
Date: Thu, Day Month Year Time GMT
Connection: close
**** CONTENT ****
<html><head><title>ApplicationServer - Error report</title><style></style> </head><body><h1>HTTP Status 404 - /hello/#/world</h1><p><b>type</b> Status report</p><p><b>message</b> <u>/hello/#/world</u></p><p><b>description</b> <u>The requested resource (/hello/#/world) is not available.</u></p><h3>ApplicationServer</h3></body></html>
HTTP WARNING: HTTP/1.1 404 Not Found - X bytes in 0.00X second response time |time=0.00Xs;;;0.000000 size=XB;;;0
Analysis Two
Functional
If one would like to view http://www.example.com:8080/hello/#/world, one has to navigate to http://www.example.com:8080/hello and click on the world
button. The content can be viewed and inspected using firebug once the button has been clicked.
Technical
The URL is downloaded using Wget. The page contains multiple JavaScript sources which represent the buttons, e.g.:
<script src="button.js"></script>
<script src="world.js"></script>
There is a discrepancy between the Functional and Technical view. Content which can be viewed and inspected using Firebug is omitted in the page downloaded using Wget.