Ad Widget

Collapse

Where can I learn more about macros?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • carlos_souza
    Junior Member
    • Mar 2014
    • 27

    #1

    Where can I learn more about macros?

    Hello everybody.

    I'm trying to make a map in zabbix with a traffic monitoring in real time. I want to see the traffic incoming and outgoing on ether1 of my Mikrotik device.
    I read that I must use macros to do this. Where can I learn more about macros and their sintax?

    Grateful.
  • Colttt
    Senior Member
    Zabbix Certified Specialist
    • Mar 2009
    • 878

    #2
    please take a look at this:

    Debian-User

    Sorry for my bad english

    Comment

    • carlos_souza
      Junior Member
      • Mar 2014
      • 27

      #3
      Tnanx for the reply Colttt. However, I still havent't found the solution...
      Could you please give me a example of how to do a input/output traffic monitoring of a ethernet interface using macros? I use zabbix 2.2.2.

      Comment

      • aib
        Senior Member
        • Jan 2014
        • 1615

        #4
        My Microtik map's link label
        Code:
        ► {MikroTik:ifInOctets[ether2].avg(300)}
        ◄ {MikroTik:ifOutOctets[ether2].avg(300)}
        where:
        - Hostname = Microtik
        - ifInOctets & ifOutOctets = name of keys
        - ether2 = link to modem (second from 6 in total)
        - avg(300) = I like to see not a spike numbers but 5 minute average
        Sincerely yours,
        Aleksey

        Comment

        • carlos_souza
          Junior Member
          • Mar 2014
          • 27

          #5
          Originally posted by aib
          My Microtik map's link label
          Code:
          ► {MikroTik:ifInOctets[ether2].avg(300)}
          ◄ {MikroTik:ifOutOctets[ether2].avg(300)}
          where:
          - Hostname = Microtik
          - ifInOctets & ifOutOctets = name of keys
          - ether2 = link to modem (second from 6 in total)
          - avg(300) = I like to see not a spike numbers but 5 minute average
          Thanx again, aib!!!
          Your code works perfectly!!!
          Where I can read about these macros syntax? There's many functions (avg, sum, etc...) and I want to learn all of then!!

          Comment

          • aib
            Senior Member
            • Jan 2014
            • 1615

            #6
            Check this arcticle about Map in Zabbix world
            And this article about functions which can be used in Labels
            Sincerely yours,
            Aleksey

            Comment

            • carlos_souza
              Junior Member
              • Mar 2014
              • 27

              #7
              Thanx!!

              Comment

              Working...