Ad Widget

Collapse

Zabbix Dynamic PDF Report Generation

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Tracs
    Junior Member
    • Oct 2012
    • 9

    #76
    How

    How did you get this working? I am unable to select a client, and if i leave it to all, i get a blank PDF. Any thoughts?

    Comment

    • jitheshr89
      Junior Member
      • Oct 2012
      • 26

      #77
      Ya its working

      Give me your e-mail ID . I wil send you PDF gen files and steps wat i made.

      Attachment exceding max size.

      Thanks
      Jithesh. R

      Comment

      • jitheshr89
        Junior Member
        • Oct 2012
        • 26

        #78
        PHP _ JSON installation


        Update the package index:

        # sudo apt-get update

        Install php-services-json deb package:

        # sudo apt-get install php-services-json

        sudo gedit /etc/php5/apache2/php.ini

        Add the following lines:

        extension=curl.so
        extension=ffmpeg.so
        extension=json.so

        Save and restart Apache:

        sudo /etc/init.d/apache2 restart

        PHP_Curl Installation

        apt-get install curl libcurl3 libcurl3-dev php5-curl

        DYNAMIC PDF Generation Files

        1. Download the attachment

        2. Unzip it

        3. sudo cp /home/user/Downloads/Dynamic_PDF/* /home/user/public_html/

        4. sudo cp /home/user/Downloads/Dynamic_PDF/fonts/* /home/user/public_html/fonts/

        5. sudo mkdir /home/user/public_html/tmp_images

        6. configure config.inc.php with your zabbix server information
        7. make data.txt and your tmp_images directory readable and writeable by apache user [sudo chmod 777 .....]
        8. Login to zabbix and create a new 1 row 1 column screen with a URL width and height of 800x600 / Centre / Top
        9. add URL to pdfform.php to new screen. [http://<IP ADDRESS>/zabbix/pdfform.php]
        10. in php.ini set display_error = OFF
        11. restart apache

        OS: Ubuntu 12.04
        Zabbix: 2.0.3
        DB: MySQL

        enjoy

        Comment


        • sajid4uu2c
          sajid4uu2c commented
          Editing a comment
          Hi jitheshr89, followed the same steps and I am able to generate the reports stand alone.
          But when add it as a screen URL, reports are not generated and nothing happens. Can you please help
      • Tracs
        Junior Member
        • Oct 2012
        • 9

        #79
        Got it, but.....

        Is there a way to have it report for an entire host group instead of an individual host. Thoughts?

        Comment

        • jitheshr89
          Junior Member
          • Oct 2012
          • 26

          #80
          Yes it possible by selecting option 'ALL'

          Hi,

          Is it working now? Are you getting the PDF reports? In that you have one option ALL. Choose that. Also its possible to make select of Host Group. But we need to change SQL Query.

          Comment

          • Tracs
            Junior Member
            • Oct 2012
            • 9

            #81
            Working

            Yes I have it working and made some changes to the layout, What SQL Query would i change to have to do host groups instead of individual hosts?? It works quiet well, except when my screen refreshed half way through a query..

            Comment

            • extress
              Member
              • Jul 2012
              • 32

              #82
              could you share your work man ?

              Comment

              • jitheshr89
                Junior Member
                • Oct 2012
                • 26

                #83
                Share ur mail id

                Hi,
                Share u r mail id so that i can send u all files and settings u need to do.
                Thanks..

                Comment

                • tchjts1
                  Senior Member
                  • May 2008
                  • 1605

                  #84
                  Sent you a PM here.

                  Comment

                  • jitheshr89
                    Junior Member
                    • Oct 2012
                    • 26

                    #85
                    Mail send

                    hi friends,

                    extress,tchjts1,Tracs please check your inbox. I already send mail.

                    Please share your comments here.

                    Comment

                    • tchjts1
                      Senior Member
                      • May 2008
                      • 1605

                      #86
                      Got it. Thank you.

                      I will have to cross reference the FFmpeg-PHP libraries from your Ubuntu install to my RHEL 6 install.

                      Jeff

                      Comment

                      • robertkarl
                        Junior Member
                        • Aug 2012
                        • 6

                        #87
                        Blank report

                        Hi install the Zabbix Dynamic PDF Report Generation on Zabbix 2.0.2, CentOs6.3

                        Everytime I try to generate a report the only choice I have is All And the report is blank except for the header and footer...

                        The only error I have is in the error_log of apache

                        PHP Deprecated: Function set_magic_quotes_runtime() is deprecated in /usr/local/share/zabbix/custom_pages/class.pdf.php on line 2653, referer: http://xxx.xxx.xxx.xxx/zabbix/custom_pages/pdfform.php

                        Any Idea ????

                        Don't forget API user group did not exist in Zabbix 2.0.x

                        Thanks

                        Comment

                        • jitheshr89
                          Junior Member
                          • Oct 2012
                          • 26

                          #88
                          Permission Issue

                          Hi,

                          I think this is becz of permission issue. Just give permison to ur custom_pages and all files inside that folder.

                          Jithesh R

                          Comment

                          • robertkarl
                            Junior Member
                            • Aug 2012
                            • 6

                            #89
                            Blank report

                            Hi jitheshr89, I already give permission to the folder and all file in it to apache, but no file are generated in the folder tmp_images and the report still blank.

                            any other suggestion ?

                            Comment

                            • Axilla
                              Senior Member
                              • Aug 2010
                              • 130

                              #90
                              glad to see people continuing this project along

                              I am back working on zabbix now after some time away working on other projects. I am in the process of moving everything to 2.0.3 and intend to improve this project as I go forward for my company. I will obviously pass things along to the community as I complete them!

                              Changes won't be imediate, and I will probably be re-working everything in Ruby instead of php. Just wanted to say hi!

                              Also I have a lot more expierence now so it shouldn't be as hackish as this version was!

                              For those using it in 2.0 awesome! It was originally written for 1.8.x and I have no expierence to assist with 2.0.

                              Comment

                              Working...