Para configurar una regla de descubrimiento de red utilizada por Zabbix para descubrir equipos y servicios:
All mandatory input fields are marked with a red asterisk.
Parameter | Description |
---|---|
Name | Unique name of the rule. For example, "Local network". |
Discovery by proxy | What performs discovery: no proxy - Zabbix server is doing discovery <proxy name> - this proxy performs discovery |
IP range | The range of IP addresses for discovery. It may have the following formats: Single IP: 192.168.1.33 Range of IP addresses: 192.168.1-10.1-255. The range is limited by the total number of covered addresses (less than 64K). IP mask: 192.168.4.0/24 supported IP masks: /16 - /30 for IPv4 addresses /112 - /128 for IPv6 addresses List: 192.168.1.1-255, 192.168.2.1-100, 192.168.2.200, 192.168.4.0/24 Since Zabbix 3.0.0 this field supports spaces, tabulation and multiple lines. |
Update interval | This parameter defines how often Zabbix will execute the rule. The interval is measured after the execution of previous discovery instance ends so there is no overlap. Time suffixes are supported, e.g. 30s, 1m, 2h, 1d, since Zabbix 3.4.0. User macros are supported, since Zabbix 3.4.0. Note that if a user macro is used and its value is changed (e.g. 1w → 1h), the next check will be executed according to the previous value (far in the future with the example values). |
Checks | Zabbix will use this list of checks for discovery. Click on to configure a new check in a popup window. Supported checks: SSH, LDAP, SMTP, FTP, HTTP, HTTPS, POP, NNTP, IMAP, TCP, Telnet, Zabbix agent, SNMPv1 agent, SNMPv2 agent, SNMPv3 agent, ICMP ping. A protocol-based discovery uses the net.tcp.service[] functionality to test each host, except for SNMP which queries an SNMP OID. Zabbix agent is tested by querying an item in unencrypted mode. Please see agent items for more details. The 'Ports' parameter may be one of following: Single port: 22 Range of ports: 22-45 List: 22-45,55,60-70 |
Device uniqueness criteria | Uniqueness criteria may be: IP address - no processing of multiple single-IP devices. If a device with the same IP already exists it will be considered already discovered and a new host will not be added. <discovery check> - either Zabbix agent or SNMP agent check. |
Host name | Set the technical host name of a created host using: DNS name - DNS name (default) IP address - IP address <discovery check> - received string value of the discovery check (e.g. Zabbix agent, SNMP agent check) See also: Host naming. This option is supported since 4.2.0. |
Visible name | Set the visible host name of a created host using: Host name - technical host name (default) DNS name - DNS name IP address - IP address <discovery check> - received string value of the discovery check (e.g. Zabbix agent, SNMP agent check) See also: Host naming. This option is supported since 4.2.0. |
Enabled | With the check-box marked the rule is active and will be executed by Zabbix server. If unmarked, the rule is not active. It won't be executed. |
En este ejemplo, nos gustaría configurar el descubrimiento de red para la red local que tiene un rango de IP de 192.168.1.1-192.168.1.254.
En nuestro escenario queremos:
Definir una regla de descubrimiento de red para nuestro rango de IP.
Zabbix intentará descubrir equipos en el rango de IP de 192.168.1.1-192.168.1.254 conectándose con los agentes de Zabbix y obteniendo el valor de la métrica system.uname. El valor recibido del agente se puede utilizar para nombrar los equipos y también para aplicar diferentes acciones para diferentes sistemas operativos. Por ejemplo, vincule servidores de Windows a la plantilla Windows, servidores Linux a la plantilla Linux.
La regla se ejecutará cada 10 minutos.
Cuando se agrega esta regla, Zabbix iniciará automáticamente el descubrimiento. y generación de eventos basados en descubrimiento para su posterior procesamiento.
Definición de una acción de descubrimiento para agregar los servidores Linux descubiertos al grupo/plantilla respectivo.
La acción se activará si:
La acción ejecutará las siguientes operaciones:
Definir una acción de descubrimiento para agregar los servidores Windows descubiertos a el grupo/plantilla respectivo.
Definir una acción de descubrimiento para eliminar servidores perdidos.
Se eliminará un servidor si el servicio "agente Zabbix" está "inactivo" por más de 24 horas (86400 segundos).