Ad Widget

Collapse

creating custom dashboard views

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • dvwyngaa
    Member
    • Mar 2014
    • 49

    #46
    tatapoum,

    Thanks! I have downloaded it and installed. Ran the dashing start and I'm actually getting way more info than I did before. It's displaying a dashboard error as follows:



    Any ideas on this?

    Thanks,

    Dawid

    Comment

    • tatapoum
      Senior Member
      • Jan 2014
      • 185

      #47
      It means it cannot find your Zabbix groups. Did you edit the zabbix.rb and put the right group names in the SCREENS hash? Does your user have the permissions to query these groups ?

      Comment

      • dvwyngaa
        Member
        • Mar 2014
        • 49

        #48
        tatapoum,

        OK, got it working. It was the Zabbix server url that I entered. I had a http://servername/zabbix and it only needed to be http://servername

        Thanks again!

        Dawid

        Comment

        • dvwyngaa
          Member
          • Mar 2014
          • 49

          #49
          OK....I was a bit fast on typing and very impatient

          The zabbix server url is http://servername/zabbix, in my case.

          Works like a charm now. Thank you very much tatapoum & Jason for your help!

          Regards,

          Dawid

          Comment

          • jimzs
            Junior Member
            • Sep 2014
            • 7

            #50
            This is really cool! Working fine for me. Has anyone done anything similar for displaying items rather than triggers?

            Comment

            • bschmidt001
              Junior Member
              • Apr 2011
              • 24

              #51
              Https...?

              Thank you for providing the dashboard. After installing it, I found the following issue...

              When the only access to Zabbix is via SSL (https), the API call made by dashing is not returning values, and is reporting an error (see attached picture). Any suggestions on how to configure dashing to use SSL? Or am I missing something basic...?
              Attached Files

              Comment

              • Jason
                Senior Member
                • Nov 2007
                • 430

                #52
                I use it for SSL and I've just specified the new URL... I think there is another gem you need to load for SSL and I think I had it specified for something else although can't look it up now.

                In the rescue routine at the bottom of the file.

                add in a line

                puts "#{error.message}: #{error.backtrace} (#{error.class})"

                and it should give you more information... That should appear in the thin.log file in the log folder if you're using the thin scheduler.

                Comment

                • bschmidt001
                  Junior Member
                  • Apr 2011
                  • 24

                  #53
                  re:HTTPS...?

                  Perfect, the logging helped and dashing is displaying results. Not the right groups, but that is configuration on my side. (grin) Thank you.

                  Comment

                  • Jason
                    Senior Member
                    • Nov 2007
                    • 430

                    #54
                    Also at our end we've tweaked the dashing script that to display all triggers on one screen (turned off the scrolling screens and added the time in the trigger to the screen. Also (although need to work out a small intermittent bug) we have it highlighting machines that are in maintenance that have a trigger showing as it's useful to see that info.

                    Comment

                    • brujahrlz
                      Junior Member
                      • Jan 2015
                      • 1

                      #55
                      Hi,

                      I've done everything on this topic, thanks!

                      I have a problem with the Triggers, the last triggers are not displayed, appears everything with 0 alerts, even with alerts happening on my server.

                      i just edited zabbix.rb:

                      SERVER = "http://192.168.100.146/zabbix" # Zabbix server URL
                      USER = "lucas" # Zabbix user with API query rights
                      PASSWORD = "*******" # Password
                      MINPRIORITY = 0 # Minimum priority level
                      ANIMATE = 5.minutes # New triggers animation delay
                      QUERYDELAY = '30s' # Zabbix API query delay

                      SCREENS = {
                      "Desktops" => [ "teste" ],
                      "Servidores" => [ "Zabbix servers" ]
                      }

                      "teste" is the name of the hostgroup i created on my zabbix server. but events on "Zabbix servers" are not displayed too, like restart on servers, etc.

                      Can you help me?

                      Comment

                      • Laured
                        Junior Member
                        • Jul 2016
                        • 7

                        #56
                        @brujahrlz I had the same issue !!!!!

                        In fact what you need to do is to add this line

                        Code:
                        "groupCount": "1",
                        like this ;

                        Code:
                              # Query Zabbix for current problem triggers
                              result = serv.run {
                              Zabby::Trigger.get(
                                "filter" => {"value" => 1, "groupids"=> groupids },
                                "min_severity" => MINPRIORITY,
                                "groupCount": "1",
                                "groupids" => groupids,
                                "output" => "extend",
                                "monitored" => 1,
                                "withLastEventUnacknowledged" => 1,
                                "skipDependent" => 1,
                                "selectHosts" => 1,
                                "expandDescription" => 1,
                                "sortfield" => "lastchange",
                                "sortorder" => "DESC")
                              }

                        I have to say that I really had a hard time figuring this out since it is nowhere in the doc ! I found my answer in looking into this file at the method GET and that is where i have noticed that there is this if condition
                        PHP Code:
                         if (!is_null($options['groupCount'])) {
                               
                        $sqlParts['group']['hg'] = 'hg.groupid';
                         } 
                        and I needed to add this in the zabbix.rb file ...

                        Comment

                        • ccpcni
                          Junior Member
                          • Aug 2016
                          • 1

                          #57
                          Dashing with Zabbix 3.0

                          Hello there

                          Did anyone of you guys managed to get Dashing working after upgrading Zabbix 2.4 to 3.0? I get following error: Undefined method 'gsub' for nil:NilClass.

                          Thanks for any advise.
                          Attached Files

                          Comment

                          • fabian.fasser
                            Junior Member
                            • Jun 2018
                            • 5

                            #58
                            Another questions about the zabbix dashboard. I try to filter in the "problems by severity" widget with text. But I can only add one filter. Is it possible to do it with regex or something similar?
                            In the Problem field I want to add something like: "WS: Windows; WS: Citrix"


                            Click image for larger version

Name:	zabbix.PNG
Views:	1345
Size:	23.0 KB
ID:	407675

                            Thanks
                            Fabian

                            Comment

                            Working...