Ad Widget

Collapse

Port number in net.tcp.service check

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • highpeak
    Member
    • Nov 2019
    • 30

    #1

    Port number in net.tcp.service check

    We have a number of devices behind a firewall where we need to check the web server is running. We've forwarded ports on the firewall to port 80 on each device. I know I can hard-code the port in net.tcp.service(http,,<port>) but we need to use the port specified in the host (as we have 3,000 devices and we provision via API). Without a template I would have to go to each host and create a unique item. Using {HOST.PORT} macro would make sense, but some some bizarre reason this is not supported. Suggestions?
  • Semiadmin
    Senior Member
    • Oct 2014
    • 1625

    #2
    Macro {#IF.PORT} of internal LLD rule zabbix[host,discovery,interfaces]

    Comment

    • highpeak
      Member
      • Nov 2019
      • 30

      #3
      I'm sorry, I'm not sure what you're suggesting. We don't run an LLD rule as these are IoT devices. So there's no agent running. Can you elaborate a little to help me out please?

      Comment

      • Semiadmin
        Senior Member
        • Oct 2014
        • 1625

        #4
        You want to get the Zabbix host's interface port, aren't you? Internal LLD rule doesn't require the Zabbix agent on the host.

        Comment

        • Markku
          Senior Member
          Zabbix Certified SpecialistZabbix Certified ProfessionalZabbix Certified Expert
          • Sep 2018
          • 1782

          #5
          highpeak, how about defining your own macro for each host? Like {$HTTP_PORT}, and then using that in the template that you attach to the hosts?

          Markku

          Comment

          Working...