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

An IP address is required for a zabbix host #160

Closed
rnelson0 opened this issue Feb 1, 2016 · 0 comments · Fixed by #162
Closed

An IP address is required for a zabbix host #160

rnelson0 opened this issue Feb 1, 2016 · 0 comments · Fixed by #162

Comments

@rnelson0
Copy link
Member

rnelson0 commented Feb 1, 2016

In #133, the default $listenip value was removed. When this is not present, the following error is observed:

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.create",
  "params": [
    {
      "host": "zabbix.nelson.va",
      "interfaces": [
        {
          "type": 1,
          "main": 1,
          "ip": null,
          "dns": "zabbix.nelson.va",
          "port": "10050",
          "useip": 1
        }
      ],
      "status": 0,
      "available": 1,
      "groups": [
        {
          "groupid": 2
        }
      ],
      "proxy_hostid": null,
      "templates": [
        10001,
        10102
      ]
    }
  ],
  "id": 8903,
  "jsonrpc": "2.0",
  "auth": "752a36e6c48997194ee8b7ecb813fc40"
} at 27:/etc/puppetlabs/code/environments/zabbix/modules/zabbix/manifests/resources/agent.pp

By replacing the else{} block, this functions properly. PR forthcoming.

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