Installation instruction
Hi!
First of all, I want to thank martinm_76 and other people who had a hand in this project. I've been looking for a reporting tool for quite a long time, and this one is great.
However, it was difficult for me to get started. How-to section, honestly, isn't really helpful, and I had to read lots of messages on this forum to find out all installation steps. And I can see that I'm not the only one.
So, I want to clarify author's How-to to help other people.
I also want to mention that I've just registred in this forum, so my text formatting skills can be horrible... and my English isn't the best as well.
Installation
1) Clone repo to /usr/share/zabbix/ (you may also create inner directory, e.g. custom_pages, and place repo there):
2) Create tmp and reports folders with proper rights by running script:
3) Copy config.inc.php.dist to config.inc.php and configure the latter:
4) Make sure you have php-curl and php-json packages installed.
5) Restart apache:
6) Now you should be able to access PDF report generation page using a URL like this:
http://x.x.x.x/zabbix/zabbix-pdf-report, where x.x.x.x is your Zabbix server IP.
7) You may also create a Zabbix screen to make using zabbix-pdf-report more convenient. In zabbix web-interface go to Screens -> Create New. Create a new 1 row 1 column screen with width and height of 800x600 / Centre / Top. Set Resource as URL:
If you have SELinux being active on the system and fail to get the PDF's generated, try disabling SELinux for a while:
A little bit about usage
Most of the elements of zabbix-pdf-report web-interface are quite clear. But I think that "Graphs to show" and "Items to graph" text fields can be tricky. So I want to explain this part:
Default content here is actually regular expressions with hash signs (#) as delimiters. So you may enter partial matches instead of complete names. Use vertical line (|) to separate names.
NB: Regexps are case sensitive by default. Use ignore case flag (i) to change case sensitivity.
Hi!
First of all, I want to thank martinm_76 and other people who had a hand in this project. I've been looking for a reporting tool for quite a long time, and this one is great.
However, it was difficult for me to get started. How-to section, honestly, isn't really helpful, and I had to read lots of messages on this forum to find out all installation steps. And I can see that I'm not the only one.
So, I want to clarify author's How-to to help other people.
I also want to mention that I've just registred in this forum, so my text formatting skills can be horrible... and my English isn't the best as well.
Installation
1) Clone repo to /usr/share/zabbix/ (you may also create inner directory, e.g. custom_pages, and place repo there):
Code:
sudo git clone https://github.com/martinm76/zabbix-pdf-report /usr/share/zabbix/zabbix-pdf-report cd /usr/share/zabbix/zabbix-pdf-report
Code:
sudo ./fixrights.sh
Code:
sudo cp config.inc.php.dist config.inc.php sudo nano config.inc.php
5) Restart apache:
Code:
sudo service apache2 restart
http://x.x.x.x/zabbix/zabbix-pdf-report, where x.x.x.x is your Zabbix server IP.
7) You may also create a Zabbix screen to make using zabbix-pdf-report more convenient. In zabbix web-interface go to Screens -> Create New. Create a new 1 row 1 column screen with width and height of 800x600 / Centre / Top. Set Resource as URL:
If you have SELinux being active on the system and fail to get the PDF's generated, try disabling SELinux for a while:
Code:
setenforce 0
Most of the elements of zabbix-pdf-report web-interface are quite clear. But I think that "Graphs to show" and "Items to graph" text fields can be tricky. So I want to explain this part:
Default content here is actually regular expressions with hash signs (#) as delimiters. So you may enter partial matches instead of complete names. Use vertical line (|) to separate names.
NB: Regexps are case sensitive by default. Use ignore case flag (i) to change case sensitivity.

Comment