Uploaded image for project: 'ZABBIX BUGS AND ISSUES'
  1. ZABBIX BUGS AND ISSUES
  2. ZBX-21911

Templates for simple services (HTTP,HTTPS,SSH,FTP,...) should contain macro to override port

XMLWordPrintable

      Official simple service Templates:

      • FTP Service
      • HTTP Service
      • HTTPS Service
      • IMAP Service
      • LDAP Service
      • NNTP Service
      • NTP Service
      • POP Service
      • SMTP Service
      • SSH Service
      • Telnet Service

      should all have a macro to override the port on which the service has to be checked:

      For example on HTTP service:

      ...
            items:
              -
                uuid: 5cf1d86051e34f47aec2bb0d97cf6b44
                name: 'HTTP service is running'
                type: SIMPLE
                key: 'net.tcp.service[http,,{$HTTP_SERVICE.PORT}]'
                history: 1w
                valuemap:
                  name: 'Service state'
                tags:
                  -
                    tag: component
                    value: network
      ...
            macros:
              -
                macro: '{$HTTP_SERVICE.PORT}'
                value: '80'
                description: 'Port on which to monitor the HTTP service'
      ...

            zabbix.support Zabbix Support Team
            robinr Robin Roevens
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: