Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Zabbix 2.4 HTTP Auth #13

Closed
ncarl opened this issue Jun 2, 2015 · 4 comments
Closed

Zabbix 2.4 HTTP Auth #13

ncarl opened this issue Jun 2, 2015 · 4 comments
Assignees
Labels

Comments

@ncarl
Copy link

ncarl commented Jun 2, 2015

Hello,

Trying this API with Zabbix 2.4. Works great with "Internal" authentication. When I try to use HTTP authentication, it is giving me issues.

Below are a couple tests, let me know if you have any suggestions or need me to run additional tests. Thanks!

TEST1
$api = new ZabbixApi('https://managedhpc.x-iss.com/zabbix/api_jsonrpc.php','','','ncarl','PASSWORDHERE');

RESULT1
API error -32602: Not authorised.

TEST2
$api = new ZabbixApi('https://managedhpc.x-iss.com/zabbix/api_jsonrpc.php','ncarl','PASSWORDHERE','ncarl','PASSWORDHERE');

RESULT2
Could not connect to "https://managedhpc.x-iss.com/zabbix/api_jsonrpc.php"

@domibarton domibarton self-assigned this Jun 3, 2015
@domibarton domibarton added the bug label Jun 3, 2015
@domibarton
Copy link
Member

Hi

Thanks for the report!
I found the bug, will be fixed in a few minutes!

Cheers
Domi

domibarton added a commit that referenced this issue Jun 3, 2015
domibarton added a commit that referenced this issue Jun 3, 2015
@domibarton
Copy link
Member

Hi

Should be fixed now in the branch'd version, can you try it again with the new files and give me some feedback?

You can find them here: https://github.com/confirm-it-solutions/PhpZabbixApi/tree/2.4

Cheers
Domi

@ncarl
Copy link
Author

ncarl commented Jun 3, 2015

Hi Domi,

The new branch version worked with HTTP authentication.

Thanks!
Nick

@domibarton
Copy link
Member

Thanks for your reply. I'll create a new tag.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants