Giter Club home page Giter Club logo

zabbix-dynamic-pdf-report's Introduction

zabbix-dynamic-pdf-report

This originates from https://github.com/spy86/Zabbix_/zabbix-dynamic-pdf-report and the goal of this fork is to create a standalone git repository together with some installation instructions.

Also to make sure it works 100% with Zabbix 3.0 (LTS)

Goals

  • Make it work with 3.0 (LTS) - possibly
  • Make it work with 3.4 - likely
  • Make it work with 4.0 (LTS) - yes, please

Installation

#copy sample to real config
cp config.inc.sample.php config.inc.php

#edit to match your environment
nano config.inc.php

You might need to change timezone in /var/www/html/zabbix-dynamic-pdf-report/createpdf.php

develop

  • clone https://github.com/kmpm/zabbix-dynamic-pdf-report
  • Install PHP sudo apt-get install php7.0 php7.0-cli

zabbix-dynamic-pdf-report's People

Contributors

kmpm avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

zabbix-dynamic-pdf-report's Issues

Error access URL

When I ran URL :
http://172.16.xxx.xxx/zabbix/zabbix-dynamic-pdf-report/index.php or http://172.16.xxx.xxx/zabbix/zabbix-dynamic-pdf-report

Same Results :
CURL URL: http://127.0.0.1/zabbix/api_jsonrpc.php
CURL Options: Array ( [19913] => 1 [13] => 30 [78] => 5 [81] => [64] => [52] => 1 [74] => 1 [10023] => Array ( [0] => Content-Type: application/json-rpc [1] => User-Agent: ZabbixAPI v1.0 - http://andrewfarley.com/zabbix_php_api ) [10036] => POST [10015] => {"auth":null,"method":"user.login","id":1,"params":{"password":"XXX!","user":"XXX"},"jsonrpc":"2.0"} [10102] => gzip ) Got response from API: ({"jsonrpc":"2.0","result":"1b4d5c50cc5ec4d7d93cc06f32a5dcf5","id":1}) Response decoded: (Array ( [jsonrpc] => 2.0 [result] => 1b4d5c50cc5ec4d7d93cc06f32a5dcf5 [id] => 1 ) __login() Got response from API: (1b4d5c50cc5ec4d7d93cc06f32a5dcf5) CURL URL: http://127.0.0.1/zabbix/api_jsonrpc.php
CURL Options: Array ( [19913] => 1 [13] => 30 [78] => 5 [81] => [64] => [52] => 1 [74] => 1 [10023] => Array ( [0] => Content-Type: application/json-rpc [1] => User-Agent: ZabbixAPI v1.0 - http://andrewfarley.com/zabbix_php_api ) [10036] => POST [10015] => {"auth":"1b4d5c50cc5ec4d7d93cc06f32a5dcf5","method":"host.get","id":1,"params":{"output":["hostid","name"],"sortfield":"name","with_graphs":"1"},"jsonrpc":"2.0"} [10102] => gzip ) Got response from API: ({"jsonrpc":"2.0","result":[{"hostid":"10291","name":"FW1 Stormshield"},{"hostid":"10084","name":"Zabbix server"},{"hostid":"10285","name":"[BRIDOR] vrh6-asi-dbBRIDOR"},{"hostid":"10273","name":"[SCALANDES] vrh6-asi-asSCMM"},{"hostid":"10272","name":"[SCALANDES] vrh6-asi-dbSCMM"},{"hostid":"10274","name":"[SOGESMA] vw2k12-asi-DBSO"}],"id":1}) Response decoded: (Array ( [jsonrpc] => 2.0 [result] => Array ( [0] => Array ( [hostid] => 10291 [name] => FW1 Stormshield ) [1] => Array ( [hostid] => 10084 [name] => Zabbix server ) [2] => Array ( [hostid] => 10285 [name] => [BRIDOR] vrh6-asi-dbBRIDOR ) [3] => Array ( [hostid] => 10273 [name] => [SCALANDES] vrh6-asi-asSCMM ) [4] => Array ( [hostid] => 10272 [name] => [SCALANDES] vrh6-asi-dbSCMM ) [5] => Array ( [hostid] => 10274 [name] => [SOGESMA] vw2k12-asi-DBSO ) ) [id] => 1 ) CURL URL: http://127.0.0.1/zabbix/api_jsonrpc.php

Config :
Zabbix 4
PHP 7.2 :
php72-php-json-7.2.15-1.el7.remi.x86_64
php-xml-7.2.15-1.el7.remi.x86_64
php-ldap-7.2.15-1.el7.remi.x86_64
php-bcmath-7.2.15-1.el7.remi.x86_64
php-7.2.15-1.el7.remi.x86_64
php-devel-7.2.15-1.el7.remi.x86_64
php72-runtime-2.0-1.el7.remi.x86_64
php72-php-common-7.2.15-1.el7.remi.x86_64
php-json-7.2.15-1.el7.remi.x86_64
php-cli-7.2.15-1.el7.remi.x86_64
php-process-7.2.15-1.el7.remi.x86_64
php-pdo-7.2.15-1.el7.remi.x86_64
php-pecl-mysql-1.0.0-0.17.20160812git230a828.el7.remi.7.2.x86_64
php-mbstring-7.2.15-1.el7.remi.x86_64
php-gd-7.2.15-1.el7.remi.x86_64
php-pear-1.10.8-1.el7.remi.noarch
php-pear-Net-Curl-1.2.5-10.el7.noarch
php-common-7.2.15-1.el7.remi.x86_64
php-fedora-autoloader-1.0.0-1.el7.noarch
php-mysqlnd-7.2.15-1.el7.remi.x86_64

Any ideas please ?
Thank's

Incorrect method "user.authenticate"

Hi,
Did any configure on zabbix server?
I found error blow when use this product.My ZABBIX SERVER's version is 3.0 and I have try on php version 5.5 and 7.0.
Unable to login: Array ( [code] => -32602 [message] => Invalid params. [data] => Incorrect method "user.authenticate". )

Blank spaces appear between the graphs

Hello,

I have a problem with generating a report. Blank spaces appear between the graphs.
Screens bellow:

screen1
screen2

Can you help me ?

I'm using Zabbix 3.2.6
Apache2 + php 5.6

Sending reports to email and an error I have

Hello I am following the steps in the walkthrough but not able to execute these commands:

user@ipaddress:/opt/Zabbix_/zabbix-dynamic-pdf-report$ sed ­i "s,user.authenticate,user.login,g" inc/ZabbixAPI.class.php
sed: -e expression #1, char 1: unknown command: `▒'


Also, how do I send the PDF to email?

Report generation hangs for host group

While creating report for host group with a bunch of hosts in it, after certain time the process is stuck. Upon enabling debug mode, found that reports are generated for some hosts and get stuck.

The page keeps loading but never successfully completes the report.

Issue in date selection in Custom Report

Hi,

I've configured 'zabbix-dynamic-pdf-report' & it's giving proper details while generating report for fixed timing. But while trying to generate Custom report, when i select date, it's displaying. But nest moment when i'm going to next tab (i.e. time) for selecting time, the date entry is getting vanished.

Kindly suggest.

Regards,
Saumyajit
issue

Unable to get Proper Graph

Hi,

I'm using the code v0.4 & I'm unable to get graph more than 1 hour. I've tested with the latest versions, but I'm not getting any graph apart from OS Template graphs. Kindly advice how can I fix both the issue. Thank you.

Unable to logout: Array ( [code] => -32602 [message]

I couldn't generate report as I get following error on access:

Unable to logout: Array ( [code] => -32602 [message] => Invalid params. [data] => Invalid parameter "/": unexpected parameter "user". )

Zabbix version: 3.4.9
OS: Centos 7
PHP version: 5.4.16
Apache error:
[Thu Jun 28 12:06:22.360632 2018] [:error] [pid 8219] [client 192.168.56.1:20787] PHP Warning: Creating default object from empty value in /usr/share/zabbix/pdfreport/inc/ZabbixAPI.class.php on line 122

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.