Closed krzysztof-sz closed 4 months ago
My guess is that nginx is not running as the apache user and you need to make a change to adapt to that. There may be a SELinux boolean for nginx that needs to be set as well. Not sure.
y en apache como soluciono ese problema
Are the graphs written correctly? I believe the temporary files are usually deleted when the report is done, so you will probably need to comment out that bit to verify.
From the looks of this, the most likely cause is either not being able to access the file, the file being corrupt (or perhaps 0 bytes, which in a manner of speaking is corrupt). Verify that the temp directory is writable by the process nginx is running as.
On Wed, 24 Mar 2021 at 12:56, krzysztof-sz @.***> wrote:
Graphs are not displayed for me. It works ok but the graphs are empty. Below is the nginx log:
@. inc]# nginx -v nginx version: nginx/1.14.1 @. inc]# rpm -qa | grep php php-xml-7.2.24-1.module_el8.2.0+313+b04d0a66.x86_64 php-ldap-7.2.24-1.module_el8.2.0+313+b04d0a66.x86_64 php-common-7.2.24-1.module_el8.2.0+313+b04d0a66.x86_64 php-json-7.2.24-1.module_el8.2.0+313+b04d0a66.x86_64 php-mysqlnd-7.2.24-1.module_el8.2.0+313+b04d0a66.x86_64 php-fpm-7.2.24-1.module_el8.2.0+313+b04d0a66.x86_64 php-bcmath-7.2.24-1.module_el8.2.0+313+b04d0a66.x86_64 php-pdo-7.2.24-1.module_el8.2.0+313+b04d0a66.x86_64 php-mbstring-7.2.24-1.module_el8.2.0+313+b04d0a66.x86_64 php-gd-7.2.24-1.module_el8.2.0+313+b04d0a66.x86_64
I changed in log host and address ip zabbix on zabbix-ip.
@. inc]# tail /var/log/nginx/error.log PHP message: PHP Notice: getimagesize(): Read error! in /usr/share/zabbix/zabbix-pdf-report/inc/class.ezpdf.php on line 1320 PHP message: PHP Notice: getimagesize(): Read error! in /usr/share/zabbix/zabbix-pdf-report/inc/class.ezpdf.php on line 1320 PHP message: PHP Notice: getimagesize(): Read error! in /usr/share/zabbix/zabbix-pdf-report/inc/class.ezpdf.php on line 1320 PHP message: PHP Notice: getimagesize(): Read error! in /usr/share/zabbix/zabbix-pdf-report/inc/class.ezpdf.php on line 1320 PHP message: PHP Notice: getimagesize(): Read error! in /usr/share/zabbix/zabbix-pdf-report/inc/class.ezpdf.php on line 1320 PHP message: PHP Notice: getimagesize(): Read error! in /usr/share/zabbix/zabbix-pdf-report/inc/class.ezpdf.php on line 1320 PHP message: PHP Notice: getimagesize(): Read error! in /usr/share/zabbix/zabbix-pdf-report/inc/class.ezpdf.php on line 1320 PHP message: PHP Notice: getimagesize(): Read error! in /usr/share/zabbix/zabbix-pdf-report/inc/class.ezpdf.php on line 1320" while reading response header from upstream, client: 10.0.91.78, server: example.com, request: "GET /zabbix-pdf-report/createpdf.php?ReportType=host&HostID=10329&GraphsOn=yes&ItemsOn=yes&mygraphs2=%23%28System+local+time%7CPing%7CCPU+load%7CCPU+usage%7CCPU+util%7Cprocessor%7CDisk+space%7CSwap%7CEthernet%7CMemory+usage%7C%5ETraffic+on+%7Ctraffic+on+eth%29%23&myitems2=%23%28System+local+time%7CUtilization+of%7Cfarm+connection%7CAverage+Latency%7CNumber+of+processes%7CCache+%25+Hit%29%23&ReportRange=last&timePeriod=Day HTTP/1.1", upstream: "fastcgi://unix:/run/php-fpm/zabbix.sock:", host: "zabbix-ip", referrer: "http://zabbix-ip/zabbix-pdf-report/chooser.php" 2021/03/24 12:41:19 [error] 943#0: 150908 FastCGI sent in stderr: "PHP message: PHP Notice: getimagesize(): Read error! in /usr/share/zabbix/zabbix-pdf-report/inc/class.ezpdf.php on line 1320" while reading response header from upstream, client: 10.0.91.78, server: example.com, request: "GET /zabbix-pdf-report/createpdf.php?ReportType=host&HostID=10329&GraphsOn=yes&mygraphs2=%23%28MSSQL%3A+Auto-params%29%23&myitems2=%23%28System+local+time%7CUtilization+of%7Cfarm+connection%7CAverage+Latency%7CNumber+of+processes%7CCache+%25+Hit%29%23&ReportRange=last&timePeriod=Day HTTP/1.1", upstream: "fastcgi://unix:/run/php-fpm/zabbix.sock:", host: "zabbix-ip", referrer: "http://zabbix-ip/zabbix-pdf-report/chooser.php" 2021/03/24 12:43:02 [error] 943#0: 150908 FastCGI sent in stderr: "PHP message: PHP Notice: getimagesize(): Read error! in /usr/share/zabbix/zabbix-pdf-report/inc/class.ezpdf.php on line 1320" while reading response header from upstream, client: 10.0.91.78, server: example.com, request: "GET /zabbix-pdf-report/createpdf.php?ReportType=host&HostID=10329&GraphsOn=yes&mygraphs2=%23%28MSSQL%3A+Auto-params%29%23&myitems2=%23%28System+local+time%7CUtilization+of%7Cfarm+connection%7CAverage+Latency%7CNumber+of+processes%7CCache+%25+Hit%29%23&ReportRange=last&timePeriod=Day HTTP/1.1", upstream: "fastcgi://unix:/run/php-fpm/zabbix.sock:", host: "zabbix-ip", referrer: "http://zabbix-ip/zabbix-pdf-report/chooser.php" @. inc]#
— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/martinm76/zabbix-pdf-report/issues/23, or unsubscribe https://github.com/notifications/unsubscribe-auth/ACWMJDUYMKL225776M4UXG3TFHHQRANCNFSM4ZXDN5WQ .
-- Venlig hilsen/Best Regards,
/Martin Møller
Again, missing further input to fix the issue for nearly two years. Closing this.
Graphs are not displayed for me. It works ok but the graphs are empty.
Below is the nginx log: I changed in log host and address ip zabbix on zabbix-ip.
[root@vm-Zabbix inc]# tail /var/log/nginx/error.log PHP message: PHP Notice: getimagesize(): Read error! in /usr/share/zabbix/zabbix-pdf-report/inc/class.ezpdf.php on line 1320 PHP message: PHP Notice: getimagesize(): Read error! in /usr/share/zabbix/zabbix-pdf-report/inc/class.ezpdf.php on line 1320 PHP message: PHP Notice: getimagesize(): Read error! in /usr/share/zabbix/zabbix-pdf-report/inc/class.ezpdf.php on line 1320 PHP message: PHP Notice: getimagesize(): Read error! in /usr/share/zabbix/zabbix-pdf-report/inc/class.ezpdf.php on line 1320 PHP message: PHP Notice: getimagesize(): Read error! in /usr/share/zabbix/zabbix-pdf-report/inc/class.ezpdf.php on line 1320 PHP message: PHP Notice: getimagesize(): Read error! in /usr/share/zabbix/zabbix-pdf-report/inc/class.ezpdf.php on line 1320 PHP message: PHP Notice: getimagesize(): Read error! in /usr/share/zabbix/zabbix-pdf-report/inc/class.ezpdf.php on line 1320 PHP message: PHP Notice: getimagesize(): Read error! in /usr/share/zabbix/zabbix-pdf-report/inc/class.ezpdf.php on line 1320" while reading response header from upstream, client: 10.0.91.78, server: example.com, request: "GET /zabbix-pdf-report/createpdf.php?ReportType=host&HostID=10329&GraphsOn=yes&ItemsOn=yes&mygraphs2=%23%28System+local+time%7CPing%7CCPU+load%7CCPU+usage%7CCPU+util%7Cprocessor%7CDisk+space%7CSwap%7CEthernet%7CMemory+usage%7C%5ETraffic+on+%7Ctraffic+on+eth%29%23&myitems2=%23%28System+local+time%7CUtilization+of%7Cfarm+connection%7CAverage+Latency%7CNumber+of+processes%7CCache+%25+Hit%29%23&ReportRange=last&timePeriod=Day HTTP/1.1", upstream: "fastcgi://unix:/run/php-fpm/zabbix.sock:", host: "zabbix-ip", referrer: "http://zabbix-ip/zabbix-pdf-report/chooser.php" 2021/03/24 12:41:19 [error] 943#0: *150908 FastCGI sent in stderr: "PHP message: PHP Notice: getimagesize(): Read error! in /usr/share/zabbix/zabbix-pdf-report/inc/class.ezpdf.php on line 1320" while reading response header from upstream, client: 10.0.91.78, server: example.com, request: "GET /zabbix-pdf-report/createpdf.php?ReportType=host&HostID=10329&GraphsOn=yes&mygraphs2=%23%28MSSQL%3A+Auto-params%29%23&myitems2=%23%28System+local+time%7CUtilization+of%7Cfarm+connection%7CAverage+Latency%7CNumber+of+processes%7CCache+%25+Hit%29%23&ReportRange=last&timePeriod=Day HTTP/1.1", upstream: "fastcgi://unix:/run/php-fpm/zabbix.sock:", host: "zabbix-ip", referrer: "http://zabbix-ip/zabbix-pdf-report/chooser.php" 2021/03/24 12:43:02 [error] 943#0: *150908 FastCGI sent in stderr: "PHP message: PHP Notice: getimagesize(): Read error! in /usr/share/zabbix/zabbix-pdf-report/inc/class.ezpdf.php on line 1320" while reading response header from upstream, client: 10.0.91.78, server: example.com, request: "GET /zabbix-pdf-report/createpdf.php?ReportType=host&HostID=10329&GraphsOn=yes&mygraphs2=%23%28MSSQL%3A+Auto-params%29%23&myitems2=%23%28System+local+time%7CUtilization+of%7Cfarm+connection%7CAverage+Latency%7CNumber+of+processes%7CCache+%25+Hit%29%23&ReportRange=last&timePeriod=Day HTTP/1.1", upstream: "fastcgi://unix:/run/php-fpm/zabbix.sock:", host: "zabbix-ip", referrer: "http://zabbix-ip/zabbix-pdf-report/chooser.php" [root@vm-Zabbix inc]#