-
-
Notifications
You must be signed in to change notification settings - Fork 31
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-vsphere-import cannot create a new host #100
Comments
Hey Bodo, Can you please post your From the error above it seems that one of the groups for Virtual Machines is Do you get this error for all Virtual Machines or just specific ones? Thanks, |
Hello Marin Sure, I removed the "proxy:" line because it was the same error with the line and without proxy. Thanks for your help vsphere: vpoller: zabbix: vsphere_object_host: vsphere_object_vm: vsphere_object_datastore: |
Hi Bodo, Can you please try changing the Zabbix group in the Also, is this issue happening for all Virtual Machines or just specific ones? Thanks, |
Hello Marin Than the script trys to create the group but fails. [2014-10-31 12:43:38,529] - INFO - Creating Zabbix host group 'Virtual Machines' I tryed it with a groupname "VM". It happens to all VMs. Regards |
Hey Bodo, That's strange, because On what environment is your Zabbix infra running? Windows? Please provide more details about your Zabbix environment, so that I can try to test and reproduce it. Thanks, |
Hello Marin Ubuntu 14.04.1 LTS Is that enough information? Regards |
Hi Bodo, Please check your Zabbix & Database logs and see whether there are any errors reported when you experience this issue. So far, I am not able to re-produce this issue on my side. Regards, |
Hello Marin OK in the morning I updated my zabbix-server to 2.2.7. include <libxml/parser.h>
compilation terminated. But after that everything went fine. But now to the import script: With debug in zabbix-server-log is also nothing. mysql> SELECT g.* FROM groups g WHERE g.groupid='6'; It's the same sessionid: Big thanks for your help. |
Hey Bodo, I think I see what the problem is. In your API request to Zabbix for host creation for some reason one of the hostgroup of the VM to be created is This is the portion of the request to Zabbix, which shows an incorrect group:
The Are you running the Can you please comment lines 394 and 395 of the
Let me know of the results when ready. |
Hey Bodo, I've just pushed a fix for this issue in the latest Thanks, |
Hello Marin Yes that's it! Thanks for the help! Regards |
Hallo
My problem is the vsphere import script.
Autodiscover and also the import of datastores runs perfect, but not the import of hosts.
I get the following error:
[2014-10-31 07:40:40,323] - WARNING - [vSphere VirtualMachine] Cannot create host in Zabbix: (u'Error -32500: Application error., No permissions to referred object or it does not exist! while sending {"params": {"templates": [{"templateid": "10419"}], "proxy_hostid": null, "interfaces": [{"ip": "127.0.0.1", "useip": 1, "dns": "", "main": 1, "type": 1, "port": "10050"}], "macros": [{"macro": "{$VSPHERE.HOST}", "value": "infra-abg-esxi1.psi.de"}], "host": "VM-ON-ESXI", "groups": [{"groupid": "6"}, {"groupid": null}]}, "jsonrpc": "2.0", "method": "host.create", "auth": "63dc0b74023978e067684883e03472e2", "id": 7}', -32500)
The user is Zabbix Super Admin and the datastore was created so everything with the rights should be fine.
After google'ing I get no solution, so I hope you can help me, because the feature is exactly what I need.
Regards
Bodo
The text was updated successfully, but these errors were encountered: