Ad Widget

Collapse

Zabbix Trigger Dashboard

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • waardd
    Member
    • Aug 2014
    • 82

    #61
    Looks great. Figuring out the best setup but looking great.
    Can there be other things altered like colors and stuff?
    And... where does it store the screens made?

    Comment

    • wesmason
      Junior Member
      • Oct 2017
      • 6

      #62
      Originally posted by waardd
      Looks great. Figuring out the best setup but looking great.
      Can there be other things altered like colors and stuff?
      And... where does it store the screens made?
      Colors need to be modified in the css. Screens are not stored, the are just presented as a link. I use the browser to bookmark them currently. In our case we have a firefox plugin to cycle between tabs, so we just open a whole folder of them before starting the 'slideshow'.

      I've had an idea for altering the background color(s) to allow differentiation between classes of systems (Prod, QA, Dev). but it might be a bit before I get to that.

      Comment

      • mikco
        Junior Member
        • Apr 2019
        • 11

        #63
        Hi

        I am using version 4.2.6 of zabbix in centos 7, I have reached the point:

        Copy config.php.template into config.php

        this file does not exist and I can no longer configure anything else

        Has anyone tried this in version 4.x?

        Comment

        • wesmason
          Junior Member
          • Oct 2017
          • 6

          #64
          Originally posted by mikco
          Hi

          I am using version 4.2.6 of zabbix in centos 7, I have reached the point:

          Copy config.php.template into config.php

          this file does not exist and I can no longer configure anything else

          Has anyone tried this in version 4.x?

          Here is the contents of "config.php.template"
          ---
          <?php

          # API Info
          $api_url = 'https://hostname/api_jsonrpc.php';
          $api_user = '';
          $api_pass = 'Base64Encode';

          # Time in milliseconds. 1000 = 1 second
          $reload_time = 60000;

          # path on web server
          $context = '/zabbix-dash2';

          # Host Group filter in Regex
          $host_group_filter = '/^Dash\//';
          ?>
          ---

          I'll look into why it might be missing in the repo. I have not tested this project with anything above 3.2, if anything has changed with the api, it may not work.

          --Wes

          Comment

          • mikco
            Junior Member
            • Apr 2019
            • 11

            #65
            Hi
            I have installed zabbix 3.2 and I still can't find the config.php file, could you tell me where you do this action?
            Copy config.php.template into config.php The file config.php don´t exits Regards

            Comment

            • wesmason
              Junior Member
              • Oct 2017
              • 6

              #66
              Originally posted by mikco
              Hi
              I have installed zabbix 3.2 and I still can't find the config.php file, could you tell me where you do this action?
              Copy config.php.template into config.php The file config.php don´t exits Regards
              Oh ok, now I understand. Copy the contents into a new file called `config.php`. Then edit the information in it to match your personal configuration. Primarily change:

              $api_url = 'https://hostname/api_jsonrpc.php';
              $api_user = '';
              $api_pass = 'Base64Encode';

              to match your current setup. You can replace `hostname` with the name of your Zabbix host in DNS, or worst case change it to the IP of the server. Then enter the username for $api_user. For $api_pass, you'll need to take your password and convert it to a Base64 version. Example, 'Password' would look like 'UGFzc3dvcmQ='. If you're not familiar with command line tools, you can use https://www.base64encode.org/ to convert your password. I suggest making a separate user for api access that isn't you, but its not a requirement.

              If you create host groups prefixed with "Dash/", they will show up in the interface. If you don't want to do that and use your existing groups, you can change:

              $host_group_filter = '/^Dash\//';

              to

              $host_group_filter = '/^./';

              If you access the dashboard, it'll list off valid groups. Clicking on one will display the dashboard you want. Bookmark that site. If you change the contents of groups, you will need to go to the main dashboard again to create a new link.

              Good Luck

              --Wes

              Comment

              • mikco
                Junior Member
                • Apr 2019
                • 11

                #67
                Hi

                The first step, I copy all files and folder in /usr/share//zabbix-dash2

                The second step, I create a new file (config.php) and configure this parameter:

                <?php

                # API Info
                $api_url = 'https://192.168.137.6/api_jsonrpc.php'; ---- change
                $api_user = 'Admin';
                $api_pass = 'emFiYml4'; ---- change with Base64 version

                # Time in milliseconds. 1000 = 1 second
                $reload_time = 60000;

                # path on web server
                $context = '/zabbix-dash2';

                # Host Group filter in Regex
                $host_group_filter = '/^./'; ---- change
                ?>


                The last step, prove all type of access

                http:192.168.137.6/zabbix-dash2
                http:192.168.137.6/index.php
                http:192.168.137.6/usr/share/zabbix-dash2


                etc...


                Nothing running, the message it´s (The requested URL /usr/share/index.php was not found on this server.)

                Thanks for your help

                Comment


                • mikco
                  mikco commented
                  Editing a comment
                  have put the files where appropriate, but I only get a blank page
              • mikco
                Junior Member
                • Apr 2019
                • 11

                #68
                Originally posted by mikco
                Hi

                The first step, I copy all files and folder in /usr/share//zabbix-dash2

                The second step, I create a new file (config.php) and configure this parameter:

                <?php

                # API Info
                $api_url = 'https://192.168.137.6/api_jsonrpc.php'; ---- change
                $api_user = 'Admin';
                $api_pass = 'emFiYml4'; ---- change with Base64 version

                # Time in milliseconds. 1000 = 1 second
                $reload_time = 60000;

                # path on web server
                $context = '/zabbix-dash2';

                # Host Group filter in Regex
                $host_group_filter = '/^./'; ---- change
                ?>


                The last step, prove all type of access

                http:192.168.137.6/zabbix-dash2
                http:192.168.137.6/index.php
                http:192.168.137.6/usr/share/zabbix-dash2


                etc...


                Nothing running, the message it´s (The requested URL /usr/share/index.php was not found on this server.)

                Thanks for your help
                Any idea??????

                Comment

                • miky84
                  Junior Member
                  • Jun 2021
                  • 11

                  #69
                  Hi,
                  someone is using it with 5.4 version?

                  Comment

                  Working...