Hello,
I've previously followed this guide and had it functioning on a prebuild Zabbix ISO.
I'm trying to reimplement it on a fresh Ubuntu version of Zabbix, however i keep running into issues.
I've read that it is an authentication issue, but my user and password are correct. Also i've tried with the URL as both http://192.168.105.248/zabbix/api_jsonrpc.php and http://192.168.105.248/api_jsonrpc.php
Can someone please give me some input?? This is really frustrating me and i can't find anything online.
Also when i put print $res before line 62 i get this:


^ With http://192.168.105.248/zabbix/api_jsonrpc.php

^ with http://192.168.105.248/api_jsonrpc.php
I've previously followed this guide and had it functioning on a prebuild Zabbix ISO.
I'm trying to reimplement it on a fresh Ubuntu version of Zabbix, however i keep running into issues.
I've read that it is an authentication issue, but my user and password are correct. Also i've tried with the URL as both http://192.168.105.248/zabbix/api_jsonrpc.php and http://192.168.105.248/api_jsonrpc.php
Can someone please give me some input?? This is really frustrating me and i can't find anything online.
Also when i put print $res before line 62 i get this:
Code:
HTTP/1.1 200 OK
Date: Thu, 02 Oct 2014 16:21:07 GMT
Server: Apache/2.4.7 (Ubuntu)
X-Powered-By: PHP/5.5.9-1ubuntu4.4
Access-Control-Allow-Origin: *
Access-Control-Allow-Headers: Content-Type
Access-Control-Allow-Methods: POST
Access-Control-Max-Age: 1000
Content-Length: 125
Content-Type: application/json
{"jsonrpc":"2.0","error":{"code":-32602,"message":"Invalid params.","data":"Incorrect method \"user.authenticate\"."},"id":0}
HTTP/1.1 200 OK
Date: Thu, 02 Oct 2014 16:21:07 GMT
Server: Apache/2.4.7 (Ubuntu)
X-Powered-By: PHP/5.5.9-1ubuntu4.4
Access-Control-Allow-Origin: *
Access-Control-Allow-Headers: Content-Type
Access-Control-Allow-Methods: POST
Access-Control-Max-Age: 1000
Content-Length: 101
Content-Type: application/json
{"jsonrpc":"2.0","error":{"code":-32602,"message":"Invalid params.","data":"Not authorised."},"id":1}


^ With http://192.168.105.248/zabbix/api_jsonrpc.php

^ with http://192.168.105.248/api_jsonrpc.php
Comment