Ad Widget

Collapse

Zabbix Dynamic PDF Report Generation

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Nico34
    Junior Member
    • Nov 2014
    • 2

    #226
    Zabbix Dynamic PDF Report Generation

    hi martinm,

    Thanks for this nice pdf report for zabbix.
    I have installed the pdf report (http://url/zabbix/report) but i have issue with the http authentication, i get the message unable to login.
    so i looked in to the log and i see ""POST /api_jsonrpc.php HTTP/1.1" 401 489 "-" "ZabbixAPI v1.0 - http://andrewfarley.com/zabbix_php_api"

    HTTP/1.1" 401 authentication failed.

    Is there any how to fix this issue ? how can i use the login with the http authentication?

    I am using zabbix 2.4.2 on linux redhat 6.

    Thank you very much.

    Nico,

    Comment

    • martinm_76
      Member
      • Mar 2015
      • 57

      #227
      Originally posted by Nico34
      hi martinm,

      Thanks for this nice pdf report for zabbix.
      I have installed the pdf report (http://url/zabbix/report) but i have issue with the http authentication, i get the message unable to login.
      so i looked in to the log and i see ""POST /api_jsonrpc.php HTTP/1.1" 401 489 "-" "ZabbixAPI v1.0 - http://andrewfarley.com/zabbix_php_api"

      HTTP/1.1" 401 authentication failed.

      Is there any how to fix this issue ? how can i use the login with the http authentication?

      I am using zabbix 2.4.2 on linux redhat 6.

      Thank you very much.

      Nico,
      Hi, Nico.

      My hunch is that your $z_server is set incorrectly. Unless you have changed the default, zabbix should be in the /zabbix directory, but you seem to be accessing it at root level above.

      Make sure you have '/zabbix/' in $z_server, if you have it when you log in to Zabbix the normal way.

      Something like: $z_server='http://your.ip.goes.here/zabbix/'
      Also doublecheck the pdf variables.

      You should be able to set them to:

      $pdf_report_dir = './reports';
      # Root URL to reports
      $pdf_report_url = "zabbix/report/reports";

      If I read your post correctly.

      Comment

      • martinm_76
        Member
        • Mar 2015
        • 57

        #228
        ZABBIX Dynamic PDF report generator v0.9 released

        Hello, folks!

        I have implemented a few more features in the PDF-report and uploaded it to my Google drive. I have shared the folder this time, so when the next version is uploaded, you should still be able to use this link.

        The issue with graphs that I accidentally introduced for Host Groups in 0.8 is fixed and I have now made it possible to include the current state of items you are interested in in the report. Any item that doesn't match the current host is just ignored.

        ChangeLog:
        Code:
        2015-03-24  Martin Møller <[email protected]> - Update to v0.9
        	* Changed fonts to be slightly smaller, fitting better on the page.
        	* Fixed my selector names to not conflict with already used variables.
        	* ^-> $graphs has been renamed $GraphsOn, and $triggers to $TriggersOn
        	* More frequent debug output updates
        	* $version variable introduced in config.inc.php
        	
        2015-04-08  Martin Møller <[email protected]>
        	* Added ability to show select items status in report, including debug
        	* Added option to generate report on localhost without requiring login
        	* Various small bugfixes to support the above
        	* >> Adjust $items in config.inc.php to your liking <<
        By default, $items is set as follows (several are custom checks you probably don't have):
        Code:
        $items = array('system information'=>'string','uptime'=>'seconds', 'boot time'=>'datetime', 'available memory'=>'number', 'version of zabbix_agent'=>'string', 'services'=>'string', 'update'=>'number','certificate'=>'string','advanced ntp'=>'string');
        I match against the name rather than the key here because that suits my environment best. Should you want the key in stead, change 'name' to 'key_' in line 197 of inc/createpdf.functions.php ($sys = .... ) where:
        'search'=>array('name'=>"$item") to 'search'=>array('key_'=>"item")

        This version should work unattended as well, if you want automated reports, and have set up $z_user and $z_pass correctly in config.inc.php:
        Code:
        wget -O /tmp/report5.pdf "http://127.0.0.1/report/createpdf.php?ReportType=host&HostID=YourHostHere&GraphsOn=yes&TriggersOn=yes&ItemsOn=yes&ReportRange=last&timePeriod=Day"
        mail -s "Automated PDF report for YourHostName" -a /tmp/report5.pdf [email protected]
        Remember to substitute YourHostHere for the actual ID of the host, YourHostName with the name you know the reported host as, and [email protected] with the e-mail address you want to send the report to.

        It should be able to run via cron, but I have not tested this.

        It is important that you use 127.0.0.1 when you generate the report, unless you have $user_login set to 0.

        Grab version 0.9 here:

        Comment

        • Nico34
          Junior Member
          • Nov 2014
          • 2

          #229
          Originally posted by martinm_76
          Hi, Nico.

          My hunch is that your $z_server is set incorrectly. Unless you have changed the default, zabbix should be in the /zabbix directory, but you seem to be accessing it at root level above.

          Make sure you have '/zabbix/' in $z_server, if you have it when you log in to Zabbix the normal way.

          Something like: $z_server='http://your.ip.goes.here/zabbix/'
          Also doublecheck the pdf variables.

          You should be able to set them to:

          $pdf_report_dir = './reports';
          # Root URL to reports
          $pdf_report_url = "zabbix/report/reports";

          If I read your post correctly.

          hi Martinm,
          Thanks for you replay.
          My $z_server server is set correctly. The Authentication method is set on HTTP, but i am using also LDAP Authentication in the config vhost appache and this is basicly a http authentication. If i change the authentication method in zabbix to "Internal" then the PDF report works. but if i set the authentication method back on "HTTP" then i get this error message:
          Unable to login: Array ( [code] => -32602 [message] => Invalid params. [data] => Cannot login. ).

          so iam stuck with the http authentication .
          i am using now the pdf 09 version thanks for this!.

          Comment

          • martinm_76
            Member
            • Mar 2015
            • 57

            #230
            Originally posted by Nico34
            hi Martinm,
            Thanks for you replay.
            My $z_server server is set correctly. The Authentication method is set on HTTP, but i am using also LDAP Authentication in the config vhost appache and this is basicly a http authentication. If i change the authentication method in zabbix to "Internal" then the PDF report works. but if i set the authentication method back on "HTTP" then i get this error message:
            Unable to login: Array ( [code] => -32602 [message] => Invalid params. [data] => Cannot login. ).

            so iam stuck with the http authentication .
            i am using now the pdf 09 version thanks for this!.
            Weird. As far as I can tell, the API should support LDAP login. Are you letting Zabbix do the LDAP lookup (Authentication type LDAP, or are you having Apache do it (since you say HTTP, it might be the case).
            I would think it would work it you use the LDAP setup that Zabbix has natively.

            Happy reporting!

            Comment

            • zalezeek
              Junior Member
              • Jan 2015
              • 6

              #231
              Can't see any graph in pdf file

              Hi All

              Anyone can help me to check about when I select "ALL" host and then generate.

              I can't see any graph in pdf file.

              Please help me to solve that.

              Thanks.

              Comment

              • martinm_76
                Member
                • Mar 2015
                • 57

                #232
                Originally posted by zalezeek
                Hi All

                Anyone can help me to check about when I select "ALL" host and then generate.

                I can't see any graph in pdf file.

                Please help me to solve that.

                Thanks.
                It sounds like you're using a rather old version of the report.
                Could you try version 0.9 I posted a few days ago? There is no 'ALL' option here, but you can select a host group.

                Comment

                • waardd
                  Member
                  • Aug 2014
                  • 82

                  #233
                  Strange error message

                  Unable to logout: Array ( [code] => -32400 [message] => System error. [data] => JSON-rpc error generation failed. No such error: )

                  And generator keeps asking redentials even with: $user_login=0
                  Anyone has this problem or solution?

                  my config file:
                  Code:
                  <?php
                  //CONFIGURABLE
                  //$user_login=1; // If $user_login is 0, use credentials below and don't prompt for login.
                  $user_login=0; // If $user_login is 0, use credentials below and don't prompt for login.
                  $allow_localhost=1; // If a request is made from 127.0.0.1, use credentials below in createpdf.php
                  
                  $version        = '0.9';
                  
                  // What items would you like to see in the report? Things that do not match are excluded automatically.
                  $items = array('system information'=>'string','uptime'=>'seconds', 'boot time'=>'datetime', 'available memory'=>'number', 'version of zabbix_agent'=>'string', 'services'=>'string', 'update'=>'number','certificate'=>'string','advanced ntp'=>'string');
                  
                  # zabbix server info(user must have API access)
                  $z_server       = 'http://a.b.c.d/zabbix/frontends/php';
                  $z_user         = 'myuser';
                  $z_pass         = 'mypassword';
                  # Temporary directory for storing pdf data and graphs - must exist
                  $z_tmp_path     = '/appl/mcv/html/zabbix/report/images';
                  # Directory for storing PDF reports
                  $pdf_report_dir = '/appl/mcv/html/zabbix/report/reports';
                  # Root URL to reports
                  #$pdf_report_url        = $z_server ."report/reports";
                  $pdf_report_url = "/report/reports";
                  # paper settings
                  $paper_format   = 'A4'; // formats supported: 4A0, 2A0, A0 -> A10, B0 -> B10, C0 -> C10, RA0 -> RA4, SRA0 -> SRA4, LETTER, LEGAL, EXECUTIVE, FOLIO
                  $paper_orientation = 'portrait'; // formats supported: portrait / landscape
                  # time zone - see http://php.net/manual/en/timezones.php
                  $timezone       = 'Europe/Amsterdam';
                  # Logo used in PDF - may be empty
                  # TODO: Specify image size!
                  $pdf_logo       = './images/general/zabbix.png';
                  $company_name   = 'Siebel IVO ISO';
                  
                  //DO NOT CHANGE BELOW THIS LINE
                  $z_tmp_cookies  = "/tmp/";
                  $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";
                  ?>
                  Last edited by waardd; 14-04-2015, 08:18.

                  Comment

                  • zalezeek
                    Junior Member
                    • Jan 2015
                    • 6

                    #234
                    Can't create output .pdf file

                    Originally posted by martinm_76
                    It sounds like you're using a rather old version of the report.
                    Could you try version 0.9 I posted a few days ago? There is no 'ALL' option here, but you can select a host group.
                    Hi Marinm_76

                    It's right. I install v.0.3 but now I upgrade to 0.9 already.

                    So, I have problem with output .pdf I can't found that output on server.

                    Error Output

                    Not Found

                    The requested URL /reports/xxx.pdf was not found on this server.


                    Can you help me to check that issues ?

                    Thanks.


                    ==================================

                    Now I solve problem done.

                    I modify about permission on tmp and reports directory to 777

                    Thanks.
                    Last edited by zalezeek; 14-04-2015, 23:29. Reason: Solve problem done !!!

                    Comment

                    • martinm_76
                      Member
                      • Mar 2015
                      • 57

                      #235
                      I'm not sure exactly what is going on in your case, but can you confirm, that you normally log on to Zabbix via the url:



                      (of course with a.b.c.d replaced with whatever you had there before obfuscation)? It must be the same URL. IP or DNS should both work, but the path has to be the same.

                      What do you get in the Apache error_log?

                      Usually either /var/log/httpd/error_log or /var/log/apache2/error_log

                      Originally posted by waardd
                      Unable to logout: Array ( [code] => -32400 [message] => System error. [data] => JSON-rpc error generation failed. No such error: )

                      And generator keeps asking redentials even with: $user_login=0
                      Anyone has this problem or solution?

                      my config file:
                      Code:
                      <?php
                      //CONFIGURABLE
                      //$user_login=1; // If $user_login is 0, use credentials below and don't prompt for login.
                      $user_login=0; // If $user_login is 0, use credentials below and don't prompt for login.
                      $allow_localhost=1; // If a request is made from 127.0.0.1, use credentials below in createpdf.php
                      
                      $version        = '0.9';
                      
                      // What items would you like to see in the report? Things that do not match are excluded automatically.
                      $items = array('system information'=>'string','uptime'=>'seconds', 'boot time'=>'datetime', 'available memory'=>'number', 'version of zabbix_agent'=>'string', 'services'=>'string', 'update'=>'number','certificate'=>'string','advanced ntp'=>'string');
                      
                      # zabbix server info(user must have API access)
                      $z_server       = 'http://a.b.c.d/zabbix/frontends/php';
                      $z_user         = 'myuser';
                      $z_pass         = 'mypassword';
                      # Temporary directory for storing pdf data and graphs - must exist
                      $z_tmp_path     = '/appl/mcv/html/zabbix/report/images';
                      # Directory for storing PDF reports
                      $pdf_report_dir = '/appl/mcv/html/zabbix/report/reports';
                      # Root URL to reports
                      #$pdf_report_url        = $z_server ."report/reports";
                      $pdf_report_url = "/report/reports";
                      # paper settings
                      $paper_format   = 'A4'; // formats supported: 4A0, 2A0, A0 -> A10, B0 -> B10, C0 -> C10, RA0 -> RA4, SRA0 -> SRA4, LETTER, LEGAL, EXECUTIVE, FOLIO
                      $paper_orientation = 'portrait'; // formats supported: portrait / landscape
                      # time zone - see http://php.net/manual/en/timezones.php
                      $timezone       = 'Europe/Amsterdam';
                      # Logo used in PDF - may be empty
                      # TODO: Specify image size!
                      $pdf_logo       = './images/general/zabbix.png';
                      $company_name   = 'Siebel IVO ISO';
                      
                      //DO NOT CHANGE BELOW THIS LINE
                      $z_tmp_cookies  = "/tmp/";
                      $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";
                      ?>

                      Comment

                      • waardd
                        Member
                        • Aug 2014
                        • 82

                        #236
                        There is no error in the log.

                        Entry in the access_log is:
                        <MYIP>- - [16/Apr/2015:11:26:30 +0200] "POST /zabbix/frontends/php/jsrpc.php?output=json-rpc HTTP/1.1" 200 56 100860 "http://lsrv1342.linux.rabobank.nl/zabbix/frontends/php/screens.php?sid=9f3566832522bc07" "Mozilla/5.0 (Windows NT 6.1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/41.0.2272.101 Safari/537.36"

                        I moved the report dir as a subdir of the php dir and made the changes in the config file accordingly.

                        If i choose index.php for the screen url i log in and then the chooser php comes with the error mentioned earlier:
                        Unable to logout: Array ( [code] => -32400 [message] => System error. [data] => JSON-rpc error generation failed. No such error: )

                        When i make chooser.php the screen url the error message appears immidiatly....

                        So where is it going wrong?

                        All dirs are 755 in rights except for tmp and reports they are 777

                        Comment

                        • martinm_76
                          Member
                          • Mar 2015
                          • 57

                          #237
                          Well, this is odd! What version of Zabbix are you running?
                          I am on 2.4.4 and have been on 2.4.x for most of the development, since I adapted the previous versions.

                          Try this:
                          Open chooser.php and simply comment out this part:
                          Code:
                          ZabbixAPI::logout($z_server,$z_user,$z_pass)
                                  or die('Unable to logout: '.print_r(ZabbixAPI::getLastError(),true));
                          You seem to be able to log in just fine. I think we'll manage that you don't log out right away. Does that get you on to the reports?

                          Originally posted by waardd
                          There is no error in the log.

                          Entry in the access_log is:
                          <MYIP>- - [16/Apr/2015:11:26:30 +0200] "POST /zabbix/frontends/php/jsrpc.php?output=json-rpc HTTP/1.1" 200 56 100860 "http://lsrv1342.linux.rabobank.nl/zabbix/frontends/php/screens.php?sid=9f3566832522bc07" "Mozilla/5.0 (Windows NT 6.1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/41.0.2272.101 Safari/537.36"

                          I moved the report dir as a subdir of the php dir and made the changes in the config file accordingly.

                          If i choose index.php for the screen url i log in and then the chooser php comes with the error mentioned earlier:
                          Unable to logout: Array ( [code] => -32400 [message] => System error. [data] => JSON-rpc error generation failed. No such error: )

                          When i make chooser.php the screen url the error message appears immidiatly....

                          So where is it going wrong?

                          All dirs are 755 in rights except for tmp and reports they are 777

                          Comment

                          • waardd
                            Member
                            • Aug 2014
                            • 82

                            #238
                            Originally posted by martinm_76
                            Try this:
                            Open chooser.php and simply comment out this part:
                            Code:
                            ZabbixAPI::logout($z_server,$z_user,$z_pass)
                                    or die('Unable to logout: '.print_r(ZabbixAPI::getLastError(),true));
                            You seem to be able to log in just fine. I think we'll manage that you don't log out right away. Does that get you on to the reports?
                            That does get me on the report only...

                            After choosing a hostgroup and filling the form i get an HTTP500 error.

                            It does create a temp file (and dir) but no PDF.

                            In chrome its a white screen. In IE its HTTP500

                            One step closer but not there yet.

                            Errormessage in error_log
                            Lots of:
                            Code:
                            [Fri Apr 17 14:29:16 2015] [error] [client  a.b.c.d] PHP Notice:  Undefined index: name in /appl/mcv/html/zabbix/frontends/php/report/inc/createpdf.functions.php on line 92, referer: http://lsrv1342.linux.rabobank.nl/zabbix/frontends/php/report/chooser.php
                            [Fri Apr 17 14:29:16 2015] [error] [client  a.b.c.d] PHP Notice:  Undefined index: key_ in /appl/mcv/html/zabbix/frontends/php/report/inc/createpdf.functions.php on line 93, referer: http://lsrv1342.linux.rabobank.nl/zabbix/frontends/php/report/chooser.php
                            [Fri Apr 17 14:29:16 2015] [error] [client  a.b.c.d] PHP Notice:  Undefined index: lastvalue in /appl/mcv/html/zabbix/frontends/php/report/inc/createpdf.functions.php on line 94, referer: http://lsrv1342.linux.rabobank.nl/zabbix/frontends/php/report/chooser.php
                            [Fri Apr 17 14:29:16 2015] [error] [client  a.b.c.d] PHP Notice:  Undefined index: units in /appl/mcv/html/zabbix/frontends/php/report/inc/createpdf.functions.php on line 95, referer: http://lsrv1342.linux.rabobank.nl/zabbix/frontends/php/report/chooser.php
                            [Fri Apr 17 14:29:16 2015] [error] [client  a.b.c.d] PHP Notice:  Undefined index: lastclock in /appl/mcv/html/zabbix/frontends/php/report/inc/createpdf.functions.php on line 100, referer: http://lsrv1342.linux.rabobank.nl/zabbix/frontends/php/report/chooser.php
                            And the last part says:
                            Code:
                            [Fri Apr 17 14:29:16 2015] [error] [client a.b.c.d] PHP Fatal error:  Uncaught exception 'Exception' with message 'DateTime::__construct(): Failed to parse time string (@) at position 0 (@): Unexpected character' in /appl/mcv/html/zabbix/frontends/php/report/inc/createpdf.functions.php:46\nStack trace:\n#0 /appl/mcv/html/zabbix/frontends/php/report/inc/createpdf.functions.php(46): DateTime->__construct('@')\n#1 /appl/mcv/html/zabbix/frontends/php/report/inc/createpdf.functions.php(103): secondsToTime(NULL)\n#2 /appl/mcv/html/zabbix/frontends/php/report/createpdf.php(177): CreatePDF(Array)\n#3 {main}\n  thrown in /appl/mcv/html/zabbix/frontends/php/report/inc/createpdf.functions.php on line 46, referer: http://lsrv1342.linux.rabobank.nl/zabbix/frontends/php/report/chooser.php
                            And the generator does not show me my hosts. Only host groups.
                            And my version of zabbix is 1.8.20 (to be upgraded...)
                            Last edited by waardd; 17-04-2015, 14:35.

                            Comment

                            • martinm_76
                              Member
                              • Mar 2015
                              • 57

                              #239
                              Originally posted by waardd
                              That does get me on the report only...

                              After choosing a hostgroup and filling the form i get an HTTP500 error.

                              It does create a temp file (and dir) but no PDF.

                              In chrome its a white screen. In IE its HTTP500

                              One step closer but not there yet.

                              <snip>

                              And the last part says:
                              Code:
                              [Fri Apr 17 14:29:16 2015] [error] [client a.b.c.d] PHP Fatal error:  Uncaught exception 'Exception' with message 'DateTime::__construct(): Failed to parse time string (@) at position 0 (@): Unexpected character' in /appl/mcv/html/zabbix/frontends/php/report/inc/createpdf.functions.php:46
                              Stack trace:
                              #0 /appl/mcv/html/zabbix/frontends/php/report/inc/createpdf.functions.php(46): DateTime->__construct('@')
                              #1 /appl/mcv/html/zabbix/frontends/php/report/inc/createpdf.functions.php(103): secondsToTime(NULL)
                              #2 /appl/mcv/html/zabbix/frontends/php/report/createpdf.php(177): CreatePDF(Array)
                              #3 {main}
                                thrown in /appl/mcv/html/zabbix/frontends/php/report/inc/createpdf.functions.php on line 46, referer: http://lsrv1342.linux.rabobank.nl/zabbix/frontends/php/report/chooser.php
                              And the generator does not show me my hosts. Only host groups.
                              And my version of zabbix is 1.8.20 (to be upgraded...)
                              Well, it seems like both PHP and Zabbix may be older than what the report can comfortably handle in this version.
                              You may have to try version 0.3 or 0.5 for your setup, some pages back in this thread. The only errors I get are about file handles sometimes, and the report seems to be complete.

                              You could try 0.8 and see if that will do. That was before I implemented the items array that seems to be causing you trouble.

                              You can get 0.8 from the same place you got 0.9.

                              I have added 0.5 to the drive as well, for you and anyone else that have issues with the versions I have modified. Try 0.8 and/or 0.5 and see how it goes. I would expect the report to work with Zabbix 2.0 and up and a supported version of PHP.

                              Comment

                              • waardd
                                Member
                                • Aug 2014
                                • 82

                                #240
                                I have now installed 0.5 (from the google drive) with my 1.8.20 Zabbix.
                                Login is OK
                                Selection is OK
                                Report takes very long.... and then.... no show!!

                                There is a dir made in the tmp dir with lots of png files (wich i cant open by the way)
                                For instance: zabbix_report_S8AdPK with files like:
                                total 2844
                                -rw-r--r-- 1 apache apache 228 Apr 19 12:48 _927.png
                                -rw-r--r-- 1 apache apache 228 Apr 19 12:48 _926.png
                                -rw-r--r-- 1 apache apache 228 Apr 19 12:48 _924.png
                                -rw-r--r-- 1 apache apache 228 Apr 19 12:48 _922.png
                                -rw-r--r-- 1 apache apache 228 Apr 19 12:48 _920.png
                                -rw-r--r-- 1 apache apache 228 Apr 19 12:48 _918.png
                                -rw-r--r-- 1 apache apache 228 Apr 19 12:48 _916.png
                                -rw-r--r-- 1 apache apache 228 Apr 19 12:48 _914.png
                                -rw-r--r-- 1 apache apache 228 Apr 19 12:48 _912.png
                                -rw-r--r-- 1 apache apache 228 Apr 19 12:48 _901.png
                                -rw-r--r-- 1 apache apache 228 Apr 19 12:48 _900.png
                                -rw-r--r-- 1 apache apache 228 Apr 19 12:48 _899.png
                                -rw-r--r-- 1 apache apache 228 Apr 19 12:48 _894.png
                                -rw-r--r-- 1 apache apache 228 Apr 19 12:48 _892.png
                                -rw-r--r-- 1 apache apache 228 Apr 19 12:48 _891.png
                                -rw-r--r-- 1 apache apache 228 Apr 19 12:48 _890.png
                                -rw-r--r-- 1 apache apache 228 Apr 19 12:48 _889.png
                                -rw-r--r-- 1 apache apache 228 Apr 19 12:48 _888.png
                                -rw-r--r-- 1 apache apache 228 Apr 19 12:48 _887.png
                                -rw-r--r-- 1 apache apache 228 Apr 19 12:48 _886.png
                                -rw-r--r-- 1 apache apache 228 Apr 19 12:48 _885.png
                                -rw-r--r-- 1 apache apache 228 Apr 19 12:48 _884.png
                                -rw-r--r-- 1 apache apache 228 Apr 19 12:48 _883.png
                                -rw-r--r-- 1 apache apache 228 Apr 19 12:48 _882.png
                                -rw-r--r-- 1 apache apache 228 Apr 19 12:48 _881.png
                                -rw-r--r-- 1 apache apache 228 Apr 19 12:48 _880.png


                                error_log mentiones:
                                [Sun Apr 19 13:48:51 2015] [error] [client 99.99.99.99] PHP Notice: Undefined index: name in /appl/mcv/html/zabbix/frontends/php/report/inc/createpdf.functions.php on line 64, referer: http://lsrv1342.linux.rabobank.nl/za...port/index.php
                                .
                                .
                                .
                                [Sun Apr 19 13:56:36 2015] [error] [client 99.99.99.99] PHP Notice: Undefined property: stdClass::$hosts in /appl/mcv/html/zabbix/frontends/php/dashboard/hostgroup01.php on line 78
                                [Sun Apr 19 13:56:36 2015] [error] [client 99.99.99.99] PHP Warning: usort() expects parameter 1 to be array, null given in /appl/mcv/html/zabbix/frontends/php/dashboard/hostgroup01.php on line 83
                                (Lots of times above two lines)
                                [Sun Apr 19 13:56:36 2015] [error] [client 99.99.99.99] PHP Fatal error: Uncaught exception 'Exception' with message 'API error -32602: Not authorized' in /appl/mcv/html/zabbix/frontends/php/dashboard/lib/php/ZabbixApiAbstract.class.php:254\nStack trace:\n#0 /appl/mcv/html/zabbix/frontends/php/dashboard/lib/php/ZabbixApiAbstract.class.php(409): ZabbixApiAbstract->request('user.logout', Array, '')\n#1 /appl/mcv/html/zabbix/frontends/php/dashboard/hostgroup01.php(148): ZabbixApiAbstract->userLogout()\n#2 {main}\n thrown in /appl/mcv/html/zabbix/frontends/php/dashboard/lib/php/ZabbixApiAbstract.class.php on line 254


                                My report dir looks like:
                                -rwxrwxr-x 1 mcv prod 119 Mar 26 2014 README.md
                                -rwxrwxr-x 1 mcv prod 35120 Mar 26 2014 LICENSE
                                -rwxrwxr-x 1 mcv prod 11475 Sep 5 2014 createpdf.php
                                -rwxrwxr-x 1 mcv prod 1526 Sep 5 2014 Changelog
                                drwxrwxr-x 2 mcv prod 4096 Apr 19 12:41 css
                                drwxrwxr-x 2 mcv prod 4096 Apr 19 12:41 fonts
                                drwxrwxr-x 3 mcv prod 4096 Apr 19 12:41 images
                                drwxrwxr-x 2 mcv prod 4096 Apr 19 12:41 inc
                                drwxrwxr-x 2 mcv prod 4096 Apr 19 12:41 reports
                                drwxrwxr-x 2 mcv prod 4096 Apr 19 12:41 js
                                -rwxrwxrwx 1 mcv prod 0 Apr 19 12:43 data.txt
                                -rwxrwxr-x 1 mcv prod 1240 Apr 19 12:46 config.inc.php
                                -rwxrwxr-x 1 mcv prod 9457 Apr 19 12:48 index.php
                                drwxrwxrwx 6 mcv prod 4096 Apr 19 13:49 tmp

                                Maybe its a small thing i'm missing?
                                Last edited by waardd; 19-04-2015, 14:01.

                                Comment

                                Working...