We have a large deployment of ZABBIX (1.4.4), and I needed a way to build custom item lists on the fly as we possess a plethera of different routers, firewalls, load-balancers and switches of various breeds across our enterprise. As they all conform to SNMPv2 MIB standards, I thought we should use perl scripts do a few snmpgets to determine machine type (set as variables), and then proceed with further gets, controlled by these variables. In this way, we could build perl scripts to generate custom item lists for hosts that are so unique, a template would be useless. We have one perl script already, in which you set a few preferences, execute the script, and voila, there is an XML file to import. This file adds the host, adds that host to the hostgroup you selected, adds input octet, output octet, admin up/down, up/down and cpu % items to that host, with the sample interval you select, and with triggers at thresholds you select. Done. Want to change all trigger threshold points? Just change preference in perl script, rerun, and re-import (with update selected on import screen). Done.
I would like to keep separate from templates, although this could be used to generate TEMPLATES as well, just choose "TEMPLATE" hostgroup, run and import XML. Re-use on IDENTICAL hosts.
After we did this with amazing success, I realized we could use the same theory just about anywhere. Like a bunch of inconsistent servers running different software.... hmmm...
Sound interesting to anyone?
I would like to keep separate from templates, although this could be used to generate TEMPLATES as well, just choose "TEMPLATE" hostgroup, run and import XML. Re-use on IDENTICAL hosts.
After we did this with amazing success, I realized we could use the same theory just about anywhere. Like a bunch of inconsistent servers running different software.... hmmm...
Sound interesting to anyone?
Comment