Ad Widget

Collapse

Macros in Maps and Links (Zabbix 2.4.1)

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • aabele
    Junior Member
    • Oct 2014
    • 2

    #1

    Macros in Maps and Links (Zabbix 2.4.1)

    Hi, I have the following Problem:

    I made a Map with 2 Hosts and put in 3 Macros into the Labels of a Host...

    1.) {HOST.CONN} => Works
    2.) {HOST.NAME} => Works
    3.) {core-f014:ifHCInOctets[ae0].last(0)} => *UNKOWN*

    The same configuration on a 2.0.4 Installation works without problems

    Any Hints?

    kind regards
    Andreas
    Last edited by aabele; 29-10-2014, 15:53.
  • Bruno Carvalho
    Member
    • Oct 2014
    • 32

    #2
    I'm with the same problem, this new version, you got a solution?

    I'm with the same problem, this new version, you got a solution?

    Comment

    • aabele
      Junior Member
      • Oct 2014
      • 2

      #3
      Re: I'm with the same problem, this new version, you got a solution?

      Originally posted by Bruno Carvalho
      I'm with the same problem, this new version, you got a solution?
      No. I don't even have an idea how to debug this. Sorry. I think we need some help by someone more experienced.

      Andreas

      Comment

      • zabbixei
        Junior Member
        • Dec 2014
        • 24

        #4
        i need to make map with calculated items

        Originally posted by aabele
        Hi, I have the following Problem:

        I made a Map with 2 Hosts and put in 3 Macros into the Labels of a Host...

        1.) {HOST.CONN} => Works
        2.) {HOST.NAME} => Works
        3.) {core-f014:ifHCInOctets[ae0].last(0)} => *UNKOWN*

        The same configuration on a 2.0.4 Installation works without problems

        Any Hints?

        kind regards
        Andreas
        Hi Andreas,

        can you please explain me this 3rd expression because i don't understand it. actually i want to make a map with calculated items for my cisco switches but i have no idea how. i tried the above two (first and second) codes it works with me but i did not understand the last one which is referring to port or switch and etc.

        john

        Comment

        • zabbixei
          Junior Member
          • Dec 2014
          • 24

          #5
          try it this way, it worked for me though.

          {Cisco L3S2:ifInOctets.10101.last(0)}

          Cisco Lxxx = switch name
          10101 = port number

          let me know if you figured something else please.

          Comment

          • zabbixei
            Junior Member
            • Dec 2014
            • 24

            #6
            by the way, can you please tell me how to sum two items or in and out of a port, like:



            {Cisco L3S2:ifInOctets.10101.last(0)}+{Cisco L3S2:ifOutOctets.10101.last(0)}

            thanks!

            John

            Comment

            • stevekam
              Junior Member
              • Oct 2014
              • 2

              #7
              Hi, did this actually work for you ? I keep getting *UNKNOWN*
              I"m running 2.4.1

              I'm just trying to get the incoming traffic to post in the map for the zabbix server. In the Label field I have:

              {HOST.NAME}
              {HOST.CONN}
              in:{zabbix-server:netifin[eth0].last(0)} = *UNKNOWN*
              in:{zabbix-server:net.if.in[eth0].last(0)} = *UNKNOWN*

              when I look at the item key it shows net.if.in[eth0]
              and I do see the value in latest monitoring.

              I'm also having the same issue with my network switches.

              Thanks

              Comment

              • stevekam
                Junior Member
                • Oct 2014
                • 2

                #8
                OK I figured out my issue. For some reason I had to put the fully qualified host name of the system for it to work.

                What also helped me was looking at the triggers inside the templates to see what is was looking for. Some older Cisco switches list their ports as GigabitEthernet1/1 or Ethernet1/1

                Example for Zabbix Server:
                Traffic in: {hostname.domain.com:net.if.in[eth0].last(0)}

                Example for some Cisco switches.
                Traffic in: {hostname.domain.com:ifInOctets[GigabitEthernet1/1].last(0)}
                Traffic in: {hostname.domain.com:ifInOctets[Ethernet1/1].last(0)}
                Traffic in: {hostname.domain.com:ifInOctets[port-channel2].last(0)}

                Comment

                • chester
                  Junior Member
                  • Apr 2015
                  • 1

                  #9
                  i had the same problem with *UNKNOWN* on my map when i wrote
                  Code:
                  {proxy-server:net.if.in[eth1].last(0)}
                  solve it by using that expression
                  Code:
                  {proxy:net.if.in[eth1].last(0)}
                  i think that need to use "Host name" string from host configuration, not "Visible name" or really hostname or FQDN



                  p.s net.if.in[eth1,bytes] not work

                  Comment

                  • jaipsharma
                    Junior Member
                    • Dec 2012
                    • 18

                    #10
                    Need some help with getting the value of a Macro which is already being captured in my Zabbix 2.4.1.

                    Macro is :

                    {10.10.11.1:jnxBoxDescr1.last(0)}

                    Value showing on Label is *UNKNOWN* at the same time the value is text getting logged in the item.

                    Comment

                    Working...