[Xymon] post test with httpstatus

Herbert, Francois F.Herbert at massey.ac.nz
Fri Feb 24 03:22:52 CET 2012


Thanks for the suggestion, It doesn't work though, xymon reports: Content match failed: No output received from server

So it seems that if there is no content, then xymon can't test for that????

On 24/02/2012, at 3:16 PM, Jeremy Laidman wrote:

> On Fri, Feb 24, 2012 at 7:07 AM, Herbert, Francois
> <F.Herbert at massey.ac.nz> wrote:
>> I've got a post test running which tests a login page, if the page is successful, the user gets a 302 status code in the header and no content (the user gets redirected)
>> If the page is not successful the user is returned to the login page without the 302 status code.
> 
> Maybe use "nopost" and set the expected data to be ".".  That way, if
> any content is returned, then the login has failed.  Something like
> this:
> 
> nopost=login;https://loginpage.my.domain/login.php;action=login&ID=username&Password=password;.
> 
> J




More information about the Xymon mailing list