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