Creating Custom Low Level Discovery Rules - Part 1 : Zabbix 6 LTS
Documentation : https://sbcode.net/zabbix/zabbix-api-...
Join Course : / @sbcode
Using everything we've seen so far, we can now move onto something much more advanced, and that is to create a custom Low Level Discovery Rule from the ground up.
The concept of a discovery rule, is to have a script that when run, will automatically discover groups of something on your host, or even network. For example, databases on a database server.
Some Inbuilt Native Zabbix Discovery rules are
* vfs.fs.discovery : Used by Mounted Filesystem Discovery
* net.if.discovery : Used by Network Interface Discovery
* vfs.dev.discovery : Used by Block Devices Discovery
These rules are created and assigned to your hosts when you add certain templates.
You can inspect the output of these rules on your hosts by running,
zabbix_agentd -t vfs.dev.discovery
zabbix_agentd -t net.if.discovery
zabbix_agentd -t vfs.fs.discovery
Each JSON output is dynamically created at runtime and contains a list of macro keys and values that will be specific to what was found from the perspective of the host where it was run. The macros can be used by the discovery rules Item, Trigger, Graph and Host Prototypes.
#zabbix
#zabbix6
#zabbixCourse
#zabbixTutorial