Ad Widget

Collapse

Zabbix Trigger Dashboard

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • selvakumaran
    Junior Member
    • Dec 2014
    • 22

    #46
    Originally posted by colloque
    Hello,

    Did you get the documentation?

    Thanks in advance for your answer.

    Best Regards.
    1.extract incama folder like /var/www/html/incama
    2. change the index.php line 11 like $api = new ZabbixApi('http://zabbixserver/zabbix/api_jsonrpc.php', 'Admin', 'password');.
    3.Restart httpd.
    4.http://zabbixserver/incama

    Comment

    • colloque
      Member
      • Feb 2010
      • 72

      #47
      Originally posted by selvakumaran
      1.extract incama folder like /var/www/html/incama
      2. change the index.php line 11 like $api = new ZabbixApi('http://zabbixserver/zabbix/api_jsonrpc.php', 'Admin', 'password');.
      3.Restart httpd.
      4.http://zabbixserver/incama

      Thanks for your quick answer

      Comment

      • jgshier
        Junior Member
        • Mar 2016
        • 13

        #48
        Tried to install,
        Extracted out to a sub folder called mndash.
        Edited the index.php which really was group hostgroup01.php
        Now getting an error in apache2 log.

        [Thu Mar 31 09:14:46.922870 2016] [:error] [pid 5314] [client 10.0.0.25:51982] PHP Fatal error: Uncaught exception 'Exception' with message 'API error -32602: The "user.login" method must be called without the "auth" parameter.' in /usr/share/zabbix/mndash/lib/php/ZabbixApiAbstract.class.php:254\nStack trace:\n#0 /usr/share/zabbix/mndash/lib/php/ZabbixApiAbstract.class.php(379): ZabbixApiAbstract->request('user.login', Array, '', false)\n#1 /usr/share/zabbix/mndash/lib/php/ZabbixApiAbstract.class.php(115): ZabbixApiAbstract->userLogin(Array)\n#2 /usr/share/zabbix/mndash/index.php(6): ZabbixApiAbstract->__construct('http://zabbix.m...', 'usenrame', 'password')\n#3 {main}\n thrown in /usr/share/zabbix/mndash/lib/php/ZabbixApiAbstract.class.php on line 254

        Comment

        • jgshier
          Junior Member
          • Mar 2016
          • 13

          #49
          Got it working, had to update the PhpZabbixApi, just used the php build.php. Then needed to comment out a few issues with redeclare.
          Thanks

          Comment

          • Eddrik
            Junior Member
            • Apr 2016
            • 1

            #50
            Need help with zabbix 3.0

            Originally posted by jgshier
            Got it working, had to update the PhpZabbixApi, just used the php build.php. Then needed to comment out a few issues with redeclare.
            Thanks
            Could you perform a step by step guide with changes how to make it working on 3.0.
            Thanks in advance. I have the same issue

            Comment

            • jgshier
              Junior Member
              • Mar 2016
              • 13

              #51
              Is there away to sort the hosts name if all in the same host group? Seems like they always sort by hostid.
              I have tried changing, the 'sortfield' in the trigger, but I think at that point it's too late.
              Also is there away to have the hosts that have triggers to to the top of the page?

              Comment

              • Lurnux
                Junior Member
                • May 2014
                • 22

                #52
                Originally posted by Eddrik
                Could you perform a step by step guide with changes how to make it working on 3.0.
                Thanks in advance. I have the same issue
                Would also like to know what to change and where to get this working with 3.0.

                Comment

                • Lurnux
                  Junior Member
                  • May 2014
                  • 22

                  #53
                  Originally posted by Lurnux
                  Would also like to know what to change and where to get this working with 3.0.
                  We got this working with 3.0, thanks for the help of my colleague.

                  In ZabbixApiAbstract.class.php, which is located under /usr/share/zabbix/lib/php in our setup, chage the lines between 210-217 to:
                  Code:
                          // build request array
                          $this->request = array(
                              'jsonrpc' => '2.0',
                              'method'  => $method,
                              'params'  => $params,
                              'id'      => $this->id
                          );
                  
                          if($this->auth)
                                  $this->request['auth'] = $this->auth;

                  Comment

                  • stav13
                    Member
                    • Oct 2013
                    • 66

                    #54
                    Originally posted by Lurnux
                    We got this working with 3.0, thanks for the help of my colleague.

                    In ZabbixApiAbstract.class.php, which is located under /usr/share/zabbix/lib/php in our setup, chage the lines between 210-217 to:
                    Code:
                            // build request array
                            $this->request = array(
                                'jsonrpc' => '2.0',
                                'method'  => $method,
                                'params'  => $params,
                                'id'      => $this->id
                            );
                    
                            if($this->auth)
                                    $this->request['auth'] = $this->auth;
                    Works a treat!!

                    Many Thanks

                    Comment

                    • Beginner
                      Junior Member
                      • Feb 2017
                      • 10

                      #55
                      Hey thanks for sharing!

                      I got it working in Zabbix 3.2, however i want to do one more thing.
                      When it detects a trigger, it instantly updates on the board. But when you resolve the problem it still stays on the board for around 30 minutes. Is there any way to decrease the time that is needed?

                      Comment

                      • toine7m
                        Member
                        • Feb 2017
                        • 93

                        #56
                        Maybe by changing the ReloadPage value ?
                        Or you need to find the function where it reloads when it fails, and add this function if it doesn't fail :3

                        Comment

                        • Beginner
                          Junior Member
                          • Feb 2017
                          • 10

                          #57
                          Originally posted by toine7m
                          Maybe by changing the ReloadPage value ?
                          Or you need to find the function where it reloads when it fails, and add this function if it doesn't fail :3
                          By changing the reloadpage value it won't change anything, i indeed need to find that function. But i can't seem to find it

                          Comment

                          • Lurnux
                            Junior Member
                            • May 2014
                            • 22

                            #58
                            Originally posted by Beginner
                            Hey thanks for sharing!

                            I got it working in Zabbix 3.2, however i want to do one more thing.
                            When it detects a trigger, it instantly updates on the board. But when you resolve the problem it still stays on the board for around 30 minutes. Is there any way to decrease the time that is needed?
                            There is two ways to deal with this. Use alarm acknowledgements from Zabbix dashboard or change time for the delay of trigger changes from general settings.

                            Comment

                            • wesmason
                              Junior Member
                              • Oct 2017
                              • 6

                              #59
                              I forked the project originally made by 'incama' and created a new one based on the requirements we have. I updated the php, css, and allowed showing by hostgroups only.



                              I also made a page where you can title your dashboard and select what groups to put in it. You'll be presented with a custom url to bookmark.

                              You can find it at https://github.com/tdp4/Zabbix-Dash2. Its my first time posting a project based on another's work. Be gentile. :-)

                              It should be easy enough to setup with the instructions I have provided there.

                              Comment


                              • mikco
                                mikco commented
                                Editing a comment
                                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?

                              • wesmason
                                wesmason commented
                                Editing a comment
                                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
                            • incama
                              Member
                              • Jan 2015
                              • 65

                              #60
                              Great work!

                              Comment

                              Working...