Hello,
thanks for this PDF creation tool.
I set it up. But I have the same error like user cottirola and @tabalag.
zabbix_server (Zabbix) 4.4.7 on
Distributor ID: Debian
Description: Debian GNU/Linux 10 (buster)
Release: 10
Codename: buster
php7.3-curl 7.3.14-1~deb10u1
php7.3-json 7.3.14-1
When I'm try to connect to http://myzabbixserver/zabbix/zabbix-.../createpdf.php I see this message in the /apache2/error.log.
And this on the webpage.
Try to connect to http://myzabbixserver/zabbix/zabbix-...rt/chooser.php
I can see the form but I'm not able to select something. Above the form I see the following lines.
Thanks for your help.
thanks for this PDF creation tool.
I set it up. But I have the same error like user cottirola and @tabalag.
zabbix_server (Zabbix) 4.4.7 on
Distributor ID: Debian
Description: Debian GNU/Linux 10 (buster)
Release: 10
Codename: buster
php7.3-curl 7.3.14-1~deb10u1
php7.3-json 7.3.14-1
When I'm try to connect to http://myzabbixserver/zabbix/zabbix-.../createpdf.php I see this message in the /apache2/error.log.
HTML Code:
[Thu Apr 16 07:47:26.119554 2020] [php7:notice] [pid 36387] [client IP:50268] PHP Notice: Undefined variable: starttime in /usr/share/zabbix/zabbix-pdf-report/createpdf.php on line 114 [Thu Apr 16 07:47:26.119667 2020] [php7:notice] [pid 36387] [client IP:50268] PHP Notice: Undefined variable: endtime in /usr/share/zabbix/zabbix-pdf-report/createpdf.php on line 115 [Thu Apr 16 07:47:26.119888 2020] [php7:warn] [pid 36387] [client IP:50268] PHP Warning: get_class() expects parameter 1 to be object, null given in /usr/share/zabbix/zabbix-pdf-report/inc/ZabbixAPI.class.php on line 208 [Thu Apr 16 07:47:26.139667 2020] [php7:notice] [pid 36387] [client IP:50268] PHP Notice: Undefined variable: reporttype in /usr/share/zabbix/zabbix-pdf-report/createpdf.php on line 162 [Thu Apr 16 07:47:26.139735 2020] [php7:notice] [pid 36387] [client IP:50268] PHP Notice: Undefined variable: reporttype in /usr/share/zabbix/zabbix-pdf-report/createpdf.php on line 172
HTML Code:
CURL URL: http://myzabbixserver/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":"password","user":"username"},"jsonrpc":"2.0"} [10102] => gzip ) Got response from API: ({"jsonrpc":"2.0","result":"c7bdf02f0ebad48f445a2537d141b8d9","id":1}) Response decoded: (Array ( [jsonrpc] => 2.0 [result] => c7bdf02f0ebad48f445a2537d141b8d9 [id] => 1 ) __login() Got response from API: (c7bdf02f0ebad48f445a2537d141b8d9) Report type not selected!
Try to connect to http://myzabbixserver/zabbix/zabbix-...rt/chooser.php
I can see the form but I'm not able to select something. Above the form I see the following lines.
HTML Code:
CURL URL: http://myzabbixserver/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":"pass","user":"username"},"jsonrpc":"2.0"} [10102] => gzip ) Got response from API: ({"jsonrpc":"2.0","result":"4ff6684817001590a24d0f41dc8cd42d","id":1}) Response decoded: (Array ( [jsonrpc] => 2.0 [result] => 4ff6684817001590a24d0f41dc8cd42d [id] => 1 ) __login() Got response from API: (4ff6684817001590a24d0f41dc8cd42d)
CURL URL: http://myzabbixserverzabbix/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":"4ff6684817001590a24d0f41dc8cd42d","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":[],"id":1}) Response decoded: (Array ( [jsonrpc] => 2.0 [result] => Array ( ) [id] => 1 )
CURL URL: http://myzabbixserver/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":"4ff6684817001590a24d0f41dc8cd42d","method":"hostgroup.get","id":1,"params":{"output":["groupid","name"],"real_hosts":"1","with_graphs":"1","sortfield":"name"},"jsonrpc":"2.0"} [10102] => gzip ) Got response from API: ({"jsonrpc":"2.0","result":[],"id":1}) Response decoded: (Array ( [jsonrpc] => 2.0 [result] => Array ( ) [id] => 1 )
CURL URL: http://myzabbixserver/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":"4ff6684817001590a24d0f41dc8cd42d","method":"user.logout","id":1,"params":[],"jsonrpc":"2.0"} [10102] => gzip ) Got response from API: ({"jsonrpc":"2.0","result":true,"id":1}) Response decoded: (Array ( [jsonrpc] => 2.0 [result] => 1 [id] => 1 ) __logout() Got response from API: (1)
Thanks for your help.
Comment