We got a need to add more Templates to autodiscovered VMs.
As we know, autodiscovered hosts and VMs are "read only" and new templates cannot be added. I have found a bunch of materials dealing with this, but none of them has a definitive solution.
I made some tests, and found that a database field of hosts table appers to be the key.
Every zabbix autodiscovered host has the value 4 in the "flags" field.
Every editable host (manually added) has the value 0 instead.
In the attachments we can see that the same autodiscovered host can be editable, or readonlye, depending on the value of the "flags" field of hosts table.
My point is, what is/are the impact/s of that change?
Tryed to found more info at the souce code, but it's too much for me.
A keyword that I found in the sources is ZBX_FLAG_DISCOVERY_RULE, that appers to deal with this field, but again I cant follow the entire flow.
Anyone knows the purpose of that field, and the impact of manually changing it?
Thanks
As we know, autodiscovered hosts and VMs are "read only" and new templates cannot be added. I have found a bunch of materials dealing with this, but none of them has a definitive solution.
I made some tests, and found that a database field of hosts table appers to be the key.
Every zabbix autodiscovered host has the value 4 in the "flags" field.
Every editable host (manually added) has the value 0 instead.
In the attachments we can see that the same autodiscovered host can be editable, or readonlye, depending on the value of the "flags" field of hosts table.
My point is, what is/are the impact/s of that change?
Tryed to found more info at the souce code, but it's too much for me.
A keyword that I found in the sources is ZBX_FLAG_DISCOVERY_RULE, that appers to deal with this field, but again I cant follow the entire flow.
Anyone knows the purpose of that field, and the impact of manually changing it?
Thanks
Comment