Zabbix 4 discovery

Network discovery is a good feature to simplify your daily routine on maintaining rapidly changing environment. Active registration is good, but it is limited only to hosts with Zabbix agent, while network discovery does not have any limitations. Introduction II. Why network discovery? How to Conclusion In this post, I am going to demonstrate network discovery setup in Zabbix with Zabbix 4. Zabbix network discovery functionality allows for simplifying and speeding up Zabbix deployment, simplifying administration when using Zabbix in rapidly changing environments.

Network discovery works on all types of devices that you can monitor with Zabbix, irrespective of an agent, — WindowsLinuxnetwork boxesservicesapplicationsor even web pages could be discovered.

First of all, only at least Zabbix administrators can configure network discovery. By default, there is one local network that we can simply delete for our example.

So if you want to run discovery through one of your existing proxies, just select one from the list in Discovery by proxy field. Here we can specify the IP addresses or subnet masks. Update interval by default is set to 1 hour. The most important part — Checks. These checks will be used in actions and the conditions to decide what do we want to do with discovered hosts if something is discovered.

SNMP gives a better view, so we will use it in our example. Setting discovery rules. We can also add any other services to Checks. Network discovery checks. For example, if inside the discovered IP address or the discovered device there is a Zabbix agent installed which can report to this server or this proxy we can also use Zabbix agent keys.

Zabbix agent key. There might be duplicate responses or the same values with the same IP addresses for DNS names, so we must specify Device uniqueness criteria for the discovered hosts or devices. Device uniqueness criteria. We need to acquire the Host name of the discovered host in the front-end.

Discovery events can be the basis of actions, which can be configured with respect to the device type, IP, status. Types of actions. Here you need to create New condition. You may select, for example, Host IP which was discovered, or Discovery check that is running. Action condition. So, in one IP address, there will be one device, which can contain multiple services, which can also be discovered.

Discovery object. Adding conditions. Operations type.It gets download total bytes, upload total bytes, upload total packets, et download total packets for every client. Zabbix 5 template to use dhcpd-pools V3. Sometimes we are faced with an infrastructure distributed over the Internet.

In case there is no VPN, using zabbix active agents is a great way to configure monitoring of servers and workstations. But what if we just want to check the availability of the The agent is setup on xenserver master. This template allows you to track the activity of your Varnish cache servers. You will be able to see the quantity of requests received and transmitted, and kno LXC templateIf you use Proxmox, you have probably noticed that the metrics reassembled by zabbix agent with the linux templates provided by zabbix 4 do not work or provide bullshit.

Explanation : LXC containers have metrics in files sometimes different, Requirements Requires the following utilities to be available on the agent host: pgrep egrep sed jq Zabbix monitoring scripts, LLD and template for btrfs volumes. So far the whole thing is only tested on Debian 9. Basic template to retrieve sensors from a C node's BMC. If you are trying to build an IPMI template for your own server, I highly recommend installing the freeipmi-tools package and running ipmi-sensors. Getting system and hardware information in command line for zabbix with autodiscovery.

You can inventory windows pc with this tool.

An overview of Zabbix 4.0 and how we are using it.

Compiled app, no scripts! Zabbix 1C Enterprise Monitor sessions number for each base in cluster and for each cluster. Items names include base name and cluster name.

zabbix 4 discovery

Using LLD for base discovery Suggestions are welcome. Directory: Recently Updated Listings. Listen port discovery and port netstat moniting New!It is important for you to understand that your Zabbix server will only find devices pre-configured to use a specific SNMP community.

Don't forget to subscribe to our youtube channel named FKIT. List of Tutorials - Zabbix. Zabbix Server Installation. Zabbix - Monitor Vmware. Zabbix - Monitor Website. Zabbix - Monitor Cisco Switch. Zabbix - Monitor Windows using Agent. Zabbix - Monitor Linux using Agent. Zabbix - Monitor TCP. Zabbix - Monitor UDP. Zabbix - E-mail Notification.

Zabbix - SMS Notification. Now, we need to configure the actions that Zabbix needs to execute after discovering a new SNMP device. In our example, the Zabbix server will scan the network Keep in mind that your Zabbix server Must be able to translate the devices IP address to the device name.

If your Zabbix server is not able to translate the SNMP devices IP address to the hostname, it will create a host using the IP address of the device instead of using the hostname. If you want, you may also configure the Zabbix server to assign a template during the discovery process.

Zabbix Network Discovery For Dynamic Deployments

Hardware List:. The following section presents the list of equipment used to create this Zabbix tutorial. Every piece of hardware listed above can be found at Amazon website. Zabbix Playlist:. Zabbix Related Tutorial:. On this page, we offer quick access to a list of tutorials related to Zabbix installation.The system will detect those computers and automatically add them to a specific group of hosts. It is important for you to understand that your Zabbix server will only find devices which the Zabbix agent installed and pre-configured to accept connections from your Zabbix server.

Don't forget to subscribe to our youtube channel named FKIT. List of Tutorials - Zabbix. Zabbix Server Installation. Zabbix - Monitor Vmware. Zabbix - Monitor Website. Zabbix - Monitor Cisco Switch.

Zabbix - Monitor Windows using Agent. Zabbix - Monitor Linux using Agent. Zabbix - Monitor TCP. Zabbix - Monitor UDP. Zabbix - E-mail Notification. Zabbix - SMS Notification. Now, we need to configure the actions that Zabbix needs to execute after discovering a new device using the Agent.

In our example, the Zabbix server will scan the network Keep in mind that your Zabbix server Must be able to translate the devices IP address to the device name.

If your Zabbix server is not able to translate the computer IP address to the hostname, it will create a host using the IP address of the device instead of using the hostname.

If you want, you may also configure the Zabbix server to assign a template during the discovery process. Zabbix Auto Discovery Configuration. Hardware List:. The following section presents the list of equipment used to create this Zabbix tutorial. Every piece of hardware listed above can be found at Amazon website.Low-level discovery provides a way to automatically create items, triggers, and graphs for different entities on a computer.

For instance, Zabbix can automatically start monitoring file systems or network interfaces on your machine, without the need to create items for each file system or network interface manually.

Additionally it is possible to configure Zabbix to remove unneeded entities automatically based on actual results of periodically performed discovery. A user can define their own types of discovery, provided they follow a particular JSON protocol. A discovery rule consists of 1 an item that discovers the necessary entities for instance, file systems or network interfaces and 2 prototypes of items, triggers, and graphs that should be created based on the value of that item.

An item that discovers the necessary entities is like a regular item seen elsewhere: the server asks a Zabbix agent or whatever the type of the item is set to for a value of that item, the agent responds with a textual value.

Zabbix Auto Discovery Configuration

The difference is that the value the agent responds with should contain a list of discovered entities in a JSON format. These macros are used in names, keys and other prototype fields where they are then substituted with the received values for creating real items, triggers, graphs or even hosts for each discovered entity.

See the full list of options for using LLD macros. Note that since Zabbix 4. It is no longer expected that the JSON will contain the "data" object.

Low-level discovery will now accept a normal JSON containing an array, in order to support new features such as the item value preprocessing and custom paths to low-level discovery macro values in a JSON document.

Any new native discovery checks will use the new syntax without the "data" elements. While the "data" element has been removed from all native items related to discovery, for backward compatibility Zabbix will still accept the JSON notation with a "data" element, though its use is discouraged. See also: Discovered entities. The discovery rule form contains four tabs, representing, from left to right, the data flow during discovery:. The Discovery rule tab contains the item key to use for discovery as well as some general discovery rule attributes :.

The Preprocessing tab allows to define transformation rules to apply to the result of discovery. One or several transformations are possible in this step. Transformations are executed in the order in which they are defined. All preprocessing is done by Zabbix server. Note that if the discovery rule has been applied to the host via template then the content of this tab is read-only.

Custom macros are useful in cases when the returned JSON does not have the required macros already defined. So, for example:. The extracted values can be used in discovered items, triggers, etc. Note that values will be extracted from the result of discovery and any preprocessing steps so far. The Filters tab contains discovery rule filter definitions allowing to filter discovery values:.A list of existing low-level discovery rules is displayed.

To configure a new low-level discovery rule, click on the Create discovery rule button in the top right-hand corner. To use these options, mark the checkboxes before the respective discovery rules, then click on the required button. The Filter link is available above the list of discovery rules.

If you click on it, a filter becomes available where you can filter discovery rules by host group, host, name, item key, item type and other parameters. Recent Changes. Log In. Sidebar Zabbix Manual. Zabbix manpages. Zabbix documentation in Russian. Displayed data: Column Description Host The visible host name is displayed. In the absence of a visible host name, the technical host name is displayed.

Name Name of the rule, displayed as a blue link. Clicking on the rule name opens the low-level discovery rule configuration form. If the discovery rule belongs to a template, the template name is displayed before the rule name, as a grey link.

zabbix 4 discovery

Clicking on the template link will open the rule list on the template level. Items A link to the list of item prototypes is displayed. The number of existing item prototypes is displayed in grey. Triggers A link to the list of trigger prototypes is displayed. The number of existing trigger prototypes is displayed in grey. Graphs A link to the list of graph prototypes displayed. The number of existing graph prototypes is displayed in grey.

Hosts A link to the list of host prototypes displayed. The number of existing host prototypes is displayed in grey.

Zabbix Documentation 5.0

Key The item key used for discovery is displayed. Interval The frequency of performing discovery is displayed. Note that discovery can also be performed immediately by pushing the Check now button below the list.

Status Discovery rule status is displayed - EnabledDisabled or Not supported. By clicking on the status you can change it - from Enabled to Disabled and back ; from Not supported to Disabled and back. Info If everything is fine, no icon is displayed in this column. If there are errors, a red square icon with a cross is displayed. Move the mouse over the icon and you will see a tooltip with the error description.

Buttons below the list offer some mass-editing options: Enable - change the low-level discovery rule status to Enabled. Check now - perform discovery based on the discovery rules immediately. See more details.

Note that when performing discovery immediately, the configuration cache is not updated, thus the result will not reflect very recent changes to discovery rule configuration. Parameter Description Host groups Filter by one or more host groups. Specifying a parent host group implicitly selects all nested host groups.Zabbix periodically scans the IP ranges defined in network discovery rules. The frequency of the check is configurable for each rule individually. Note that one discovery rule will always be processed by a single discoverer process.

The IP range will not be split between multiple discoverer processes. Every check of a service and a host IP performed by the network discovery module generates a discovery event. Discovery events can be the basis of relevant actionssuch as:. For full details on configuring actions for network-discovery based events, see action operation and conditions pages.

A host is added if the Add host operation is selected.

zabbix 4 discovery

A host is also added, even if the Add host operation is missing, if you select operations resulting in actions on a host. Such operations are:. When adding hosts, a host name is the result of reverse DNS lookup or IP address if reverse lookup fails. Lookup is performed from the Zabbix server or Zabbix proxy, depending on which is doing the discovery. If lookup fails on the proxy, it is not retried on the server.

If the host name has been set using an item value, it is not updated during the following discovery checks. If it is not possible to set host name using an item value, default value DNS name is used.

Zabbix Auto Discovery using SNMP

If a host already exists with the discovered IP address, a new host is not created. However, if the discovery action contains operations link template, add to host group, etcthey are performed on the existing host.

Hosts are removed immediately. When hosts are added as a result of network discovery, they get interfaces created according to these rules:. The hosts discovered by different proxies are always treated as different hosts. While this allows to perform discovery on matching IP ranges used by different subnets, changing proxy for an already monitored subnet is complicated because the proxy changes must be also applied to all discovered hosts.

Recent Changes. Log In. Sidebar Zabbix Manual. Zabbix manpages. Zabbix documentation in Russian. Table of Contents 1 Network discovery. Zabbix offers automatic network discovery functionality that is effective and very flexible. With network discovery properly set up you can: speed up Zabbix deployment.