Ad Widget

Collapse

multiple agents with the same template- mixed graphs probleme!

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • yogi
    Junior Member
    • Mar 2016
    • 26

    #1

    multiple agents with the same template- mixed graphs probleme!

    Hi,
    I have 3 servers (server-1, server-2 and server-3), 1 zabbix agent on each one of them and 1 zabbix server (version 3.01 both agent and server).
    I created a host per agent in zabbix UI (server-1, server-2 and server-3) and link the same template to them all (i want to monitor the same values in each vm...). Now when i am entering the UI to see my graphs per host (like: Monitoring-->Graphs-->server-1) it show me all the graphs! not only server-1 but also server-2 and server-3.
    It make me a lot of problemes........ help please.....
  • SBO
    Zabbix Certified Specialist
    Zabbix Certified Specialist
    • Sep 2015
    • 226

    #2
    Hi,

    Can you please show us screenshots of your graphs and your template page ?

    Comment

    • yogi
      Junior Member
      • Mar 2016
      • 26

      #3
      template attach and some more info

      Hi,
      One more thing you need to know is that all my apps are a docker containers.
      Now on server-1: there are 3 containers : a, b, c
      On server-2 : there are 2 containers: d, e
      My user parameter from the template (it was to big to upload so i attached a short version of it) is working fine: like if i run docker.discover (the script content of it is:
      #!/usr/bin/python

      ################################################## ###############
      #
      # zabbix-docker-discover.py
      #
      # A program that produces LLD information for Zabbix to
      # process Docker instances.

      import subprocess
      import json

      strings = subprocess.Popen("docker ps -a", shell=True, stdout=subprocess.PIPE).stdout.readlines()

      l=list()
      for i in range(1,len(strings)):
      pstring = strings[i].split()
      d=dict()
      d["{#ZD_ID}"]=pstring[0]
      d["{#ZD_IMAGE}"]=pstring[1]
      d["{#ZD_NAME}"]=pstring[-1]
      l.append(d)

      s_json=dict()
      s_json["data"]=l

      print json.dumps(s_json))

      on server-1 i'm getting a,b,c... so my lld should work fine........
      In zabbix ui: monitoring-->graphs-->server-1 you see:
      graph a, graph b, graph c, graph d, graph e
      same in monitoring-->graphs-->server-2.

      Please tell me if you need some more info.
      Attached Files

      Comment

      • yogi
        Junior Member
        • Mar 2016
        • 26

        #4
        cannt attach print screen of template and host but i will describe

        hosts:

        name------application--items--triggers--graphs--discovery--web--interface-----templates---status
        server-1--2----------------1000---100--------51--------1--------------web--some-ip-1---template-1--enable
        server-2--2----------------1000---100--------51--------1--------------web--some-ip-2---template-1--enable

        templates:

        template-----application---items---triggers--graphs--screens--discovery---web---linked to
        template-1--2-----------------34-------6------------1---------screens--1----------------web---server-1,server-2
        Last edited by yogi; 27-12-2016, 18:18.

        Comment

        • SBO
          Zabbix Certified Specialist
          Zabbix Certified Specialist
          • Sep 2015
          • 226

          #5
          When you go in Monitoring > Latest data
          Do you have data for your servers 2 and 3 ?

          Comment

          • yogi
            Junior Member
            • Mar 2016
            • 26

            #6
            latest data info

            edited! my mistake!
            If i go to latest data-->filter-->hosts-->server-1:
            it switch betwin the data! First it show me the correct items, only the items of server-1 and then in the next interval it show me the item of server-2! It
            continue in that way! What is wrong?????
            Last edited by yogi; 28-12-2016, 11:30. Reason: mistake in my answer

            Comment

            Working...