Ad Widget

Collapse

How to monitor website SSL certificate expiration without agent

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Cidverk
    Junior Member
    • Feb 2023
    • 1

    #1

    How to monitor website SSL certificate expiration without agent

    I have to monitor several websites certificates expiration date but without agent.
    I know there is a template with Agent but I have to monitor several appliances where I can't install an agent.
    Do you have any idea ? I am new to Zabbix
  • key32981
    Junior Member
    • Apr 2024
    • 3

    #2
    Did you ever figure out how to do this? I was able to setup the agent2 Certificate checks for some systems however i need to setup several SSL checks for sites living on systems without the ability for a Zabbix agent.

    Comment

    • kazzur
      Junior Member
      • Nov 2023
      • 7

      #3
      Check this out
      This article gives a detailed overview of how to configure the monitoring of your domain names’ expiration dates in Zabbix. This will prevent you from missing the renewal and expiration…

      Comment

      • artyomtsybulkin
        Junior Member
        • Sep 2018
        • 3

        #4
        You can execute and parse result of this script / command on server with curl 8.4.0. Ensure you have correct DNS settings too.
        Code:
        curl --cert-status -v https://google.com
        Click image for larger version

Name:	image.png
Views:	10031
Size:	333.3 KB
ID:	483101

        Comment

        • mfuk
          Junior Member
          • Jul 2023
          • 16

          #5
          I use the agent installed on Zabbix Server v 6.0 and I created an Item like below:

          Click image for larger version

Name:	image.png
Views:	10151
Size:	46.3 KB
ID:	483105
          Click image for larger version

Name:	image.png
Views:	10176
Size:	16.8 KB
ID:	483106

          Comment

          • solution
            Senior Member
            • Jun 2020
            • 269

            #6
            If you prefer ready-to-use solutions, visit:


            Note: you can use the zabbix server itself as a host for these checks.


            Wellington

            Comment

            • kazzur
              Junior Member
              • Nov 2023
              • 7

              #7
              Check this

              Comment

              • msz@kommunekredit.dk
                Junior Member
                • Jun 2024
                • 7

                #8
                Originally posted by solution
                If you prefer ready-to-use solutions, visit:


                Note: you can use the zabbix server itself as a host for these checks.


                Wellington

                Hmmm... I can't get the "Note: you can use the zabbix server itself as a host for these checks." to work.

                Comment

              • solution
                Senior Member
                • Jun 2020
                • 269

                #9
                Using the Zabbix Server (if you are using zabbix agent 2) was just a suggestion.

                You can use any host that is using "zabbix agent 2".

                Screenshot of my usage **I use the Zabbix Server itself for this
                Click image for larger version

Name:	image.png
Views:	4395
Size:	10.0 KB
ID:	500247

                Click image for larger version

Name:	image.png
Views:	4383
Size:	42.4 KB
ID:	500248

                Remembering that now there is the template for Zabbix Agent 2 Active too.
                v7: https://git.zabbix.com/projects/ZBX/...Frelease%2F7.0

                Wellington

                Comment

                • msz@kommunekredit.dk
                  Junior Member
                  • Jun 2024
                  • 7

                  #10
                  I'm seeing this when I use 127.0.0.1: "Get value from agent failed: Cannot establish TCP connection to [[127.0.0.1]:10050]: [111] Connection refused"
                  and this when I use zabbix-agent: "Get value from agent failed: TCP successful, cannot establish TLS to [[zabbix-agent]:10050]: SSL_connect() I/O error: [104] Connection reset by peer"

                  I belive it is running from the Zabbix server but I can't check if it is agent 2 - I'll be back in a couple of days.

                  Comment

                  • solution
                    Senior Member
                    • Jun 2020
                    • 269

                    #11
                    If you are going to use the Zabbix Server and do not have SSH access to the server, you can use the "agent.variant" key



                    Create an item with this key and you will know if it is "Agent" or "Agent 2".

                    127.0.0.1: You should only create a host with this IP if you intend to use the Zabbix Server itself for the desired monitoring.
                    **See the "Zabbix Server" Host, it can be with localhost or with hostname and follow the same model when creating the new host for certificate monitoring.

                    Wellington

                    Comment

                    • msz@kommunekredit.dk
                      Junior Member
                      • Jun 2024
                      • 7

                      #12
                      Nice - that should be a standard item in the template.

                      My problem was the encryption - it seems that the agent on the Zabbix server runs without encryption, I have to talk with the guy who installed it.

                      Comment

                      Working...