Ad Widget

Collapse

Sum of items

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • volotoviu
    Junior Member
    • Jan 2021
    • 8

    #1

    Sum of items

    Hello, i have host group of four servers.
    Templates with items where agent type ssh like (key ssh.run[Собака,{HOST.IP},22,<encoding>])
    Result item would be number like (grep -c 'dog' /tmp/dog.log)
    This Templates add on all hosts
    Now i need sum result items from all hosts. How i can do it? Calculation agent work only inside host, dependent or aggrigate not working too.

    Example what i want:
    item name - cdog
    host1:cdog=2
    host2:cdog=1
    host3:cdog=5
    host4:cdog=1

    reslt=9

    Thanks
  • volotoviu
    Junior Member
    • Jan 2021
    • 8

    #2
    ty, i will try

    Comment

    • volotoviu
      Junior Member
      • Jan 2021
      • 8

      #3
      I create new host, add him into host group AGG. In this group also host1-4.
      create dependent item in templates.
      Then try create aggregate func, got error

      I think my problem with Host group, only aggragate host includes in this host group
      Last edited by volotoviu; 12-01-2021, 16:19.

      Comment

      • volotoviu
        Junior Member
        • Jan 2021
        • 8

        #4
        its works,
        1. need dependet items
        2. only host who need aggregate add into host group
        thanks all

        Comment

        Working...