*Hi,
I am migrating from Nagios to Zabbix, and I would like to migrate the data about the monitored hosts in Nagios, to the Zabbix database.
I know there is an API but it is in draft state , so I prefer not to use this API and instead I would like to insert the data directly into the zabbix database.
So I would like to have more information about zabbix database tables and dependencies
In particular I'd like to know which steps are required in order to create a host in zabbix?
The host have some associated groups and templates, but does not have asociated profiles, extended profiles nor associated macros.
Is it enough to perform the insert operations only in the following tables?
or do I need something else?
1)insert a row into 'hosts' table
2)for each group the host is associated with, insert a row into hosts_group
3)for each template the host is associated with
insert a row into 'hosts_templates' table
for each template item in the 'items' table, insert into the 'items' table the
same item for the host
4)selects and inserts into 'ids' table, in order to get the ids
Thank you for your help!
Silvana
I am migrating from Nagios to Zabbix, and I would like to migrate the data about the monitored hosts in Nagios, to the Zabbix database.
I know there is an API but it is in draft state , so I prefer not to use this API and instead I would like to insert the data directly into the zabbix database.
So I would like to have more information about zabbix database tables and dependencies
In particular I'd like to know which steps are required in order to create a host in zabbix?
The host have some associated groups and templates, but does not have asociated profiles, extended profiles nor associated macros.
Is it enough to perform the insert operations only in the following tables?
or do I need something else?
1)insert a row into 'hosts' table
2)for each group the host is associated with, insert a row into hosts_group
3)for each template the host is associated with
insert a row into 'hosts_templates' table
for each template item in the 'items' table, insert into the 'items' table the
same item for the host
4)selects and inserts into 'ids' table, in order to get the ids
Thank you for your help!
Silvana


Comment