Ad Widget

Collapse

Zabbix Dynamic PDF Report Generation

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • vlam
    Senior Member
    Zabbix Certified Specialist
    • Jun 2009
    • 166

    #166
    Hi Ferrol

    I still get the same error

    Might it be that I require a specific json package
    4 Zabbix Frontend Servers (Load balanced)
    2 Zabbix App Servers (HA)
    2 Zabbix Database Servers (HA)
    18 Zabbix Proxy Servers (HA)
    3897 Deployed Zabbix Agents
    6161 Values per second
    X-Layer Integration
    Jaspersoft report Servers (HA)

    Comment

    • Ferrol
      Junior Member
      • Feb 2014
      • 11

      #167
      Originally posted by vlam
      Hi Ferrol

      I still get the same error

      Might it be that I require a specific json package
      Yes, you need that package.

      Comment

      • boomer
        Junior Member
        • Jun 2011
        • 13

        #168
        Originally posted by Ferrol
        Hi Boomer,

        Thanks for the answer. I have a problem using that method as my zabbix was set to refresh its page in every 5 seconds. As my Report generation really take time to generate a report, it will not have enough time to generate the report if i am generating it from inside Zabbix. I had to generate it directly from the browser.

        Thanks anyway

        use profile -> Refresh (in seconds)

        Comment

        • vlam
          Senior Member
          Zabbix Certified Specialist
          • Jun 2009
          • 166

          #169
          Ferrol

          here is the list of php packages that I do have installed

          php-pdo-5.1.6-44.el5_10
          php-bcmath-5.1.6-44.el5_10
          php-mbstring-5.1.6-44.el5_10
          php-xmlrpc-5.1.6-44.el5_10
          php-devel-5.1.6-44.el5_10
          php-5.1.6-44.el5_10
          php-xml-5.1.6-44.el5_10
          php-dba-5.1.6-44.el5_10
          php-snmp-5.1.6-44.el5_10
          php-pear-1.4.9-8.el5
          php-json-1.2.1-3
          php-common-5.1.6-44.el5_10
          php-gd-5.1.6-44.el5_10
          php-soap-5.1.6-44.el5_10
          php-odbc-5.1.6-44.el5_10
          php-mysql-5.1.6-44.el5_10
          php-ncurses-5.1.6-44.el5_10
          php-imap-5.1.6-44.el5_10
          php-cli-5.1.6-44.el5_10
          php-pgsql-5.1.6-44.el5_10
          php-ldap-5.1.6-44.el5_10


          And the json package is there
          4 Zabbix Frontend Servers (Load balanced)
          2 Zabbix App Servers (HA)
          2 Zabbix Database Servers (HA)
          18 Zabbix Proxy Servers (HA)
          3897 Deployed Zabbix Agents
          6161 Values per second
          X-Layer Integration
          Jaspersoft report Servers (HA)

          Comment

          • aib
            Senior Member
            • Jan 2014
            • 1615

            #170
            Originally posted by vlam
            <?php
            //CONFIGURABLE
            # zabbix server info(user must have API access)
            $z_server = 'http://0.0.0.0/zabbix';
            I'm sorry about my question - but I have the real IP address of my zabbix server in data.
            Not the fake four-zeros.

            Did you use the real address and masked it for security reason?
            Sincerely yours,
            Aleksey

            Comment

            • Ferrol
              Junior Member
              • Feb 2014
              • 11

              #171
              Originally posted by vlam
              Ferrol

              here is the list of php packages that I do have installed

              php-pdo-5.1.6-44.el5_10
              php-bcmath-5.1.6-44.el5_10
              php-mbstring-5.1.6-44.el5_10
              php-xmlrpc-5.1.6-44.el5_10
              php-devel-5.1.6-44.el5_10
              php-5.1.6-44.el5_10
              php-xml-5.1.6-44.el5_10
              php-dba-5.1.6-44.el5_10
              php-snmp-5.1.6-44.el5_10
              php-pear-1.4.9-8.el5
              php-json-1.2.1-3
              php-common-5.1.6-44.el5_10
              php-gd-5.1.6-44.el5_10
              php-soap-5.1.6-44.el5_10
              php-odbc-5.1.6-44.el5_10
              php-mysql-5.1.6-44.el5_10
              php-ncurses-5.1.6-44.el5_10
              php-imap-5.1.6-44.el5_10
              php-cli-5.1.6-44.el5_10
              php-pgsql-5.1.6-44.el5_10
              php-ldap-5.1.6-44.el5_10


              And the json package is there
              vlam,
              How about Curl?

              Comment

              • cleciooliveira
                Junior Member
                • Jun 2014
                • 6

                #172
                Error: No permission for the referenced goal or it does not exist you!

                Hello guys,

                I would like your help to solve this problem I'm having.

                I get the following error in the report: Error: No permission for the referenced goal or it does not exist
                you.



                If I own the zabbix can view images of the reports, the user has permission, but still receive this error.
                By logs, logged user configured in config.inc.php check the links, to seek a direct image link can view the report (eg http://192.168.1.2/zabbix/chart2.php...dth=750&height = 150 & period = 3600), only via the report that I can not.



                Below is the information from config.inc.php


                <?php
                //CONFIGURABLE
                # zabbix server info(user must have API access)
                $z_server = 'http://100.100.1.42/zabbix/';
                $z_user = 'user';
                $z_pass = 'user';
                # tmp_images directory path
                $z_img_path = '/var/www/zabbix/custom_pages/tmp_images/';
                # should be the tail of the URL
                $pdf_location = $z_server ."custom_pages/pdf.php";
                # paper settings
                $paper_format = 'LETTER'; // formats supported: 4A0, 2A0, A0 -> A10, B0 -> B10, C0 -> C10, RA0 -> RA4, SRA0 -> SRA4, LETTER, LEGAL, EXECUTIVE, FOLIO
                $paper_oreintation = 'portrait'; // formats supported: portrait / landscape
                # time zone
                $timezone = 'BRST';

                //DO NOT CHANGE BELOW THIS LINE
                $z_tmp_cookies = "/var/www/zabbix/custom_pages/tmp_cookies/";
                $z_url_index = $z_server ."index.php";
                $z_url_graph = $z_server ."chart2.php";
                $z_url_api = $z_server ."api_jsonrpc.php";
                $z_login_data = "name=" .$z_user ."&password=" .$z_pass ."&autologin=1&enter=Sign+in";
                $data = './data.txt';
                ?>


                If anyone can help me on hold. Sorry, my English'm beginner :/

                Comment

                • Ferrol
                  Junior Member
                  • Feb 2014
                  • 11

                  #173
                  Originally posted by cleciooliveira
                  Hello guys,

                  I would like your help to solve this problem I'm having.

                  I get the following error in the report: Error: No permission for the referenced goal or it does not exist
                  you.



                  If I own the zabbix can view images of the reports, the user has permission, but still receive this error.
                  By logs, logged user configured in config.inc.php check the links, to seek a direct image link can view the report (eg http://192.168.1.2/zabbix/chart2.php...dth=750&height = 150 & period = 3600), only via the report that I can not.



                  Below is the information from config.inc.php


                  <?php
                  //CONFIGURABLE
                  # zabbix server info(user must have API access)
                  $z_server = 'http://100.100.1.42/zabbix/';
                  $z_user = 'user';
                  $z_pass = 'user';
                  # tmp_images directory path
                  $z_img_path = '/var/www/zabbix/custom_pages/tmp_images/';
                  # should be the tail of the URL
                  $pdf_location = $z_server ."custom_pages/pdf.php";
                  # paper settings
                  $paper_format = 'LETTER'; // formats supported: 4A0, 2A0, A0 -> A10, B0 -> B10, C0 -> C10, RA0 -> RA4, SRA0 -> SRA4, LETTER, LEGAL, EXECUTIVE, FOLIO
                  $paper_oreintation = 'portrait'; // formats supported: portrait / landscape
                  # time zone
                  $timezone = 'BRST';

                  //DO NOT CHANGE BELOW THIS LINE
                  $z_tmp_cookies = "/var/www/zabbix/custom_pages/tmp_cookies/";
                  $z_url_index = $z_server ."index.php";
                  $z_url_graph = $z_server ."chart2.php";
                  $z_url_api = $z_server ."api_jsonrpc.php";
                  $z_login_data = "name=" .$z_user ."&password=" .$z_pass ."&autologin=1&enter=Sign+in";
                  $data = './data.txt';
                  ?>


                  If anyone can help me on hold. Sorry, my English'm beginner :/

                  Dear cleciooliveira,

                  I saw that your IP address in your config.inc.php is 100.100.1.42, but the IP for direct page that you use to view the graph is 192.168.1.2. The IP address should be the same. I hope I answer you correctly

                  Comment

                  • cleciooliveira
                    Junior Member
                    • Jun 2014
                    • 6

                    #174
                    Hi Ferrol,

                    is why it was only a mistake to mask the inner band just took the example of another server test to verify that I'm doing the same error, which persists.

                    In both it is logged with the mentioned user works with the direct link, but no reports on the right.


                    Originally posted by Ferrol
                    Dear cleciooliveira,

                    I saw that your IP address in your config.inc.php is 100.100.1.42, but the IP for direct page that you use to view the graph is 192.168.1.2. The IP address should be the same. I hope I answer you correctly

                    Comment

                    • Ferrol
                      Junior Member
                      • Feb 2014
                      • 11

                      #175
                      Originally posted by cleciooliveira
                      Hi Ferrol,

                      is why it was only a mistake to mask the inner band just took the example of another server test to verify that I'm doing the same error, which persists.

                      In both it is logged with the mentioned user works with the direct link, but no reports on the right.
                      Hi Cleciooliveira,

                      Actually I dont really understand what your are trying to say, but you may check your username use in your config.inc.php, was it already created in your zabbix system?>

                      $z_user = 'user';
                      $z_pass = 'user';

                      If you are using the old version of zabbix(below version 2.0), you have to make sure the user is already set under API user.

                      Comment

                      • cleciooliveira
                        Junior Member
                        • Jun 2014
                        • 6

                        #176
                        Hello Ferrol,

                        I'm using version 2.2.1.
                        The user User was created in zabbix and has the proper permissions.

                        Like, when you run the report will generate in the apache logs the url access, checking those logs appear on the link that informed (http://192.168.1.2/zabbix/chart2.php...dth=750&height = 150 & period = 3600 ), if I log in with the User zabbix entered in config.inc.php and enter this link the image of the report appears normal as shown in the previous post, but the error appears on the report:

                        Error: No permission for the referenced goal or it does not exist you!

                        Became more clear now?

                        Sorry again for my english


                        Originally posted by Ferrol
                        Hi Cleciooliveira,

                        Actually I dont really understand what your are trying to say, but you may check your username use in your config.inc.php, was it already created in your zabbix system?>

                        $z_user = 'user';
                        $z_pass = 'user';

                        If you are using the old version of zabbix(below version 2.0), you have to make sure the user is already set under API user.

                        Comment

                        • Ferrol
                          Junior Member
                          • Feb 2014
                          • 11

                          #177
                          Originally posted by cleciooliveira
                          Hello Ferrol,

                          I'm using version 2.2.1.
                          The user User was created in zabbix and has the proper permissions.

                          Like, when you run the report will generate in the apache logs the url access, checking those logs appear on the link that informed (http://192.168.1.2/zabbix/chart2.php...dth=750&height = 150 & period = 3600 ), if I log in with the User zabbix entered in config.inc.php and enter this link the image of the report appears normal as shown in the previous post, but the error appears on the report:

                          Error: No permission for the referenced goal or it does not exist you!

                          Became more clear now?

                          Sorry again for my english
                          Try to check your directory and file permission. set it all as 755.

                          Comment

                          • bimvis
                            Junior Member
                            • Sep 2013
                            • 5

                            #178
                            IT Services

                            Hi,

                            What a great tool, it works very great!!! Is there also a possibility to generate a report for the uptime/downtime of a website. At this moment I can only find information in zabbix and copy/paste it to excel, but I will be ore beautiful when I get and PDF report.

                            Bimvis

                            Comment

                            • cleciooliveira
                              Junior Member
                              • Jun 2014
                              • 6

                              #179
                              Originally posted by Ferrol
                              Try to check your directory and file permission. set it all as 755.
                              've checked everything is normal

                              Comment

                              • fguazelli
                                Junior Member
                                • Jul 2014
                                • 2

                                #180
                                Hi, ...

                                I'm new here and, i'm trying to learn about this module. I put it working but something is missing yet, i believe, because the graph aren't showing. I saw another post at the same topic who has the same problem, but no one answer clearly how fixed this.

                                Can someone help or just show the "North" hehe ?

                                Sorry, my english is much poor.

                                Thanks !

                                Comment

                                Working...