From 025f22d7f1b380f04db886d3fb6f062104555a27 Mon Sep 17 00:00:00 2001 From: "Namhyeon, Go" Date: Mon, 8 Apr 2019 10:19:23 +0900 Subject: [PATCH] Update zabbix.rpc.php --- helper/zabbix.rpc.php | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) diff --git a/helper/zabbix.rpc.php b/helper/zabbix.rpc.php index e1bfbd7..dfec4b0 100644 --- a/helper/zabbix.rpc.php +++ b/helper/zabbix.rpc.php @@ -1,3 +1,34 @@ array( + "Content-Type" => "application/json-rpc", + ), + "data" => array( + "jsonrpc" => "2.0", + "method" => "user.login", + "params" => array( + "user" => $username, + "password" => $password, + ), + "id" => 1, + "auth" => null, + ), + )); + } + + return $response; + } +}