Ad Widget

Collapse

Issue with Macros

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • guest6936
    Junior Member
    • Mar 2022
    • 25

    #1

    Issue with Macros

    Hello,

    Running Zabbix 6.0.1

    I am trying to translate a macro to a variable as the image below shows. However, when I test my Item I receive the following error

    Invalid parameters: parse "https://{HOST.NAME}": invalid character "{" in host name.
    We're trying to monitor SSL certificates using a template, and without having to specify the CERT.WEBSITE.HOSTNAME for every site. Conveniently our HOST.NAME are named foobar-XXX.domain.com

    I would wish that {$CERT.WEBSITE.HOSTNAME} should resolve itself to {HOST.NAME}, but no.

    HTML Code:
    web.certificate.get[{$CERT.WEBSITE.HOSTNAME},{$CERT.WEBSITE.PORT},{$CERT.WEBSITE.IP}]
    Click image for larger version

Name:	Screenshot 2022-03-18 at 12.26.42.png
Views:	1469
Size:	43.4 KB
ID:	441706
  • cyberphantom
    Member
    • Dec 2021
    • 67

    #2
    I think you can't do this... according to the manual, there's nothing about put a macro inside another macro value
    But why you don't modify the template from this "{$CERT.WEBSITE.HOSTNAME}" to just this "{HOST.NAME}"?...

    Comment

    • guest6936
      Junior Member
      • Mar 2022
      • 25

      #3
      Originally posted by cyberphantom
      But why you don't modify the template from this "{$CERT.WEBSITE.HOSTNAME}" to just this "{HOST.NAME}"?...
      Yeah, that makes perfect sense. Thanks.

      Comment

      Working...