Ad Widget

Collapse

Using Website certificate by Zabbix agent 2 for mutiple domains

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • RasmusM
    Junior Member
    • Jun 2023
    • 1

    #1

    Using Website certificate by Zabbix agent 2 for mutiple domains

    Hi


    I have used "Website certificate by Zabbix agent 2" to monitor the SSL certificate on a domain. It works super well, and I would like to make it work on several domains. The way it works is that you create a host for each domain. I would like to make a host that monitors all domains.
    Is this possible ?
    And how would you do this?

    I can't really fathom this.​
  • cyber
    Senior Member
    Zabbix Certified SpecialistZabbix Certified Professional
    • Dec 2006
    • 4806

    #2
    Possible, yes. But not by applying same template multiple times... You end up with duplicate keys, as main item uses macros and dependent items don't use any "parameters" at all to make a difference...
    So your option would be either clone the template for each domain and replace macros with hardcoded values and add some kind of identificator to all dependent items ( like replace "cert.validation" with "cert.validation[<your domain name>]" etc) . Or create discovery, which will do it all for you based on your domain list...

    Comment

    • mbuyukkarakas
      Member
      • Aug 2014
      • 49

      #3
      Hello, there is another way for that.

      First, create a new host with the web site name, but it should point a particular zabbix agent 2 installed host. Then add the template to the host and make all the necessary configurations.
      Then clone this host as much as you want with other web sites you should follow.

      Cheers.

      Comment

      • cheneric
        Junior Member
        • Aug 2023
        • 11

        #4
        after V7.4 multiple values can be specified, separated by commas.
        https://git.zabbix.com/projects/ZBX/repos/zabbix/browse/templates/app/certificate_agent2?at=release /7.4

        Comment

        Working...