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; + } +}