Настраивать через события MySQL.
Включение автоинвентаризации:
CREATE DEFINER=`root`@`localhost` EVENT `enable automatic inventory` ON SCHEDULE EVERY 30 MINUTE STARTS CURRENT_TIMESTAMP ON COMPLETION NOT PRESERVE ENABLE DO insert into host_inventory(hostid,inventory_mode) select hostid,1 from hosts where not exists(select hostid from host_inventory where hosts.hostid = host_inventory.hostid)
Автовыключение пакетных опросов по SNMP
CREATE DEFINER=`root`@`localhost` EVENT `off bulk snmp` ON SCHEDULE EVERY 30 MINUTE STARTS CURRENT_TIMESTAMP ON COMPLETION NOT PRESERVE ENABLE DO UPDATE `zabbix`.`interface` SET `bulk` = ’0′ WHERE `bulk` = ’1′
Главная
- Просмотров: 7320