2.2.1. No graphs available
Hello,
I run zabbix_server 2.2.1 fresh install on Debian 7.0.3 (GNU/linux-3.2.51-1 x86_64), php 5.4.4-14+deb7u7.
PDF report was successfully generated but no graphs were included.
Error log says:
[error] [client 11.22.33.44] PHP Warning: fopen(/tmp_images/All_671.png): failed to open stream: No such file or directory in /usr/share/zabbix/generatereport.php on line 45, referer: http://zabbix.example.com/pdfform.php
[error] [client 11.22.33.44] PHP Warning: fwrite() expects parameter 1 to be resource, boolean given in /usr/share/zabbix/generatereport.php on line 46, referer: http://zabbix.example.com/pdfform.php
[error] [client 11.22.33.44] PHP Warning: fclose() expects parameter 1 to be resource, boolean given in /usr/share/zabbix/generatereport.php on line 47, referer: http://zabbix.example.com/pdfform.php
Looks like some of PHP functions does not work correctly.
other info:
-Does not work with zabbix_report_generation 0.3 beta
-Does not work with adjusted zabbix_report_generation from answer ID #100 (the same symptoms like 0.3 beta)
tmp_cookies, tmp_images and data.txt are running with following permissions:
-rwxrwxrwx 1 root www-data
config.inc.php
<?php
//CONFIGURABLE
# zabbix server info(user must have API access)
$z_server = 'http://zabbix.example.com';
$z_user = 'admin';
$z_pass = '***********';
# tmp_images directory path
$z_img_path = '/tmp_images/';
# should be the tail of the URL
$pdf_location = $z_server ."/pdf.php";
# paper settings
$paper_format = 'LETTER'; // formats supported: 4A0, 2A0, A0 -> A10, B0 -> B10, C0 -> C10, RA0 -> RA4, SRA0 -> SRA4, LETTER, LEGAL, EXECUTIVE, FOLIO
$paper_oreintation = 'portrait'; // formats supported: portrait / landscape
# time zone
$timezone = 'CET';
//DO NOT CHANGE BELOW THIS LINE
$z_tmp_cookies = "";
$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";
$data = './data.txt';
?>
Could anyone tell me what is wrong?
Thank you
Hello,
I run zabbix_server 2.2.1 fresh install on Debian 7.0.3 (GNU/linux-3.2.51-1 x86_64), php 5.4.4-14+deb7u7.
PDF report was successfully generated but no graphs were included.
Error log says:
[error] [client 11.22.33.44] PHP Warning: fopen(/tmp_images/All_671.png): failed to open stream: No such file or directory in /usr/share/zabbix/generatereport.php on line 45, referer: http://zabbix.example.com/pdfform.php
[error] [client 11.22.33.44] PHP Warning: fwrite() expects parameter 1 to be resource, boolean given in /usr/share/zabbix/generatereport.php on line 46, referer: http://zabbix.example.com/pdfform.php
[error] [client 11.22.33.44] PHP Warning: fclose() expects parameter 1 to be resource, boolean given in /usr/share/zabbix/generatereport.php on line 47, referer: http://zabbix.example.com/pdfform.php
Looks like some of PHP functions does not work correctly.
other info:
-Does not work with zabbix_report_generation 0.3 beta
-Does not work with adjusted zabbix_report_generation from answer ID #100 (the same symptoms like 0.3 beta)
tmp_cookies, tmp_images and data.txt are running with following permissions:
-rwxrwxrwx 1 root www-data
config.inc.php
<?php
//CONFIGURABLE
# zabbix server info(user must have API access)
$z_server = 'http://zabbix.example.com';
$z_user = 'admin';
$z_pass = '***********';
# tmp_images directory path
$z_img_path = '/tmp_images/';
# should be the tail of the URL
$pdf_location = $z_server ."/pdf.php";
# paper settings
$paper_format = 'LETTER'; // formats supported: 4A0, 2A0, A0 -> A10, B0 -> B10, C0 -> C10, RA0 -> RA4, SRA0 -> SRA4, LETTER, LEGAL, EXECUTIVE, FOLIO
$paper_oreintation = 'portrait'; // formats supported: portrait / landscape
# time zone
$timezone = 'CET';
//DO NOT CHANGE BELOW THIS LINE
$z_tmp_cookies = "";
$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";
$data = './data.txt';
?>
Could anyone tell me what is wrong?
Thank you

Comment