Thanks.
-----Original Message----- From: Xymon <xymon-bounces at xymon.com> On Behalf Of John Thurston Sent: Wednesday, May 02, 2018 2:05 PM To: xymon at xymon.com Subject: Re: [Xymon] http test don't care about the authentication
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 907-465-8591 John.Thurston at alaska.gov 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 mailing list Xymon at xymon.com http://lists.xymon.com/mailman/listinfo/xymon This communication is the property of CenturyLink and may contain confidential or privileged information. Unauthorized use of this communication is strictly prohibited and may be unlawful. If you have received this communication in error, please immediately notify the sender by reply e-mail and destroy all copies of the communication and any attachments.