Report in PDF is empty

  • hello


    i have a new server for test thruk 2.12-3 and my report is empty


    centos 7.3
    thruk 2.12-3


    thruk.conf :
    show_error_reports = both
    phantomjs = /usr/share/thruk/script/phantomjs


    ls -l /usr/share/thruk/script/phantomjs
    -rwxr-xr-x. 1 root root 67932064 20 déc. 22:21 /usr/share/thruk/script/phantomjs


    <Component Thruk::Plugin::Reports2>
    report_nice_level = 5
    max_concurrent_reports = 2
    report_base_url = host.local/thruk/cgi-bin/
    pnp_export = /usr/share/thruk/script/pnp_export.sh
    report_from_email = "Thruk Report System" <noreply-report@xxxx.xxxx>
    default_template = host_sla.tt
    </Component>



    ls -l /usr/share/thruk/script/pnp_export.sh
    -rwxr-xr-x 1 root root 1124 9 janv. 16:44 /usr/share/thruk/script/pnp_export.sh



    view report preview OK
    PDF NOK

  • RPT file :


    {
    "backends" : [
    {
    "xxxx" : "xxxxx"
    }
    ],
    "cc" : "",
    "desc" : "Description",
    "failed_backends" : "cancel",
    "is_public" : 0,
    "name" : "RAPPORT SUP 2",
    "params" : {
    "assumeinitialstates" : "yes",
    "breakdown" : "days",
    "decimals" : "2",
    "details_max_level" : "-1",
    "graph_min_sla" : "99",
    "host" : "xxxxxxx",
    "includesoftstates" : "no",
    "initialassumedservicestate" : "6",
    "language" : "fr",
    "max_outages_pages" : "1",
    "max_pnp_sources" : "20",
    "max_worst_pages" : "1",
    "rpttimeperiod" : "24x7",
    "service" : "",
    "sla" : "99",
    "t1" : 1482683340,
    "t2" : 1482769740,
    "timeperiod" : "lastweek",
    "unavailable" : [
    "critical",
    "unknown"
    ]
    },
    "send_types" : [
    {
    "cust" : "",
    "day" : "1",
    "hour" : "1",
    "minute" : "0",
    "month_day" : "1st_Monday",
    "type" : "week",
    "week_day" : "1"
    }
    ],
    "template" : "sla_service.tt",
    "to" : "xxxxx@xxxx.xxx",
    "user" : "xxxxxx",
    "var" : {
    "attachment" : "",
    "ctype" : "html2pdf",
    "end_time" : 1484043673,
    "file_exists" : 1,
    "is_running" : 0,

  • i have installed html2ps and it's work.


    It is because I install centos in minimal version?

  • Here is the non exhaustive list :


    Installation déps. ImageMagick-6.7.8.9-15.el7_2.x86_64
    Installation déps. ImageMagick-perl-6.7.8.9-15.el7_2.x86_64
    Installation déps. OpenEXR-libs-1.7.1-7.el7.x86_64
    Installation déps. cairo-1.14.2-1.el7.x86_64
    Installation déps. cups-libs-1:1.6.3-26.el7.x86_64
    Installation déps. gdk-pixbuf2-2.31.6-3.el7.x86_64
    Installation déps. ghostscript-9.07-20.el7_3.1.x86_64
    Installation déps. ghostscript-fonts-5.50-32.el7.noarch
    Installation déps. graphite2-1.3.6-1.el7_2.x86_64
    Installation déps. harfbuzz-0.9.36-1.el7.x86_64
    Installation html2ps-1.0-0.14.b7.el7.noarch
    Installation déps. ilmbase-1.0.3-7.el7.x86_64
    Installation déps. jasper-libs-1.900.1-29.el7.x86_64
    Installation déps. jbigkit-libs-2.0-11.el7.x86_64
    Installation déps. lcms2-2.6-3.el7.x86_64
    Installation déps. libICE-1.0.9-2.el7.x86_64
    Installation déps. libSM-1.2.2-2.el7.x86_64
    Installation déps. libXaw-1.0.12-5.el7.x86_64
    Installation déps. libXdamage-1.1.4-4.1.el7.x86_64
    Installation déps. libXext-1.3.3-3.el7.x86_64
    Installation déps. libXfixes-5.0.1-2.1.el7.x86_64
    Installation déps. libXfont-1.5.1-2.el7.x86_64
    Installation déps. libXft-2.3.2-2.el7.x86_64
    Installation déps. libXmu-1.1.2-2.el7.x86_64
    Installation déps. libXrender-0.9.8-2.1.el7.x86_64
    Installation déps. libXt-1.1.4-6.1.el7.x86_64
    Installation déps. libXxf86vm-1.1.3-2.1.el7.x86_64
    Installation déps. libfontenc-1.1.2-3.el7.x86_64
    Installation déps. libpaper-1.1.24-8.el7.x86_64
    Installation déps. librsvg2-2.39.0-1.el7.x86_64
    Installation déps. libthai-0.1.14-9.el7.x86_64
    Installation déps. libtiff-4.0.3-25.el7_2.x86_64
    Installation déps. libtool-ltdl-2.4.2-21.el7_2.x86_64
    Installation déps. libwmf-lite-0.2.8.4-41.el7_1.x86_64
    Installation déps. libxshmfence-1.2-1.el7.x86_64
    Installation déps. mesa-libEGL-11.2.2-2.20160614.el7.x86_64
    Installation déps. mesa-libGL-11.2.2-2.20160614.el7.x86_64
    Installation déps. mesa-libgbm-11.2.2-2.20160614.el7.x86_64
    Installation déps. mesa-libglapi-11.2.2-2.20160614.el7.x86_64
    Installation déps. openjpeg-libs-1.5.1-10.el7.x86_64
    Installation déps. pango-1.36.8-2.el7.x86_64
    Installation déps. perl-Business-ISBN-2.06-2.el7.noarch
    Installation déps. perl-Business-ISBN-Data-20120719.001-2.el7.noarch
    Installation déps. perl-Compress-Raw-Bzip2-2.061-3.el7.x86_64
    Installation déps. perl-Compress-Raw-Zlib-1:2.061-4.el7.x86_64
    Installation déps. perl-Digest-1.17-245.el7.noarch
    Installation déps. perl-Digest-MD5-2.52-3.el7.x86_64
    Installation déps. perl-Encode-Locale-1.03-5.el7.noarch
    Installation déps. perl-File-Listing-6.04-7.el7.noarch
    Installation déps. perl-HTML-Parser-3.71-4.el7.x86_64
    Installation déps. perl-HTML-Tagset-3.20-15.el7.noarch
    Installation déps. perl-HTTP-Cookies-6.01-5.el7.noarch
    Installation déps. perl-HTTP-Daemon-6.01-5.el7.noarch
    Installation déps. perl-HTTP-Date-6.02-8.el7.noarch
    Installation déps. perl-HTTP-Message-6.06-6.el7.noarch
    Installation déps. perl-HTTP-Negotiate-6.01-5.el7.noarch
    Installation déps. perl-IO-Compress-2.061-2.el7.noarch
    Installation déps. perl-IO-HTML-1.00-2.el7.noarch
    Installation déps. perl-IO-Socket-IP-0.21-4.el7.noarch
    Installation déps. perl-IO-Socket-SSL-1.94-5.el7.noarch
    Installation déps. perl-LWP-MediaTypes-6.02-2.el7.noarch
    Installation déps. perl-Net-HTTP-6.06-2.el7.noarch
    Installation déps. perl-Net-LibIDN-0.12-15.el7.x86_64
    Installation déps. perl-Net-SSLeay-1.55-4.el7.x86_64
    Installation déps. perl-TimeDate-1:2.30-2.el7.noarch
    Installation déps. perl-URI-1.60-9.el7.noarch
    Installation déps. perl-WWW-RobotRules-6.02-5.el7.noarch
    Installation déps. perl-libwww-perl-6.05-2.el7.noarch
    Installation déps. pixman-0.34.0-1.el7.x86_64
    Installation déps. poppler-0.26.5-16.el7.x86_64
    Installation déps. poppler-data-0.4.6-3.el7.noarch
    Installation déps. texlive-amsfonts-2:svn29208.3.04-38.el7.noarch
    Installation déps. texlive-base-2:2012-38.20130427_r30134.el7.noarch
    Installation déps. texlive-bibtex-2:svn26689.0.99d-38.el7.noarch
    Installation déps. texlive-bibtex-bin-2:svn26509.0-38.20130427_r30134.el7.x86_64
    Installation déps. texlive-cm-2:svn29581.0-38.el7.noarch
    Installation déps. texlive-collection-basic-2:svn26314.0-38.20130427_r30134.el7.noarch
    Installation déps. texlive-collection-documentation-base-2:svn17091.0-38.20130427_r30134.el7.noarch
    Installation déps. texlive-dvipdfm-2:svn26689.0.13.2d-38.el7.noarch
    Installation déps. texlive-dvipdfm-bin-2:svn13663.0-38.20130427_r30134.el7.noarch
    Installation déps. texlive-dvipdfmx-2:svn26765.0-38.el7.noarch
    Installation déps. texlive-dvipdfmx-bin-2:svn26509.0-38.20130427_r30134.el7.x86_64
    Installation déps. texlive-dvipdfmx-def-2:svn15878.0-38.el7.noarch
    Installation déps. texlive-dvips-2:svn29585.0-38.el7.noarch
    Installation déps. texlive-dvips-bin-2:svn26509.0-38.20130427_r30134.el7.x86_64
    Installation déps. texlive-enctex-2:svn28602.0-38.el7.noarch
    Installation déps. texlive-etex-2:svn22198.2.1-38.el7.noarch
    Installation déps. texlive-etex-pkg-2:svn15878.2.0-38.el7.noarch
    Installation déps. texlive-glyphlist-2:svn28576.0-38.el7.noarch
    Installation déps. texlive-gsftopk-2:svn26689.1.19.2-38.el7.noarch
    Installation déps. texlive-gsftopk-bin-2:svn26509.0-38.20130427_r30134.el7.x86_64
    Installation déps. texlive-hyph-utf8-2:svn29641.0-38.el7.noarch
    Installation déps. texlive-hyphen-base-2:svn29197.0-38.el7.noarch
    Installation déps. texlive-ifluatex-2:svn26725.1.3-38.el7.noarch
    Installation déps. texlive-ifxetex-2:svn19685.0.5-38.el7.noarch
    Installation déps. texlive-kpathsea-2:svn28792.0-38.el7.noarch
    Installation déps. texlive-kpathsea-bin-2:svn27347.0-38.20130427_r30134.el7.x86_64
    Installation déps. texlive-kpathsea-lib-2:2012-38.20130427_r30134.el7.x86_64
    Installation déps. texlive-latex-fonts-2:svn28888.0-38.el7.noarch
    Installation déps. texlive-lua-alt-getopt-2:svn29349.0.7.0-38.el7.noarch
    Installation déps. texlive-luatex-2:svn26689.0.70.1-38.el7.noarch
    Installation déps. texlive-luatex-bin-2:svn26912.0-38.20130427_r30134.el7.x86_64
    Installation déps. texlive-makeindex-2:svn26689.2.12-38.el7.noarch
    Installation déps. texlive-makeindex-bin-2:svn26509.0-38.20130427_r30134.el7.x86_64
    Installation déps. texlive-metafont-2:svn26689.2.718281-38.el7.noarch
    Installation déps. texlive-metafont-bin-2:svn26912.0-38.20130427_r30134.el7.x86_64
    Installation déps. texlive-mflogo-2:svn17487.0-38.el7.noarch
    Installation déps. texlive-mfware-2:svn26689.0-38.el7.noarch
    Installation déps. texlive-mfware-bin-2:svn26509.0-38.20130427_r30134.el7.x86_64
    Installation déps. texlive-misc-2:svn24955.0-38.el7.noarch
    Installation déps. texlive-pdftex-2:svn29585.1.40.11-38.el7.noarch
    Installation déps. texlive-pdftex-bin-2:svn27321.0-38.20130427_r30134.el7.x86_64
    Installation déps. texlive-plain-2:svn26647.0-38.el7.noarch
    Installation déps. texlive-tetex-2:svn29585.3.0-38.el7.noarch
    Installation déps. texlive-tetex-bin-2:svn27344.0-38.20130427_r30134.el7.noarch
    Installation déps. texlive-tex-2:svn26689.3.1415926-38.el7.noarch
    Installation déps. texlive-tex-bin-2:svn26912.0-38.20130427_r30134.el7.x86_64
    Installation déps. texlive-texconfig-2:svn29349.0-38.el7.noarch
    Installation déps. texlive-texconfig-bin-2:svn27344.0-38.20130427_r30134.el7.noarch
    Installation déps. texlive-texlive.infra-2:svn28217.0-38.el7.noarch
    Installation déps. texlive-texlive.infra-bin-2:svn22566.0-38.20130427_r30134.el7.x86_64
    Installation déps. texlive-xdvi-2:svn26689.22.85-38.el7.noarch
    Installation déps. texlive-xdvi-bin-2:svn26509.0-38.20130427_r30134.el7.x86_64
    Installation déps. urw-fonts-2.4-16.el7.noarch
    Installation déps. xorg-x11-font-utils-1:7.5-20.el7.x86_64
    Installation déps. zziplib-0.13.62-5.el7.x86_64

  • ok i have a new install of thruk 2.12-3


    i have install all perl-* mentionned above

    i restart thruk

    I restarted the report

    always empty


    i have install all textlive-* mentionned above

    i restart thruk

    I restarted the report

    always empty


    i have install restart install html2ps

    i restart thruk

    I restarted the report

    report is ok


    Here are the last dependencies of html2ps


    ImageMagick
    ImageMagick-perl
    OpenEXR-libs
    cups-libs
    gdk-pixbuf2
    ghostscript
    ghostscript-fonts
    graphite2
    harfbuzz
    ilmbase
    jasper-libs
    libXfont
    libXft
    libfontenc
    libpaper
    librsvg2
    libthai
    libtool-ltdl
    libwmf-lite
    pango
    urw-fonts
    xorg-x11-font-utils

    The post was edited 1 time, last by rirouxe ().