Ad Widget

Collapse

Web Monitoring Question for Website Uptime

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • UserSN
    Junior Member
    • Oct 2022
    • 5

    #1

    Web Monitoring Question for Website Uptime

    I've setup website monitoring by adding a host and then configuring various web scenario's with the website URL's with appropriate HTTPS syntax and status code 200. Today I had 1 website that had it's SSL certificate expired so it was showing that warning page on all modern browsers. I'm not sure if a failed SSL website still throws a status code of 200, if not then my questions is why zabbix was showing the website was up, if it does then I understand why but is there some methodology to check this?
  • Bartosz Mickiewicz
    Junior Member
    • Oct 2022
    • 27

    #2
    Is there a possibility that your web scenario uses HTTP instead of HTTPS?
    Curl should return a similar error. Can you share the web scenario that was used?
    Click image for larger version

Name:	image.png
Views:	304
Size:	1.4 KB
ID:	452652
    Also, you can monitor SSL Certs with agent 2 and this template.​

    Comment

    • UserSN
      Junior Member
      • Oct 2022
      • 5

      #3
      I've installed the Zabbix agent v 6.2.3 for Windows not agent 2, is there a difference?

      The web scenario has the following configuration:
      URL: https://www.example.com
      Timeout: 5s
      Required Status codes: 200

      Comment

      • Bartosz Mickiewicz
        Junior Member
        • Oct 2022
        • 27

        #4
        The template calls explicitly for agent 2, you can see the comparison here. Recreated your problem using expired.badssl.com, if you don't check "SSL verify peer" in Web Scenario -> Authentication, Zabbix probably doesn't check if the cert is correct.

        Comment

        • UserSN
          Junior Member
          • Oct 2022
          • 5

          #5
          So, i just realized that the agents should not be playing a part in my setup because I've created a host directly on the Zabbix server for the sole purpose of website monitoring so it's not a windows agent at all.

          Comment

          Working...