Ad Widget

Collapse

custom dashboard view with dashing

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Laured
    Junior Member
    • Jul 2016
    • 7

    #1

    custom dashboard view with dashing

    Hello everyone,

    I am currently trying to implement a custom dashboard view : this one to be more specific : https://github.com/tolleiv/dashing-zabbix
    To do so, I have followed this tutorial : http://www.daxiongmao.eu/wiki/index...._using_DASHING

    but when I run dashing start, I have these errors :

    Code:
    scheduler caught exception:
    Zabby::APIError
    /var/lib/gems/2.2.0/gems/zabby-0.1.2/lib/zabby/connection.rb:125:in `format_exception'
    /var/lib/gems/2.2.0/gems/zabby-0.1.2/lib/zabby/connection.rb:146:in `query_zabbix_rpc'
    /var/lib/gems/2.2.0/gems/zabby-0.1.2/lib/zabby/connection.rb:63:in `rescue in authenticate'
    /var/lib/gems/2.2.0/gems/zabby-0.1.2/lib/zabby/connection.rb:54:in `authenticate'
    /var/lib/gems/2.2.0/gems/zabby-0.1.2/lib/zabby/connection.rb:37:in `login'
    /var/lib/gems/2.2.0/gems/zabby-0.1.2/lib/zabby/shell_helpers.rb:71:in `login'
    /home/appliance/zabbix_dashboard/jobs/zabbix.rb:24:in `block (2 levels) in <top (required)>'
    /var/lib/gems/2.2.0/gems/zabby-0.1.2/lib/zabby/runner.rb:50:in `instance_eval'
    /var/lib/gems/2.2.0/gems/zabby-0.1.2/lib/zabby/runner.rb:50:in `run'
    /var/lib/gems/2.2.0/gems/zabby-0.1.2/lib/zabby.rb:25:in `init'
    /home/appliance/zabbix_dashboard/jobs/zabbix.rb:20:in `block in <top (required)>'
    /var/lib/gems/2.2.0/gems/rufus-scheduler-2.0.24/lib/rufus/sc/jobs.rb:230:in `call'
    /var/lib/gems/2.2.0/gems/rufus-scheduler-2.0.24/lib/rufus/sc/jobs.rb:230:in `trigger_block'
    /var/lib/gems/2.2.0/gems/rufus-scheduler-2.0.24/lib/rufus/sc/jobs.rb:204:in `block in trigger'
    /var/lib/gems/2.2.0/gems/rufus-scheduler-2.0.24/lib/rufus/sc/scheduler.rb:430:in `call'
    /var/lib/gems/2.2.0/gems/rufus-scheduler-2.0.24/lib/rufus/sc/scheduler.rb:430:in `block in trigger_job'
    Apparently, it could be due to incompatible changes in newer Zabbix versions, but has somebody resolved this ? How can I do to use dashing ? Is it possible to use it with new versions of Zabbix ?

    Thank you
  • Laured
    Junior Member
    • Jul 2016
    • 7

    #2
    In fact in my zabbix_credentials.rb i put http://myserver/zabbix instead of http://myserver but now I have this error :

    Code:
    [COLOR="red"]bundler: failed to load command: thin (/usr/local/bin/thin)[/COLOR]
    RuntimeError: no acceptor (port is in use or requires root privileges)
      /var/lib/gems/2.2.0/gems/eventmachine-1.2.0.1/lib/eventmachine.rb:530:in `start_tcp_server'
      /var/lib/gems/2.2.0/gems/eventmachine-1.2.0.1/lib/eventmachine.rb:530:in `start_server'
      /var/lib/gems/2.2.0/gems/thin-1.6.4/lib/thin/backends/tcp_server.rb:16:in `connect'
      /var/lib/gems/2.2.0/gems/thin-1.6.4/lib/thin/backends/base.rb:63:in `block in start'
      /var/lib/gems/2.2.0/gems/eventmachine-1.2.0.1/lib/eventmachine.rb:194:in `call'
      /var/lib/gems/2.2.0/gems/eventmachine-1.2.0.1/lib/eventmachine.rb:194:in `run_machine'
      /var/lib/gems/2.2.0/gems/eventmachine-1.2.0.1/lib/eventmachine.rb:194:in `run'
      /var/lib/gems/2.2.0/gems/thin-1.6.4/lib/thin/backends/base.rb:73:in `start'
      /var/lib/gems/2.2.0/gems/thin-1.6.4/lib/thin/server.rb:162:in `start'
      /var/lib/gems/2.2.0/gems/thin-1.6.4/lib/thin/controllers/controller.rb:87:in `start'
      /var/lib/gems/2.2.0/gems/thin-1.6.4/lib/thin/runner.rb:200:in `run_command'
      /var/lib/gems/2.2.0/gems/thin-1.6.4/lib/thin/runner.rb:156:in `run!'
      /var/lib/gems/2.2.0/gems/thin-1.6.4/bin/thin:6:in `<top (required)>'
      /usr/local/bin/thin:23:in `load'
      /usr/local/bin/thin:23:in `<top (required)>'
    but i am stuck, cannot find why i have this :|

    Comment

    • Laured
      Junior Member
      • Jul 2016
      • 7

      #3
      well in fact it was http://ipaddress/zabbix in zabbix_credentials.rb and I had these mistakes because in my credentials it was Admin and not admin ...
      So now i run dashing start and I have this :

      Code:
      root@vmon3:~/zabbix_dashboard# dashing start &
      [6] 119967
      root@vmon3:~/zabbix_dashboard# Thin web server (v1.6.4 codename Gob Bluth)
      Maximum connections set to 1024
      Listening on 0.0.0.0:3030, CTRL+C to stop
      but I cannot access to the dashboard, I have tried theses addresses :




      And everytime I get nothing :/

      Anyone has a solution ?

      Comment

      • Laured
        Junior Member
        • Jul 2016
        • 7

        #4
        It was my firewall rules that needed to be updated in this file directly : /etc/iptables/rules.v4 (see here)

        But now I have a weird dashboard, not like I am supposed to have : (see attachment)

        Any idea why I have this ?

        Thank you
        Attached Files

        Comment

        • bad94r
          Junior Member
          • Mar 2017
          • 1

          #5
          Hi Laured

          Did you manage to overcome the display issue? I'm trying to set this up and I also see the same display as in your screen shot.

          Thanks

          Steve

          Comment

          Working...