Ad Widget

Collapse

creating custom dashboard views

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Jason
    Senior Member
    • Nov 2007
    • 430

    #31
    Look in the folder where your dashboard is location... i.e. you did dashing new <dashboard name>

    In that folder should be subfolders called dashboards, assets, widgets,log etc

    Comment

    • dvwyngaa
      Member
      • Mar 2014
      • 49

      #32
      Jason,

      Yip, I have the "normal" folders like widgets / assets / jobs / dashboards and the like, but not the log directory.

      Regards,

      Dawid

      Comment

      • Jason
        Senior Member
        • Nov 2007
        • 430

        #33
        Odd... It appears in all of my installations...

        Failing that... Start dashing from command line and not as a daemon and see if any errors appear there?

        Also you've run bundle to check that all the gems are loaded?

        Comment

        • tatapoum
          Senior Member
          • Jan 2014
          • 185

          #34
          Hi,

          1) Add debugging to the widgets. In each *.coffee file, add this :
          Code:
          Dashing.on 'ready', ->
          Dashing.debugMode = true
          2) Start dashing with "dashing start".
          3) Wait a couple of minutes.
          4) Paste the output of the "dashing start" command and of the javascript console of your browser.

          Comment

          • dvwyngaa
            Member
            • Mar 2014
            • 49

            #35
            Jason & Tatapoum,

            Added the debug to each .coffee file and restarted Dashing and here are the outcome of these:







            If the screenshots are too small, let me know and I'll post a bigger version.

            Any ideas?

            Regards,

            Dawid

            Comment

            • tatapoum
              Senior Member
              • Jan 2014
              • 185

              #36
              Post it as text on pastebin. I can't see it.

              Comment

              • dvwyngaa
                Member
                • Mar 2014
                • 49

                #37
                OK...I have resized the pics...my apologies for that...

                Dawid

                Comment

                • dvwyngaa
                  Member
                  • Mar 2014
                  • 49

                  #38
                  ..and here are the pastebin's:

                  http://pastebin.com/H45P8QWq
                  http://pastebin.com/BEab7UfS
                  http://pastebin.com/xGDGUcJG

                  Comment

                  • tatapoum
                    Senior Member
                    • Jan 2014
                    • 185

                    #39
                    There is a problem with the Dashing.cycleDashboards function. Are you sure that you properly downloaded the cycleDashboards.coffee file ? Is it in assets/javascripts/ ?
                    Can you post it ?

                    Comment

                    • drucej31
                      Junior Member
                      • Aug 2014
                      • 15

                      #40
                      Excellent.

                      Got this working on our Zabbix platform really v.v.nice... thanks for sharing!

                      Comment

                      • dvwyngaa
                        Member
                        • Mar 2014
                        • 49

                        #41
                        Tatpoum,

                        Yip, the cycleDashboard.coffee file is in assets/javascripts directory.

                        Here's a pastebin of the file: http://pastebin.com/ZEzxseqk

                        Regards,

                        Dawid

                        Comment

                        • dvwyngaa
                          Member
                          • Mar 2014
                          • 49

                          #42
                          tatapoum,

                          I tried your earlier suggestion, removing the cycleDashboard from the default.erb and the outcome of that is that I get a screen with less "dots".

                          The default screens when you install the dashboards works, so Dashing does work, but as soon as I add the relevant Zabbix widgets / dashboard and jobs, then I get this screen with dots on the left hand side.

                          Dawid

                          Comment

                          • dvwyngaa
                            Member
                            • Mar 2014
                            • 49

                            #43
                            tatapoum,

                            ...and here is the directory structure / contents for widgets and jobs, if that helps...

                            http://pastebin.com/ugFcT53C

                            Dawid

                            Comment

                            • tatapoum
                              Senior Member
                              • Jan 2014
                              • 185

                              #44
                              Hi,

                              I created a github repo with this project :
                              A dashboard for Zabbix. Contribute to dav3860/zabbix_dashboard development by creating an account on GitHub.


                              Just follow the instructions.

                              Comment

                              • tatapoum
                                Senior Member
                                • Jan 2014
                                • 185

                                #45
                                My mistake, I had forgotten to include the layout file. Everything should be fine if you use the files on my repo.

                                Comment

                                Working...