http test don't care about the authentication
Anyone know why I can run a curl test from the Xymon server command
line and get a '200 OK' status, but when I add the same httpstatus
test into the hosts.cfg it returns a '404'?
Thank you.
------------------------------------------------
Kris Springer
On 05/02/2018 12:05 PM, John Thurston
wrote:
Change to the httpstatus test.
httpstatus[=COLUMN];URL;okstatusexpr;notokstatusexpr
"This is used to explicitly test for certain HTTP statuscodes returned when the URL is requested. The okstatusexpr and nokokstatusexpr expressions are Perl-compatible regular expressions, e.g. "2..|302" will match all OK codes and the redirect (302) status code. If the URL cannot be retrieved, the status is "999"."
List '401' as an accepted return code.
If you want to make sure it won't return any data without authentication, list all others as unacceptable.
Do things because you should, not just because you can.
John Thurston XXX-XXX-XXXX
user-ce4d79d99bab@xymon.invalid
Department of Administration
State of Alaska
On 5/2/2018 10:57 AM, Root, Paul T wrote:
All they care is that the web page is up, they are not looking to login.
Xymon@xymon.com