Ad Widget

Collapse

Zabbix Dynamic PDF Report Generation

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • martinm_76
    Member
    • Mar 2015
    • 57

    #211
    Originally posted by selvakumaran
    Hi All,
    i am new to this. I have installed Zabbix 2.4 successfully. i want to configure schedule report via mail. i have downloaded zabbix-pdf-report-0.8, but i don't know how to configure the report. kindly help me how to configure step by step.
    Well, it is not really optimized for running unattended (via mail), but it should be doable. You need to configure at least $z_server, $z_user and $z_pass with values that match your setup. I have my reports outside the main zabbix directory at the root level of the WWW. If you have yours somewhere else, you need to adjust $pdf_report_url.

    You probably also want to set $user_login = 0, so you won't be prompted for login details, if you are going the mail route.

    Then you should be able to do something like this:

    # wget -O report.pdf "http://zabbix.domain.org/report/createpdf.php?ReportType=host&HostID=10401&graphs= Graphs&triggers=Triggers&ReportRange=last&timePeri od=Day"
    --2015-03-23 16:02:09-- http://zabbix.domain.org/report/crea...timePeriod=Day
    ...
    Sted: ./reports/BKidm01.pdf [omdirigeret]
    --2015-03-23 16:02:16-- http://zabbix.domain.org/report/reports/BKidm01.pdf
    Connecting to zabbix.domain.org|xx.xx.xx.xx|:80... forbundet.
    HTTP forespørgsel sendt, afventer svar... 200 OK
    Længde: 286499 (280K) [application/pdf]
    Saving to: `report.pdf'

    100%[================================================== ================================================== ================================================== ==============================================>] 286.499 --.-K/s in 0s

    2015-03-23 16:02:16 (577 MB/s) - `report.pdf' saved [286499/286499]

    Naturally you need to replace zabbix.domain.org with the path that fits your environment and HostID with the ID matching the machine you want a report for (or the hostgroup ID, etc.)

    Then you need to mail the PDF after that, usually something like this:

    mail -s "PDF report for ZZZZ" -a report.pdf [email protected] <<EOF
    Please find attached your PDF report for ZZZZ
    EOF

    Comment

    • selvakumaran
      Junior Member
      • Dec 2014
      • 22

      #212
      Zabbix Dynamic PDF Report Generation

      hi martinm,
      i configured PDF Report, and access via the url i am able to get the details in the browser. but report.pdf file not generating. kindly help. if you need any log please let me know the how to take the log

      Comment

      • martinm_76
        Member
        • Mar 2015
        • 57

        #213
        Originally posted by selvakumaran
        hi martinm,
        i configured PDF Report, and access via the url i am able to get the details in the browser. but report.pdf file not generating. kindly help. if you need any log please let me know the how to take the log
        Well, if the web part works fine, then please post what you do on the command-line to generate the PDF, including output.

        Are you using wget? Have you followed my example with the few changes you will need to make to fit your environment?

        Usually, you should be able to copy what you have done in a given session and copy/paste it in your next reply.

        I can see that an extra space has made it into the wget command below. It should have been:
        timePeriod=Day.

        Other than that, it should be pretty straight forward. Also, you might want a different timeperiod, but again, you should be able to see the options on the webpage.

        Are you using Putty or regular SSH? Are you calling from Linux or Windows (or Mac)? Either Putty or e.g. gnome-terminal or Konsole should work well to copy your recent commands to the clipboard for you to insert here.

        You may obfuscate the actual URL, if you wish.

        Comment

        • selvakumaran
          Junior Member
          • Dec 2014
          • 22

          #214
          Zabbix Dynamic PDF Report Generation

          i got the result using putty

          [root@ZABBIX tmp]# wget -O report.pdf "http://192.168.10.159/report/createpdf.php?ReportType=host&HostID=10114&graphs= Graphs&triggers=Triggers&ReportRange=last&timePeri od=DAY."
          --2015-03-24 17:27:18-- http://192.168.10.159/report/createp...ePeri%20od=DAY.
          Connecting to 192.168.10.159:80... connected.
          HTTP request sent, awaiting response... 302 Found
          Location: index.php [following]
          --2015-03-24 17:27:18-- http://192.168.10.159/report/index.php
          Connecting to 192.168.10.159:80... connected.
          HTTP request sent, awaiting response... 200 OK
          Length: 1888 (1.8K) [text/html]
          Saving to: âreport.pdfâ

          100%[======================================>] 1,888 --.-K/s in 0s

          2015-03-24 17:27:18 (643 MB/s) - âreport.pdfâ

          [root@ZABBIX tmp]#

          but pdf not generating

          Comment

          • martinm_76
            Member
            • Mar 2015
            • 57

            #215
            Hi selvakumaran.

            It looks like you have two spaces that shouldn't be there:
            graphs =Graphs
            timePeri od=DAY

            It ought to work, if you remove those.

            I have found an issue with my selectors, to the coming version 0.9 changes graphs to GraphsOn and triggers to TriggersOn to avoid conflict with internal variables.

            It works find through the web interface for one host, correct?

            At present, you will likely only get graphs for the first host in a host-group. This is fixed in v0.9, which I'm still working on.

            Originally posted by selvakumaran
            i got the result using putty

            [root@ZABBIX tmp]# wget -O report.pdf "http://192.168.10.159/report/createpdf.php?ReportType=host&HostID=10114&graphs= Graphs&triggers=Triggers&ReportRange=last&timePeri od=DAY."
            --2015-03-24 17:27:18-- http://192.168.10.159/report/createp...ePeri%20od=DAY.
            Connecting to 192.168.10.159:80... connected.
            HTTP request sent, awaiting response... 302 Found
            Location: index.php [following]
            --2015-03-24 17:27:18-- http://192.168.10.159/report/index.php
            Connecting to 192.168.10.159:80... connected.
            HTTP request sent, awaiting response... 200 OK
            Length: 1888 (1.8K) [text/html]
            Saving to: âreport.pdfâ

            100%[======================================>] 1,888 --.-K/s in 0s

            2015-03-24 17:27:18 (643 MB/s) - âreport.pdfâ

            [root@ZABBIX tmp]#

            but pdf not generating

            Comment

            • selvakumaran
              Junior Member
              • Dec 2014
              • 22

              #216
              Zabbix Dynamic PDF Report Generation

              [root@ZABBIX ~]# wget -O report.pdf "http://192.168.10.159/report/createpdf.php?ReportType=host&HostID=10114&graphs= Graphs&triggers=Triggers&ReportRange=last&timePeri od=DAY."
              --2015-03-25 09:56:02-- http://192.168.10.159/report/createp...timePeriod=DAY.
              Connecting to 192.168.10.159:80... connected.
              HTTP request sent, awaiting response... 302 Found
              Location: index.php [following]
              --2015-03-25 09:56:02-- http://192.168.10.159/report/index.php
              Connecting to 192.168.10.159:80... connected.
              HTTP request sent, awaiting response... 200 OK
              Length: 1888 (1.8K) [text/html]
              Saving to: âreport.pdfâ

              100%[======================================>] 1,888 --.-K/s in 0s

              2015-03-25 09:56:02 (538 MB/s) - âreport.pdfâ

              [root@ZABBIX ~]#

              the bold letter which i attached txt/html. But in your test output shows Application/PDF

              please let me know where can i mistake

              Comment

              • martinm_76
                Member
                • Mar 2015
                • 57

                #217
                Well, then show us the contents of report.pdf. It is either the login page, if you forgot to set $userlogin to 0, or an error message we might be able to use.

                I have just tried with $userlogin=1, and I get a file of exactly that length with the contents of the login page. If you want the login page you need to include credentials for wget, which is easier said than done in this case.

                You can make a second report directory if you only want to have the reports run without authentication, but for now, set $user_login to 0, please.

                It is near the top of config.inc.php

                Originally posted by selvakumaran
                [root@ZABBIX ~]# wget -O report.pdf "http://192.168.10.159/report/createpdf.php?ReportType=host&HostID=10114&graphs= Graphs&triggers=Triggers&ReportRange=last&timePeri od=DAY."
                --2015-03-25 09:56:02-- http://192.168.10.159/report/createp...timePeriod=DAY.
                Connecting to 192.168.10.159:80... connected.
                HTTP request sent, awaiting response... 302 Found
                Location: index.php [following]
                --2015-03-25 09:56:02-- http://192.168.10.159/report/index.php
                Connecting to 192.168.10.159:80... connected.
                HTTP request sent, awaiting response... 200 OK
                Length: 1888 (1.8K) [text/html]
                Saving to: âreport.pdfâ

                100%[======================================>] 1,888 --.-K/s in 0s

                2015-03-25 09:56:02 (538 MB/s) - âreport.pdfâ

                [root@ZABBIX ~]#

                the bold letter which i attached txt/html. But in your test output shows Application/PDF

                please let me know where can i mistake

                Comment

                • selvakumaran
                  Junior Member
                  • Dec 2014
                  • 22

                  #218
                  Zabbix Dynamic PDF Report Generation

                  i have changed. but pdf file not generated. is there any pdf tool will installed or no need .

                  Comment

                  • martinm_76
                    Member
                    • Mar 2015
                    • 57

                    #219
                    If you can generate a PDF from the web interface, then things are good and you need to check config.inc.php.

                    If you cannot generate a PDF from the web interface (for a host), then hopefully there will be some output to guide to towards the reason.

                    Please try the web interface, select the host and period, check the 'Debug' option and generate a report. Copy the output of the debug page before you click the PDF link at the bottom and paste it here, if the PDF is not actually a PDF.

                    Comment

                    • selvakumaran
                      Junior Member
                      • Dec 2014
                      • 22

                      #220
                      Zabbix Dynamic PDF Report Generation

                      Hi Martin,
                      please find the output result from webconsole


                      GroupID: 8
                      Report Type: hostgroup
                      Time Period: 86400
                      Temp image path: /tmp/zabbix_report_4xJYfP

                      skycrm(id:10105)
                      MySQL bandwidth(id:547)
                      MySQL operations(id:548)
                      CPU jumps(id:551)
                      CPU load(id:552)
                      CPU utilization(id:553)
                      Swap usage(id:554)
                      Memory usage(id:555)
                      Network traffic on eth1(id:566)
                      Disk space usage /(id:567)
                      Disk space usage /boot(id:568)
                      Disk space usage /var(id:569)
                      skydc(id:10107)
                      skyadc(id:10111)
                      pentaho(id:10112)
                      Sky-Firewall(id:10114)
                      itop(id:10115)
                      SKYERP(id:10135)
                      skymail(id:10137)
                      ./images/general/zabbix.png written to PDF-file ...Report ready - available as: http://192.168.10.159/report/reports/skylark.pdf

                      after that i go to the link and found there is no pdf

                      Comment

                      • martinm_76
                        Member
                        • Mar 2015
                        • 57

                        #221
                        Originally posted by selvakumaran
                        Hi Martin,
                        please find the output result from webconsole


                        GroupID: 8
                        Report Type: hostgroup
                        Time Period: 86400
                        Temp image path: /tmp/zabbix_report_4xJYfP

                        skycrm(id:10105)
                        MySQL bandwidth(id:547)
                        MySQL operations(id:548)
                        CPU jumps(id:551)
                        CPU load(id:552)
                        CPU utilization(id:553)
                        Swap usage(id:554)
                        Memory usage(id:555)
                        Network traffic on eth1(id:566)
                        Disk space usage /(id:567)
                        Disk space usage /boot(id:568)
                        Disk space usage /var(id:569)
                        skydc(id:10107)
                        skyadc(id:10111)
                        pentaho(id:10112)
                        Sky-Firewall(id:10114)
                        itop(id:10115)
                        SKYERP(id:10135)
                        skymail(id:10137)
                        ./images/general/zabbix.png written to PDF-file ...Report ready - available as: http://192.168.10.159/report/reports/skylark.pdf

                        after that i go to the link and found there is no pdf
                        Do you get file not found, an empty document or something else?
                        When you are in the directory where you installed the report (should be called report), please run:

                        ls -la
                        <copy output and send it>

                        ls -la reports
                        <copy output and send it>

                        Comment

                        • selvakumaran
                          Junior Member
                          • Dec 2014
                          • 22

                          #222
                          Zabbix Dynamic PDF Report Generation

                          Hi Martin,
                          please find the details

                          [root@ZABBIX report]# pwd
                          /var/www/html/report
                          [root@ZABBIX report]# ls -la
                          total 128
                          drwxr-xr-x 9 root root 4096 Mar 26 12:13 .
                          drwxr-xr-x. 4 root root 4096 Mar 26 12:13 ..
                          -rw-r--r-- 1 root root 3567 Mar 19 21:12 Changelog
                          -rw-r--r-- 1 root root 9928 Mar 15 21:22 chooser.copy.php
                          -rw-r--r-- 1 root root 10018 Mar 19 15:01 chooser.php
                          -rw-r--r-- 1 root root 1250 Mar 26 12:04 config.inc.php
                          -rw-r--r-- 1 root root 12227 Mar 19 21:11 createpdf.php
                          drwxr-xr-x 2 root root 4096 Mar 26 12:13 css
                          drwxr-xr-x 2 root root 4096 Mar 26 12:13 fonts
                          drwxr-xr-x 3 root root 4096 Mar 26 12:13 images
                          drwxr-xr-x 2 root root 4096 Mar 26 12:13 inc
                          -rw-r--r-- 1 root root 2678 Mar 19 14:58 index.php
                          drwxr-xr-x 2 root root 4096 Mar 26 12:13 js
                          -rw-r--r-- 1 root root 35120 Mar 27 2014 LICENSE
                          -rw-r--r-- 1 root root 209 Mar 15 21:14 logout.php
                          -rw-r--r-- 1 root root 119 Mar 27 2014 README.md
                          drwxr-xr-x 2 root root 4096 Mar 26 12:13 reports
                          drwxr-xr-x 2 root root 4096 Mar 26 12:13 tmp
                          [root@ZABBIX report]# cd /usr/share/zabbix/
                          [root@ZABBIX zabbix]# ls -la
                          total 1368
                          drwxr-xr-x. 15 root root 4096 Mar 26 15:12 .
                          drwxr-xr-x. 228 root root 12288 Mar 23 10:02 ..
                          -rw-r--r--. 1 root root 8434 Feb 23 17:58 acknow.php
                          -rw-r--r--. 1 root root 19607 Feb 23 17:58 actionconf.php
                          -rw-r--r--. 1 root root 5931 Feb 23 17:58 adm.gui.php
                          -rw-r--r--. 1 root root 7726 Feb 23 17:58 adm.housekeeper.php
                          -rw-r--r--. 1 root root 5627 Feb 23 17:58 adm.iconmapping.php
                          -rw-r--r--. 1 root root 5696 Feb 23 17:58 adm.images.php
                          -rw-r--r--. 1 root root 6302 Feb 23 17:58 adm.macros.php
                          -rw-r--r--. 1 root root 5137 Feb 23 17:58 adm.other.php
                          -rw-r--r--. 1 root root 8791 Feb 23 17:58 adm.regexps.php
                          -rw-r--r--. 1 root root 5211 Feb 23 17:58 adm.triggerdisplayoptions.php
                          -rw-r--r--. 1 root root 5303 Feb 23 17:58 adm.triggerseverities.php
                          -rw-r--r--. 1 root root 7149 Feb 23 17:58 adm.valuemapping.php
                          -rw-r--r--. 1 root root 2929 Feb 23 17:58 adm.workingtime.php
                          -rw-r--r--. 1 root root 2325 Feb 23 17:58 api_jsonrpc.php
                          -rw-r--r--. 1 root root 11391 Feb 23 17:58 applications.php
                          drwxr-xr-x. 2 root root 4096 Mar 13 12:03 audio
                          -rw-r--r--. 1 root root 5592 Feb 23 17:58 auditacts.php
                          -rw-r--r--. 1 root root 6108 Feb 23 17:58 auditlogs.php
                          -rw-r--r--. 1 root root 7838 Feb 23 17:58 authentication.php
                          -rw-r--r--. 1 root root 1122 Feb 23 17:58 browserwarning.php
                          -rw-r--r-- 1 root root 3567 Mar 19 21:12 Changelog
                          -rw-r--r--. 1 root root 4096 Feb 23 17:58 chart2.php
                          -rw-r--r--. 1 root root 6462 Feb 23 17:58 chart3.php
                          -rw-r--r--. 1 root root 5605 Feb 23 17:58 chart4.php
                          -rw-r--r--. 1 root root 6214 Feb 23 17:58 chart5.php
                          -rw-r--r--. 1 root root 3691 Feb 23 17:58 chart6.php
                          -rw-r--r--. 1 root root 3542 Feb 23 17:58 chart7.php
                          -rw-r--r--. 1 root root 20316 Feb 23 17:58 chart_bar.php
                          -rw-r--r--. 1 root root 3775 Feb 23 17:58 chart.php
                          -rw-r--r--. 1 root root 5006 Feb 23 17:58 charts.php
                          -rw-r--r-- 1 root root 9928 Mar 15 21:22 chooser.copy.php
                          -rw-r--r-- 1 root root 10018 Mar 19 15:01 chooser.php
                          drwxr-xr-x. 2 root root 4096 Mar 25 18:37 conf
                          -rwxr-xr-x 1 root root 1252 Mar 21 17:28 config.inc.php
                          -rw-r--r--. 1 root root 6651 Feb 23 17:58 conf.import.php
                          -rw-r--r-- 1 root root 12227 Mar 19 21:11 createpdf.php
                          drwxr-xr-x 2 root root 4096 Mar 20 20:09 css
                          -rw-r--r--. 1 root root 19304 Feb 23 17:58 dashboard.php
                          -rw-r--r--. 1 root root 6427 Feb 23 17:58 dashconf.php
                          -rw-r--r--. 1 root root 10957 Feb 23 17:58 discoveryconf.php
                          -rw-r--r--. 1 root root 4576 Feb 23 17:58 discovery.php
                          -rw-r--r--. 1 root root 18968 Feb 23 17:58 disc_prototypes.php
                          -rw-r--r--. 1 root root 26403 Feb 23 17:58 events.php
                          drwxr-xr-x. 2 root root 4096 Mar 20 20:09 fonts
                          -rw-r--r--. 1 root root 23101 Feb 23 17:58 graphs.php
                          -rw-r--r--. 1 root root 5860 Feb 23 17:58 history.php
                          -rw-r--r--. 1 root root 17497 Feb 23 17:58 host_discovery.php
                          -rw-r--r--. 1 root root 12690 Feb 23 17:58 hostgroups.php
                          -rw-r--r--. 1 root root 5233 Feb 23 17:58 hostinventoriesoverview.php
                          -rw-r--r--. 1 root root 8476 Feb 23 17:58 hostinventories.php
                          -rw-r--r--. 1 root root 15050 Feb 23 17:58 host_prototypes.php
                          -rw-r--r--. 1 root root 4154 Feb 23 17:58 host_screen.php
                          -rw-r--r--. 1 root root 34772 Feb 23 17:58 hosts.php
                          -rw-r--r--. 1 root root 23184 Feb 23 17:58 httpconf.php
                          -rw-r--r--. 1 root root 11559 Feb 23 17:58 httpdetails.php
                          -rw-r--r--. 1 root root 6174 Feb 23 17:58 httpmon.php
                          -rw-r--r--. 1 root root 1877 Feb 23 17:58 image.php
                          drwxr-xr-x. 5 root root 4096 Mar 20 20:09 images
                          -rw-r--r--. 1 root root 3166 Feb 23 17:58 imgstore.php
                          drwxr-xr-x 2 root root 4096 Mar 20 20:09 inc
                          drwxr-xr-x. 4 root root 4096 Mar 13 12:03 include
                          -rw-r--r--. 1 root root 3659 Feb 23 17:58 index.php
                          -rw-r--r--. 1 root root 51399 Feb 23 17:58 items.php
                          drwxr-xr-x. 5 root root 4096 Mar 13 12:03 js
                          -rw-r--r--. 1 root root 9940 Feb 23 17:58 jsLoader.php
                          -rw-r--r--. 1 root root 12525 Feb 23 17:58 jsrpc.php
                          drwxr-xr-x 2 root root 4096 Mar 20 20:09 js_test
                          -rw-r--r--. 1 root root 28699 Feb 23 17:58 latest.php
                          -rw-r--r-- 1 root root 35120 Mar 27 2014 LICENSE
                          drwxr-xr-x. 31 root root 4096 Mar 13 12:03 locale
                          -rw-r--r-- 1 root root 209 Mar 15 21:14 logout.php
                          -rw-r--r--. 1 root root 20866 Feb 23 17:58 maintenance.php
                          -rw-r--r--. 1 root root 6176 Feb 23 17:58 map.php
                          -rw-r--r--. 1 root root 4513 Feb 23 17:58 maps.php
                          -rw-r--r--. 1 root root 10878 Feb 23 17:58 media_types.php
                          -rw-r--r--. 1 root root 10718 Feb 23 17:58 overview.php
                          -rw-r--r--. 1 root root 6000 Feb 23 17:58 popup_bitem.php
                          -rw-r--r--. 1 root root 2856 Feb 23 17:58 popup_httpstep.php
                          -rw-r--r--. 1 root root 4482 Feb 23 17:58 popup_media.php
                          -rw-r--r--. 1 root root 5085 Feb 23 17:58 popup_period.php
                          -rw-r--r--. 1 root root 51529 Feb 23 17:58 popup.php
                          -rw-r--r--. 1 root root 3230 Feb 23 17:58 popup_right.php
                          -rw-r--r--. 1 root root 24593 Feb 23 17:58 popup_trexpr.php
                          -rw-r--r--. 1 root root 3037 Feb 23 17:58 popup_usrgrp.php
                          -rw-r--r--. 1 root root 7365 Feb 23 17:58 profile.php
                          -rw-r--r--. 1 root root 10068 Feb 23 17:58 proxies.php
                          -rw-r--r--. 1 root root 7628 Feb 23 17:58 queue.php
                          -rw-r--r-- 1 root root 119 Mar 27 2014 README.md
                          -rw-r--r--. 1 root root 1275 Feb 23 17:58 report1.php
                          -rw-r--r--. 1 root root 15271 Feb 23 17:58 report2.php
                          -rw-r--r--. 1 root root 5820 Feb 23 17:58 report3.php
                          -rw-r--r--. 1 root root 8049 Feb 23 17:58 report4.php
                          -rw-r--r--. 1 root root 5193 Feb 23 17:58 report5.php
                          -rw-r--r--. 1 root root 10504 Feb 23 17:58 report6.php
                          drwxr-xr-x 3 root root 4096 Mar 26 15:11 reports
                          -rw-r--r--. 1 root root 974 Feb 23 17:58 robots.txt
                          -rw-r--r--. 1 root root 9369 Feb 23 17:58 screenconf.php
                          -rw-r--r--. 1 root root 13723 Feb 23 17:58 screenedit.php
                          -rw-r--r--. 1 root root 5946 Feb 23 17:58 screens.php
                          -rw-r--r--. 1 root root 2079 Feb 23 17:58 scripts_exec.php
                          -rw-r--r--. 1 root root 10255 Feb 23 17:58 scripts.php
                          -rw-r--r--. 1 root root 14414 Feb 23 17:58 search.php
                          -rw-r--r--. 1 root root 17104 Feb 23 17:58 services.php
                          -rw-r--r--. 1 root root 4620 Feb 23 17:58 setup.php
                          -rw-r--r--. 1 root root 7255 Feb 23 17:58 slideconf.php
                          -rw-r--r--. 1 root root 7988 Feb 23 17:58 slides.php
                          -rw-r--r--. 1 root root 5261 Feb 23 17:58 srv_status.php
                          drwxr-xr-x. 3 root root 4096 Mar 13 12:03 styles
                          -rw-r--r--. 1 root root 5912 Feb 23 17:58 sysmap.php
                          -rw-r--r--. 1 root root 12058 Feb 23 17:58 sysmaps.php
                          -rw-r--r--. 1 root root 21238 Feb 23 17:58 templates.php
                          drwxr-xr-x 2 root root 4096 Mar 20 20:09 tmp
                          -rw-r--r--. 1 root root 3038 Feb 23 17:58 tr_comments.php
                          -rw-r--r--. 1 root root 5241 Feb 23 17:58 tr_events.php
                          -rw-r--r--. 1 root root 13310 Feb 23 17:58 trigger_prototypes.php
                          -rw-r--r--. 1 root root 17878 Feb 23 17:58 triggers.php
                          -rw-r--r--. 1 root root 12216 Feb 23 17:58 tr_logform.php
                          -rw-r--r--. 1 root root 26000 Feb 23 17:58 tr_status.php
                          -rw-r--r--. 1 root root 5924 Feb 23 17:58 tr_testexpr.php
                          -rw-r--r--. 1 root root 16111 Feb 23 17:58 usergrps.php
                          -rw-r--r--. 1 root root 14767 Feb 23 17:58 users.php
                          [root@ZABBIX zabbix]# pwd
                          /usr/share/zabbix
                          [root@ZABBIX zabbix]#

                          [root@ZABBIX report]# pwd
                          /var/www/html/report
                          [root@ZABBIX report]# ls -la reports
                          total 8
                          drwxr-xr-x 2 root root 4096 Mar 26 12:13 .
                          drwxr-xr-x 9 root root 4096 Mar 26 17:37 ..
                          [root@ZABBIX report]#

                          i've run the report from /var/www/html/report

                          zabbix installation path is /usr/share/zabbix

                          Comment

                          • martinm_76
                            Member
                            • Mar 2015
                            • 57

                            #223
                            Originally posted by selvakumaran
                            Hi Martin,
                            please find the details

                            [root@ZABBIX report]# pwd
                            /var/www/html/report
                            [root@ZABBIX report]# ls -la
                            <snip>
                            drwxr-xr-x 2 root root 4096 Mar 26 12:13 reports
                            drwxr-xr-x 2 root root 4096 Mar 26 12:13 tmp

                            [root@ZABBIX report]# pwd
                            /var/www/html/report
                            [root@ZABBIX report]# ls -la reports
                            total 8
                            drwxr-xr-x 2 root root 4096 Mar 26 12:13 .
                            drwxr-xr-x 9 root root 4096 Mar 26 17:37 ..
                            [root@ZABBIX report]#

                            i've run the report from /var/www/html/report

                            zabbix installation path is /usr/share/zabbix
                            Well well! Even though I uploaded the archive as tgz specifically to avoid the issue with tmp and reports needing permissions changed, for some reason yours are incorrect.

                            The easy solution, and the one that should have already been there, is:

                            Code:
                            cd /var/www/html/report
                            chmod 777 tmp
                            chmod 777 reports
                            That should fix it.

                            Comment

                            • selvakumaran
                              Junior Member
                              • Dec 2014
                              • 22

                              #224
                              Zabbix Dynamic PDF Report Generation

                              Hi Martin,
                              now it is working. thanks for your wonderful support.


                              Is it possible to schedule report and send to mail

                              Comment

                              • martinm_76
                                Member
                                • Mar 2015
                                • 57

                                #225
                                Originally posted by selvakumaran
                                Hi Martin,
                                now it is working. thanks for your wonderful support.


                                Is it possible to schedule report and send to mail
                                Look back to my original reply with wget and mail examples.

                                Then check:
                                man 1 wget
                                man 1 mail
                                man 5 crontab

                                You exit 'man' by pressing 'q'

                                You should have the information you require then.

                                I also highly recommend going through the book 'Linux in a nut shell' to get a good foothold on the basics of Linux in general.

                                By Ellen Siever, Stephen Figgins, Robert Love, Arnold Robbins. Everything you need to know about Linux is in this book. Written by Stephen Figgins, Ellen Siever, Robert Love, and Arnold Robbins -- people with years of active participation in t...

                                Comment

                                Working...