Hello Zabbix fans. I am looking to create a network topolgy mapper. I have a general approach concept where I will have variables that define the scope of items to be mapped and the layout style, I will read out the items that match these parameters, create the map in memory, then write it back out as a map object with elements and links. Finally this code will run periodically to check for changes and I can update the map and raise messages about the change as required. I am currently trying to work out the best way to interface with Zabbix from the code. I can either create a Loadable Module and work with the data set, but I cannot find any documentation on this and I am not sure if this is the best approach, or I can use the API and talk to the server that way. Given that I will write this in C, although the API feels like the most natural way I am not sure that creating a HTTP socket is the most effecient way. I am not sure that directly connecting to the database and working that way is correct as Zabbix can work with multiple DBs and already has the internal connectors for all of that.
How would you read and write a topology map with Zabbix? Is the API the best method if the code you write is in C and is on the same machine as the server itself?
How would you read and write a topology map with Zabbix? Is the API the best method if the code you write is in C and is on the same machine as the server itself?

Comment