Hi all,
I want to be able to add a proxy by importing its xml for automation purposes.
It looks like proxies are located in the zabbixdb.hosts table and the only big difference is its 'status' field has a value of '5' ('0' for hosts, '3' templates).
As an experiment I have this xml template for a host that I am able to import without issue.
After removing the host I just imported, I then changed only the following lines in the above xml:
When I try to import, it fails and gives the following error:
Any ideas how I can force it to import a proxy through xml?
Thanks!
I want to be able to add a proxy by importing its xml for automation purposes.
It looks like proxies are located in the zabbixdb.hosts table and the only big difference is its 'status' field has a value of '5' ('0' for hosts, '3' templates).
As an experiment I have this xml template for a host that I am able to import without issue.
Code:
<?xml version="1.0" encoding="UTF-8"?>
<zabbix_export version="1.0">
<hosts>
<host name="TEST--host">
<useip>1</useip>
<dns></dns>
<ip>0.0.0.0</ip>
<port>10050</port>
<status>0</status>
<useipmi>0</useipmi>
<ipmi_ip></ipmi_ip>
<ipmi_port>623</ipmi_port>
<ipmi_authtype>0</ipmi_authtype>
<ipmi_privilege>2</ipmi_privilege>
</host>
</hosts>
<dependencies/>
</zabbix_export>
After removing the host I just imported, I then changed only the following lines in the above xml:
Code:
<port>10051</port>
<status>5</status>
Code:
[ CHost::massAdd ] You do not have enough rights for operation [ CHost::create ]
Any ideas how I can force it to import a proxy through xml?
Thanks!