Open sumaullagaddi opened 6 years ago
Zabbix Server version is : 3.0.18
Hi,
The issue was due to Template Name mismatch for one of the templates in Zabbix UI and puppet zabbix manifest. Hence the template id was null and was resulting in this error.
This can be closed as it is not an issue with module as such.
Regards, Suma Ullagaddi
Affected Puppet, Ruby, OS and module versions/distributions
How to reproduce (e.g Puppet code you use)
When we try to add a host to zabbix we can see the error
What are you seeing
Facing the below error when puppet is run on zabbix server
Could not set 'present' on ensure: Server answer API error { "code": -32500, "message": "Application error.", "data": "No permissions to referred object or it does not exist!" }
Below is the method: { "method": "host.create", "params": [ { "host": "testhost", "interfaces": [ { "type": 1, "main": 1, "ip": "10.10.10.10", "dns": "testhost", "port": "10050", "useip": 1 } ], "status": 0, "available": 1, "groups": [ { "groupid": 2 } ], "proxy_hostid": null, "templates": [ null, 10102 ] } ], "id": 675, "jsonrpc": "2.0", "auth": "714923066456add8e45ae8854b4df1dc" }
What behaviour did you expect instead
Host should be added to the server and should be available in zabbix GUI
Output log
Any additional information you'd like to impart