Hi All,
I'm new to Zabbix. I have installed Zabbix 4.0 recently on centOs and it is running good. I wanted to generate zabbix report in PDF and came across this link " https://github.com/martinm76/zabbix-pdf-report " by martinm76. I downloaded and configured based on the instructions in that link. But still I'm not able to launch report UI.It says 404 not found.
Here is want I did.
1. Download https://github.com/martinm76/zabbix-pdf-report and unzipped in /etc/zabbix as root user.
[root@localhost zabbix]# ls
web zabbix-pdf-report-master zabbix-pdf-report-master.zip zabbix_server.conf zabbix_server.conf.bak
[root@localhost zabbix]#
[root@localhost zabbix]# cd zabbix-pdf-report-master/
[root@localhost zabbix-pdf-report-master]# ls
Changelog chooser.php config.inc.php config.inc.php.dist createpdf.php css fixrights.sh fonts images inc index.php js LICENSE logout.php README.md reports tmp
[root@localhost zabbix-pdf-report-master]#
2. Ran fixrights.sh script which created reports and tmp dir in /etc/zabbix/zabbix-pdf-report-master/ folder
3. Configured config.inc.php variables .
$user_login=0;
# zabbix server info(user must have API access)
// $z_server = 'http://localhost/zabbix/';
$z_server = 'http://10.x.x.x/zabbix/'; // Replace YourServerHere with either en IP or an FDQN (e.g. zabbix.company.com). Remove the s in https if for some reason you don't use https yet. Or better yet, get Let's Encrypt installed and use https!
$z_user = 'Admin';
$z_pass = 'zabbix';
# Temporary directory for storing pdf data and graphs - must exist
$z_tmp_path = './tmp';
# Directory for storing PDF reports
$pdf_report_dir = './reports';
# Root URL to reports
#$pdf_report_url = $z_server ."report/reports";
$pdf_report_url = "./reports";
4) I have php5.4 installed
[root@localhost zabbix-pdf-report-master]# rpm -qa | grep php
php-mysql-5.4.16-46.el7.x86_64
php-gd-5.4.16-46.el7.x86_64
php-common-5.4.16-46.el7.x86_64
php-5.4.16-46.el7.x86_64
php-bcmath-5.4.16-46.el7.x86_64
php-cli-5.4.16-46.el7.x86_64
php-ldap-5.4.16-46.el7.x86_64
php-mbstring-5.4.16-46.el7.x86_64
php-xml-5.4.16-46.el7.x86_64
php-pdo-5.4.16-46.el7.x86_64
5) I have curl
[root@localhost zabbix-pdf-report-master]# curl --version
curl 7.29.0 (x86_64-redhat-linux-gnu) libcurl/7.29.0 NSS/3.36 zlib/1.2.7 libidn/1.28 libssh2/1.4.3
Protocols: dict file ftp ftps gopher http https imap imaps ldap ldaps pop3 pop3s rtsp scp sftp smtp smtps telnet tftp
Features: AsynchDNS GSS-Negotiate IDN IPv6 Largefile NTLM NTLM_WB SSL libz unix-sockets
[root@localhost zabbix]# php -i | grep -i curl
/etc/php.d/curl.ini,
curl
cURL support => enabled
cURL Information => 7.29.0
My questions are
1) what is the proper value for $pdf_report_url in my case?
2) What will be the url to lanuch reports UI?
3) I unzipped package as root user. Is this correct?.
4) do I need php-curl even though I have curl?
Spent so much of time on fixing it but no use. I need helping hand please.
I'm new to Zabbix. I have installed Zabbix 4.0 recently on centOs and it is running good. I wanted to generate zabbix report in PDF and came across this link " https://github.com/martinm76/zabbix-pdf-report " by martinm76. I downloaded and configured based on the instructions in that link. But still I'm not able to launch report UI.It says 404 not found.
Here is want I did.
1. Download https://github.com/martinm76/zabbix-pdf-report and unzipped in /etc/zabbix as root user.
[root@localhost zabbix]# ls
web zabbix-pdf-report-master zabbix-pdf-report-master.zip zabbix_server.conf zabbix_server.conf.bak
[root@localhost zabbix]#
[root@localhost zabbix]# cd zabbix-pdf-report-master/
[root@localhost zabbix-pdf-report-master]# ls
Changelog chooser.php config.inc.php config.inc.php.dist createpdf.php css fixrights.sh fonts images inc index.php js LICENSE logout.php README.md reports tmp
[root@localhost zabbix-pdf-report-master]#
2. Ran fixrights.sh script which created reports and tmp dir in /etc/zabbix/zabbix-pdf-report-master/ folder
3. Configured config.inc.php variables .
$user_login=0;
# zabbix server info(user must have API access)
// $z_server = 'http://localhost/zabbix/';
$z_server = 'http://10.x.x.x/zabbix/'; // Replace YourServerHere with either en IP or an FDQN (e.g. zabbix.company.com). Remove the s in https if for some reason you don't use https yet. Or better yet, get Let's Encrypt installed and use https!
$z_user = 'Admin';
$z_pass = 'zabbix';
# Temporary directory for storing pdf data and graphs - must exist
$z_tmp_path = './tmp';
# Directory for storing PDF reports
$pdf_report_dir = './reports';
# Root URL to reports
#$pdf_report_url = $z_server ."report/reports";
$pdf_report_url = "./reports";
4) I have php5.4 installed
[root@localhost zabbix-pdf-report-master]# rpm -qa | grep php
php-mysql-5.4.16-46.el7.x86_64
php-gd-5.4.16-46.el7.x86_64
php-common-5.4.16-46.el7.x86_64
php-5.4.16-46.el7.x86_64
php-bcmath-5.4.16-46.el7.x86_64
php-cli-5.4.16-46.el7.x86_64
php-ldap-5.4.16-46.el7.x86_64
php-mbstring-5.4.16-46.el7.x86_64
php-xml-5.4.16-46.el7.x86_64
php-pdo-5.4.16-46.el7.x86_64
5) I have curl
[root@localhost zabbix-pdf-report-master]# curl --version
curl 7.29.0 (x86_64-redhat-linux-gnu) libcurl/7.29.0 NSS/3.36 zlib/1.2.7 libidn/1.28 libssh2/1.4.3
Protocols: dict file ftp ftps gopher http https imap imaps ldap ldaps pop3 pop3s rtsp scp sftp smtp smtps telnet tftp
Features: AsynchDNS GSS-Negotiate IDN IPv6 Largefile NTLM NTLM_WB SSL libz unix-sockets
[root@localhost zabbix]# php -i | grep -i curl
/etc/php.d/curl.ini,
curl
cURL support => enabled
cURL Information => 7.29.0
My questions are
1) what is the proper value for $pdf_report_url in my case?
2) What will be the url to lanuch reports UI?
3) I unzipped package as root user. Is this correct?.
4) do I need php-curl even though I have curl?
Spent so much of time on fixing it but no use. I need helping hand please.
Comment