Ad Widget

Collapse

Identify host

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • paulocapelett
    Junior Member
    • Jul 2021
    • 4

    #1

    Identify host


    With which item or trigger I can identify the host connected to the ethernet interface of a switch?
  • Glencoe
    Zabbix developer
    • Oct 2019
    • 152

    #2
    For Linux, check out the template "Linux network interfaces by Zabbix agent" which is used by Linux hosts for networking. It auto-creates stats items (like net.if.in, out etc) for every network interface available on that host and also triggers responsible for interface up/down events.

    Comment

    • paulocapelett
      Junior Member
      • Jul 2021
      • 4

      #3
      Glencoe
      Ok. In the case of Windows, I have my map in SNMP, all hosts as Windows SNMP. So I wanted to know, if I can identify which host is connected to a particular port. Example: Ethernet interface g0/1/2 - "HOSTANAME" - loss. Can I know or identify this?
      Last edited by paulocapelett; 27-07-2021, 14:04.

      Comment

      • Glencoe
        Zabbix developer
        • Oct 2019
        • 152

        #4
        Zabbix reports information that is provided by your devices. If your switch can provide this information then you probably can get it into Zabbix.

        Comment

        • paulocapelett
          Junior Member
          • Jul 2021
          • 4

          #5
          Glencoe

          In the trigger, the interface is pointed, ok, but I would like to show which host it is, got it?

          Click image for larger version

Name:	giga.png
Views:	320
Size:	4.4 KB
ID:	428933

          Comment

          • Glencoe
            Zabbix developer
            • Oct 2019
            • 152

            #6
            If you mean displaying the hostname the trigger refers to, you can use {HOST.HOST} macro in the trigger name.

            Comment


            • paulocapelett
              paulocapelett commented
              Editing a comment
              I'm just testing zabbix for a short time, so how would I do it? Would you have to replicate the change across all triggers?

              could you help me with an example?

              I can add some command on this line to tell me the host that is connected?
              Interface {#IFNAME}({#IFALIAS}): Bits received
              Last edited by paulocapelett; 29-07-2021, 20:24.
          • semagn
            Junior Member
            • Jul 2021
            • 1

            #7
            Hello ,I know the the front of zabbix is written by php ,and the server is written by c,but what framework does it use of php and c,thank you!

            Comment

            • Glencoe
              Zabbix developer
              • Oct 2019
              • 152

              #8
              I can add some command on this line to tell me the host that is connected?
              Interface {#IFNAME}({#IFALIAS}): Bits received
              You can just go like
              Code:
              Interface {#IFNAME}({#IFALIAS}) on {HOST.HOST}: Bits received
              in the template and problems will display correct hostname. This is a bit redundant though, because problem screen shows hostnames anyway.

              Comment

            • paulocapelett
              Junior Member
              • Jul 2021
              • 4

              #9
              In my interface it only brings me this...

              Interface {#IFNAME}({#IFALIAS}): Bits received
              Interface gi1/0/20(): Bits received

              It's not identifying the ALIAS, what could it be?....and also, I'm not able to show which host is connected to it.

              Comment

              Working...