Ad Widget

Collapse

response code "301" did not match any of the required status codes "200"

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • mixmox
    Member
    • Apr 2020
    • 54

    #1

    response code "301" did not match any of the required status codes "200"

    Hello
    im working on Web scenarios to monitor my webserver from any error like 503 504 404 and ... .
    if it detect any error type, send warning.
    so use Web scenarios with this configuration:
    add senario with name of "Availability" and set "Firefox" az agent, then add one step to check url with this pattern: httpS://domain.com/
    and set Required status codes to 200.

    but in last data ive get this error:
    response code "301" did not match any of the required status codes "200"

    ive try to add another step to confirm 301 but nothing changed

    any idea?
  • cyber
    Senior Member
    Zabbix Certified SpecialistZabbix Certified Professional
    • Dec 2006
    • 4807

    #2
    Required status codes List of expected HTTP status codes. If Zabbix gets a code which is not in the list, the step will fail.
    If empty, no check on status codes is performed.
    For example: 200,201,210-299
    User macros are supported since Zabbix 2.2.
    https://www.zabbix.com/documentation...web_monitoring
    Maybe you should also tick that "Follow redirects" checkbox. Then it shoudl follow your permanent redirect and end up in that real page you are looking for.

    Comment

    Working...