zabbix_export: version: '5.4' date: '2021-11-21T21:22:11Z' groups: - uuid: 7df96b18c230490a9a0a9e2307226338 name: Templates templates: - uuid: 2e4974f4c720465282cb613e908c2b42 template: 'Discovery DHCP scopes' name: 'Discovery DHCP scopes' description: | ## Overview Hello, Using this template you'll be able to collect information about free IPs in your DHCP server scopes. Please make sure you activated SNMP monitoring in your server and that you changed the community name in the template. Remember to add your Zabbix server IP as a permitted host in your SNMP configuration. ## Author Zilmar de Souza Junior groups: - name: Templates discovery_rules: - uuid: 310f8c20790743a0a4b2b15328c2c7c8 name: 'DHCP scopes' type: SNMP_AGENT snmp_oid: 'discovery[{#IPSCOPE},SNMPv2-SMI::enterprises.311.1.3.2.1.1.1,{#IPINUSE},SNMPv2-SMI::enterprises.311.1.3.2.1.1.2,{#IPFREE},SNMPv2-SMI::enterprises.311.1.3.2.1.1.3]' key: dhcp.scope delay: '30' item_prototypes: - uuid: 241c1a32a20e4ed3a599b4f58f6ce1c1 name: 'Number of addresses that are free on scope {#IPSCOPE}' type: SNMP_AGENT snmp_oid: 'SNMPv2-SMI::enterprises.311.1.3.2.1.1.3.{#IPSCOPE}' key: 'ipfree[{#IPSCOPE}]' delay: '30' tags: - tag: Application value: 'DHCP scopes' trigger_prototypes: - uuid: d085d484ccf84da18a10e152bed2cae9 expression: 'last(/Discovery DHCP scopes/ipfree[{#IPSCOPE}])<5' name: 'The number of addresses that are free on scope {#IPSCOPE} is low' priority: HIGH description: 'If the number of free adresses is less than 5, the trigger will be activated.'