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

API Error #544

Closed
icroseland opened this issue Sep 25, 2018 · 0 comments · Fixed by #730
Closed

API Error #544

icroseland opened this issue Sep 25, 2018 · 0 comments · Fixed by #730

Comments

@icroseland
Copy link

Affected Puppet, Ruby, OS and module versions/distributions

  • Puppet: 5.5.3
  • Ruby: ruby 2.4.4p296 (2018-03-28 revision 63013) [x86_64-linux]
  • Distribution: CentOS Linux release 7.5.1804
  • Module version: 6.4.2

setting up zabbix server with a super minimal class right now..
class { 'zabbix':
zabbix_url => 'test0.local',
manage_resources => $manage_resources,
}
}

This is totally failing to manage the resources.

Error: Could not set 'present' on ensure: Server answer API error
{
"code": -32602,
"message": "Invalid params.",
"data": "Incorrect arguments passed to function."
}
on request:
{
"method": "host.update",
"params": [
{
"host": "test1.local",
"interfaces": [
{
"type": 1,
"main": 1,
"ip": null,
"dns": "test1.local",
"port": "10050",
"useip": 1
}
],
"templates": [
10001,
10102
],
"groups": [
{
"groupid": 15
}
],
"hostid": 10254
}
],
"id": 37574,
"jsonrpc": "2.0",
"auth": "cec4529954ff855133c82ac6fb43e0f0"
}

I would like to think I am doing something wrong.. But even the zabbixapi gem is having problems, as I end up needing to "fix" the gem to get this far.. As it was doing this..

Error: /Stage[main]/Zabbix::Resources::Web/Zabbix_host[test1.local]: Could not evaluate: Zabbix API version: 3.4.14 is not support by this version of zabbixapi

Should I be forcing to older versions to get this to work?

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

Successfully merging a pull request may close this issue.

1 participant