Update zabbix.api.php
This commit is contained in:
parent
8abc0be61b
commit
7b71a3cccb
|
@ -45,7 +45,7 @@ if(!check_function_exists("zabbix_authenticate")) {
|
||||||
|
|
||||||
// connect to zabbix server
|
// connect to zabbix server
|
||||||
if(loadHelper("webpagetool")) {
|
if(loadHelper("webpagetool")) {
|
||||||
$response = get_web_json($zabbix_api_url, "jsonrpc2", array(
|
$response = get_web_json($zabbix_api_url, "jsonrpc2.cache", array(
|
||||||
"method" => "user.login",
|
"method" => "user.login",
|
||||||
"params" => array(
|
"params" => array(
|
||||||
"user" => $cnf['username'],
|
"user" => $cnf['username'],
|
||||||
|
@ -75,7 +75,7 @@ if(!check_function_exists("zabbix_retrieve_hosts")) {
|
||||||
|
|
||||||
// connect to zabbix server
|
// connect to zabbix server
|
||||||
if(loadHelper("webpagetool")) {
|
if(loadHelper("webpagetool")) {
|
||||||
$response = get_web_json($zabbix_api_url, "jsonrpc2", array(
|
$response = get_web_json($zabbix_api_url, "jsonrpc2.cache", array(
|
||||||
"method" => "host.get",
|
"method" => "host.get",
|
||||||
"params" => array(
|
"params" => array(
|
||||||
"output" => array("hostid", "host"),
|
"output" => array("hostid", "host"),
|
||||||
|
@ -104,7 +104,7 @@ if(!check_function_exists("zabbix_get_items")) {
|
||||||
|
|
||||||
// connect to zabbix server
|
// connect to zabbix server
|
||||||
if(loadHelper("webpagetool")) {
|
if(loadHelper("webpagetool")) {
|
||||||
$response = get_web_json($zabbix_api_url, "jsonrpc2", array(
|
$response = get_web_json($zabbix_api_url, "jsonrpc2.cache", array(
|
||||||
"method" => "host.get",
|
"method" => "host.get",
|
||||||
"params" => array(
|
"params" => array(
|
||||||
"selectInventory" => true,
|
"selectInventory" => true,
|
||||||
|
@ -139,7 +139,7 @@ if(!check_function_exists("zabbix_get_problems")) {
|
||||||
|
|
||||||
// connect to zabbix server
|
// connect to zabbix server
|
||||||
if(loadHelper("webpagetool")) {
|
if(loadHelper("webpagetool")) {
|
||||||
$response = get_web_json($zabbix_api_url, "jsonrpc2", array(
|
$response = get_web_json($zabbix_api_url, "jsonrpc2.cache", array(
|
||||||
"method" => "problem.get",
|
"method" => "problem.get",
|
||||||
"params" => array(
|
"params" => array(
|
||||||
"output" => "extend",
|
"output" => "extend",
|
||||||
|
@ -175,7 +175,7 @@ if(!check_function_exists("zabbix_get_triggers")) {
|
||||||
$zabbix_auth = get_scope("zabbix_auth");
|
$zabbix_auth = get_scope("zabbix_auth");
|
||||||
|
|
||||||
if(loadHelper("webpagetool")) {
|
if(loadHelper("webpagetool")) {
|
||||||
$response = get_web_json($zabbix_api_url, "jsonrpc2", array(
|
$response = get_web_json($zabbix_api_url, "jsonrpc2.cache", array(
|
||||||
"method" => "trigger.get",
|
"method" => "trigger.get",
|
||||||
"params" => array(
|
"params" => array(
|
||||||
"hostids" => $hostids,
|
"hostids" => $hostids,
|
||||||
|
|
Loading…
Reference in New Issue
Block a user