I'm starting to set up zabbix for more than one client, and I want to keep certain things synchronized, templates being the obvious example, but also regular expressions they use, value maps, discovery rules (I have standard ones that I clone to customize), etc.
Effectively, in a way, this becomes a separate layer of "programming", above site specific stuff like hosts, macros, etc., but below the actual zabbix code (though I have patches there to manage and propagate as well).
It's all too easy to make changes on the fly, planning to go make the same changes in other systems, and then forget.
A database comparison is difficult, as internal keys change.
A template comparison is closer (based on an export) but I find that the order of lines in the templates varies (at least it did, I have not tested in the most recent versions), but templates are not complete (though getting better with value map inclusion).
And of course there are external scripts for checks, discovery, etc.
So basically there are a bunch of pieces to this. Has anyone tried doing this in a methodical and hopefully scripted way? Some mechanism to keep at least compare and highlight differences? I am not too enamoured with anything that auto-updates, but I would like a quick way to identify changes so I can move templates, edit regex, etc.
Effectively, in a way, this becomes a separate layer of "programming", above site specific stuff like hosts, macros, etc., but below the actual zabbix code (though I have patches there to manage and propagate as well).
It's all too easy to make changes on the fly, planning to go make the same changes in other systems, and then forget.
A database comparison is difficult, as internal keys change.
A template comparison is closer (based on an export) but I find that the order of lines in the templates varies (at least it did, I have not tested in the most recent versions), but templates are not complete (though getting better with value map inclusion).
And of course there are external scripts for checks, discovery, etc.
So basically there are a bunch of pieces to this. Has anyone tried doing this in a methodical and hopefully scripted way? Some mechanism to keep at least compare and highlight differences? I am not too enamoured with anything that auto-updates, but I would like a quick way to identify changes so I can move templates, edit regex, etc.