Ad Widget

Collapse

Display Aggregate value on map

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • mkorkos
    Junior Member
    • Mar 2014
    • 13

    #1

    Display Aggregate value on map

    Hi all,

    I've created an "aggregate zabbix" item and would like to display its value on a map.
    However, since its key is a raw formula, macro call doesnt seem to work just as usual.
    Would anyone have a workaround solution to my problem?

    Thanks in advance

    MK
  • aib
    Senior Member
    • Jan 2014
    • 1615

    #2
    Do you mind to show:
    - item key
    - map macros

    After that we can discuss about your case.

    On my map I use Label:
    Code:
    {HOST.HOST}
    Total:{{HOST.HOST}:vfs.fs.size[/mnt/pool-0,total].last(0)}+{{HOST.HOST}:vfs.fs.size[/mnt/pool-1,total].last(0)}
    to show the total space for two mount points.
    As you can see, I include two items key in that expression:
    Code:
    [LIST=1][*]vfs.fs.size[/mnt/pool-0,total][*]vfs.fs.size[/mnt/pool-1,total][/LIST]
    Sincerely yours,
    Aleksey

    Comment

    • mkorkos
      Junior Member
      • Mar 2014
      • 13

      #3
      I'm sorry, I dont really understand your answer I'm afraid.

      Let's sum it up :

      I have 5 hosts "Hx" (with x=1..5), each of these has an item called "obj".
      I want to compute the summ of these 5 items => on a 6th virtual host, I've created a zabbix aggregate item which key is

      grpsum["Hgroup","obj",last,0]

      Now I just want to display the actual value of this summ on a map.

      Comment

      • mkorkos
        Junior Member
        • Mar 2014
        • 13

        #4
        To be more precise, I'm actually already using the kind of code you wrote, but the "+" is shown and no summ operation is performed.

        Comment

        • aib
          Senior Member
          • Jan 2014
          • 1615

          #5
          Originally posted by mkorkos
          I have 5 hosts "Hx" (with x=1..5), each of these has an item called "obj".
          I want to compute the summ of these 5 items => on a 6th virtual host, I've created a zabbix aggregate item which key is

          grpsum["Hgroup","obj",last,0]
          Did you try a macros:
          Code:
          {{HOST.HOST}:grpsum["Hgroup","obj",last,0].last(0)}
          Sincerely yours,
          Aleksey

          Comment

          • mkorkos
            Junior Member
            • Mar 2014
            • 13

            #6
            Wooo it works !
            Thanks a load !
            Last edited by mkorkos; 15-05-2014, 09:00.

            Comment

            Working...