Ad Widget

Collapse

Graphs from discovery

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • pietro54
    Senior Member
    • Feb 2011
    • 112

    #1

    Graphs from discovery

    Hi,
    I try to copy discovery rule that is default in zabbix - linux os template.
    I rewite whole discovery to my new tmplate, items and graphs.
    Funny thing is that ittems are collecing data, when i come to last data i see correct data, the graphs arent drawing.
    Maybe there is something i should turn up?

    ---edit---

    Hi, I observe error like this:
    2106:20120921:120716.360 query [txnlev:1] [update items set lastclock=1348222036,lastns=120831584,error='Canno t create graph [Linux Network trafic]: graph already exists
    Of coure ther is no graph called linux network trafic.
    I googled and found this: https://support.zabbix.com/browse/ZBX-3510
    Thread is about version 1.9.2 and it says that 2.0.0. is free from this bug.
    I got verion 2.0 and got almoust the same problem.

    Maybe some one got similar problem?
    Last edited by pietro54; 21-09-2012, 12:18.
  • Cdub
    Junior Member
    • Sep 2012
    • 2

    #2
    Very similar issue here, but no log lines to help me

    I added a new graph prototype to the existing Template OS Linux discovery item for filesystem, and it added fine and dandy, but does not show up in any graph selection I see.

    Comment

    • mbsit
      Senior Member
      • Sep 2012
      • 130

      #3
      2106:20120921:120716.360 query [txnlev:1] [update items set lastclock=1348222036,lastns=120831584,error='Canno t create graph [Linux Network trafic]: graph already exists
      it's means, discovery try to create a graph ON HOST where the graph exists. Check HOST not Templates.

      Bests,
      Grzegorz

      --
      Wdrożenia Zabbix - Warszawa
      Pozdrawiam
      Grzegorz Grabowski
      ____
      Wdrożenia, szkolenia, umowy serwisowe
      Warszawa - Polska

      Comment

      • pietro54
        Senior Member
        • Feb 2011
        • 112

        #4
        Hi,
        Thanks, for your advice, but there is no prototyped graph attached to host.
        I chcked and im sure that no new grpah was added to any host.
        Maybe its somekind hiden?
        Or maybe u can tell me where to search some clue?

        Comment

        • mbsit
          Senior Member
          • Sep 2012
          • 130

          #5
          Hi
          I'm not talking about prototyped graph.
          Check if you have ANY of graph named: "Linux Network trafic" attached to ANY host with Template : 'Template OS Linux'.

          Detach Template from other hosts and check with one host only. Maybe problem is somewhere else.
          Detach and attach Template again to clear all Discovery Items/Graphs...


          Bests,
          Grzegorz
          Pozdrawiam
          Grzegorz Grabowski
          ____
          Wdrożenia, szkolenia, umowy serwisowe
          Warszawa - Polska

          Comment

          • pietro54
            Senior Member
            • Feb 2011
            • 112

            #6
            Grzegorz , I undurstund that i shoul look on host side.
            I come to Monitoring --> graphs --> pick group all --> pick host all and i dont see any graph called Linux Net...

            I install pgAdmin tool, and look at Data base side, and there is something like that:
            Najbardziej Popularne Wartości {"CPU load","Linux Network trafic1","Memory available","Windows network trafic1" etc...

            So in DB there is entry like "Linux Network ..."
            But in frontend i dont se it.

            ( I specialy add 1 aftter "trafic" to be sure that "Linux Network trafic1" doesent exist)

            Look at screen shot,
            there should be "Linux Network trafic1". But ther isnt


            Maybe its a new bug?
            Last edited by pietro54; 24-09-2012, 12:14.

            Comment

            • mbsit
              Senior Member
              • Sep 2012
              • 130

              #7
              Ok,

              OF COURSE !

              Check if you have name like: Network traffic on {#IFNAME} !! with {#IFNAME} included.

              Because discovery process can set only first graph, then the second has the same name

              Remember, discovery (till version 2.0.3) do separate graphs. Not ITEMS ON GRAPHS, so if you discover 4 interfaces, Graph prototype will try to set 4 graphs with items prototypes on it.


              Bests,
              Grzegorz

              --
              Wdrożenia Zabbix - Warszawa
              Pozdrawiam
              Grzegorz Grabowski
              ____
              Wdrożenia, szkolenia, umowy serwisowe
              Warszawa - Polska

              Comment

              • pietro54
                Senior Member
                • Feb 2011
                • 112

                #8
                Yes, there is another discovery rule, by defalut added by zabbix.
                This is the same rule like mine. Iv tryied to copy it from linux os template.
                In zabbix server it works, that discovery rule create 5 or 6 graphs from my zabbix machine.

                But i still dont know howto resolve that problem, should i add new varible to {#IFNAME}, should it look like{#IFNAME$1} or something like this?
                Last edited by pietro54; 24-09-2012, 12:58.

                Comment

                • mbsit
                  Senior Member
                  • Sep 2012
                  • 130

                  #9
                  No,

                  Paste there Screen from:
                  - Discovery rules ()
                  - Graph prototypes ()
                  - Linux Network trafic - Graph prototype.

                  The more the better

                  Bests,
                  G.
                  Pozdrawiam
                  Grzegorz Grabowski
                  ____
                  Wdrożenia, szkolenia, umowy serwisowe
                  Warszawa - Polska

                  Comment

                  • pietro54
                    Senior Member
                    • Feb 2011
                    • 112

                    #10
                    Ok,

                    This is mine config.


                    1) - Discovery rule
                    2) - prototyped items
                    3) - graphs in discovery rule with prototyped items

                    This is default zabbix config


                    1a) - same like up, but in the zabbix template
                    2a) - ^^
                    3a) - like up.

                    Hope now it will be clear.
                    Anyway, thanks for your time.

                    Piotr

                    Comment

                    • mbsit
                      Senior Member
                      • Sep 2012
                      • 130

                      #11
                      Hi
                      All is clear for me, compare 3) with 3a)

                      As I said before, discovery process try to create second Graph with the same name as first.

                      Type the same name as in 3a) on 3) place.
                      Exactly THE SAME, with discovery Macro at the end.

                      Bests,
                      Grzegorz
                      Pozdrawiam
                      Grzegorz Grabowski
                      ____
                      Wdrożenia, szkolenia, umowy serwisowe
                      Warszawa - Polska

                      Comment

                      • pietro54
                        Senior Member
                        • Feb 2011
                        • 112

                        #12
                        The only candidate for problem(in my opinion) is the same item.
                        Is this is sirously that problem?
                        So how should i change it?
                        I cannot change it to net.if.in[{#IFNAME1}] It wont work.
                        Sorry "slow thinking" but i really dont know howto fix this problem.

                        Comment

                        • mbsit
                          Senior Member
                          • Sep 2012
                          • 130

                          #13
                          Hi
                          I point you to change the NAME OF GRAPH,
                          Nothing else: put the {#IFNAME} on the end Prototype Graph Name


                          Bests,
                          Grzegorz
                          Pozdrawiam
                          Grzegorz Grabowski
                          ____
                          Wdrożenia, szkolenia, umowy serwisowe
                          Warszawa - Polska

                          Comment

                          • pietro54
                            Senior Member
                            • Feb 2011
                            • 112

                            #14
                            Ok, Grzegorz, ur totaly right. That is it!
                            Hope this topic will help some one...
                            Dziękuję.

                            Comment

                            Working...