Designing a More Predictable and Consistent Zabbix Experience

Post Syndicated from Patrik Uytterhoeven original https://blog.zabbix.com/designing-a-more-predictable-and-consistent-zabbix-experience/33478/

Here’s why naming, navigation, templates, and terminology matter more than they seem to. 

Zabbix is a powerful platform, and one of its strengths is the enormous amount of functionality that has accumulated over the years. But as the software develops, a challenge grows with it – consistency.

Consistency may sound like a minor concern. If a feature works, does it really matter what we call it? Does it matter if two similar concepts use slightly different terminology, or if two different parts of the interface expose the same object in different ways? I believe it does.

Not because inconsistent terminology makes Zabbix unusable – it clearly does not. But because every inconsistency adds a small amount of cognitive overhead for the person using the product. Those small inconsistencies add up and can make a product harder to use.

Templates define the monitoring experience

When we talk about user interfaces, we usually think about buttons, menus, forms and dashboards. But a Zabbix template is also an interface (not like a network interface). Templates are a different kind of interface – they define much of what users work with.

A template exposes a collection of concepts to the user: item names, trigger names, discovery rules, macros, tags, value maps, preprocessing steps, graphs and prototypes. Together, these form a language. Consider something as simple as CPU utilization. One template might call an item CPU utilization. Another might use CPU usage. And another might go with CPU used percentage.

Technically, all three can describe exactly the same metric. The problem is not that any individual name is necessarily wrong. The problem appears when hundreds of templates use slightly different terminology for the same concepts.

The result is that users cannot easily predict what something will be called. That matters when searching for items, creating dashboards, defining calculated items, writing API integrations, building documentation, or simply trying to understand an unfamiliar template.

If official templates consistently use the same terminology, users gradually learn the language of Zabbix. Users develop a consistent mental model, allowing them to recognize and understand unfamiliar templates with less cognitive effort. In short, once users know the familiar language, they can understand templates they have never seen before. Remember – a consistent interface is a predictable interface.

Two places called Hosts

Another example will be familiar to almost anyone who has worked with Zabbix as an administrators. Where do you find your hosts? That sounds like an easy question.

Monitoring
  -> Hosts

But you can also go to:

Data collection
  -> Hosts

They both say Hosts, but they serve very different purposes.

Monitoring -> Hosts presents hosts from an operational perspective. It is where users look at monitored hosts and navigate towards current data, problems, graphs and other collected information. Data collection -> Hosts is where an administrator configures those hosts.

Once you understand the Zabbix interface, the distinction makes sense. Monitoring is about viewing what Zabbix knows. Data collection is about configuring how Zabbix collects that information. The permissions model also makes the separation understandable because a user may need monitoring access without permission to modify host configuration.

The problem is not that this separation exists. The interesting question is whether the navigation needs to expose that separation as two menu entries with exactly the same name.

For someone learning Zabbix, being told to “go to Hosts” can result in an immediate question: “Which Hosts?” If they choose the wrong one, they can spend time looking for configuration options that simply are not present in the menu they navigated to.

Experienced administrators barely notice this anymore. We have learned that one Hosts page means “view” while the other means “configure.” But that learned behavior is in itself interesting.

Conceptually, another interface could present one Hosts destination with two modes:

Hosts

[ View ]   [ Edit ]

The “Edit” option could simply be visible or enabled only for users with sufficient permissions. Zabbix even applies this concept already in the Service configuration menu, which already created that inconsistency between concepts within the UI. This is not necessarily a proposal for how Zabbix should redesign the Hosts page.

There may be good architectural or usability reasons for keeping the pages separate. But the example demonstrates an important principle: Users should not need to understand the internal organization of a product before they can predict where something is located.

The difference between viewing and editing a host is meaningful. Having two navigation entries with exactly the same name is a design choice. Those are not necessarily the same thing.

Discovery…and discovery

Discovery gives us another example of terminology that depends heavily on context.

Under the main menu, we have network discovery:

Data collection
  -> Discovery

Here we configure discovery rules that scan IP ranges and use checks such as ICMP, SNMP, or Zabbix agent queries to find devices and services.

Inside templates, however, we also have discovery rules. In that context we are normally talking about low-level discovery, or LLD.

An LLD rule does not discover hosts on the network. It discovers entities from returned data and dynamically creates items, triggers, graphs, or host prototypes.

From a broad technical perspective, both are forms of discovery. From a user perspective, they are two quite different mechanisms.

When teaching Zabbix, this produces the same kind of question as Hosts. Tell a new administrator to “go to Discovery” and the natural response may be: “Which discovery? Network discovery? Low-level discovery? A discovery rule in Data collection? A discovery rule inside a template?”

Experienced Zabbix users understand the distinction because they have learned the context. But ideally, software should require as little contextual translation as possible.

Perhaps one place could explicitly say “Network discovery” while templates use Low-level discovery or LLD rules. Whether those exact labels are the best solution is less important than the question behind them – can users understand what something means without first having to learn where they are in the product?

Consistency reduces cognitive load

This becomes more important as the number of concepts in Zabbix increases. Experienced administrators do not remember every command, menu entry, macro or configuration parameter individually. Instead, we learn patterns.

Those patterns allow us to make educated guesses. If I know these runtime commands…

config_cache_reload
secrets_reload
snmp_cache_reload
userparameter_reload

…then I naturally expect something involving reload when I encounter another runtime operation involving cached information.

This is what consistency gives us. We stop memorizing individual pieces of information and start understanding the system.

The same principle applies to templates. If similar metrics consistently use similar names, similar macros follow similar structures and discovery rules follow similar conventions. Learning one template helps you understand the next one.

Reload or rebuild?

This brings us to a small runtime-command example that recently started an interesting discussion within the Zabbix community. Zabbix is introducing an operation related to the permissions system:

-R permissions_rebuild

Looking at existing runtime commands, we find several operations using reload:

config_cache_reload
service_cache_reload
secrets_reload
snmp_cache_reload
userparameter_reload
proxy_config_cache_reload

And now we have permissions_rebuild. At first sight, rebuild stands out.

The obvious reaction might be, “Why is this not permissions_reload?” There is, however, a perfectly reasonable technical explanation. The operation may not simply reload existing information. It may recreate cached entries used by the permissions system. In that case, rebuild can be a more accurate description of what the software actually does.

That leads to a much more interesting design question than whether reload or rebuild is objectively correct – do you prioritize technically correct wording or usability?

Implementation language versus user language

Developers naturally understand software in terms of what happens internally. A cache might be loaded. Another cache might be refreshed. Some entries might be regenerated. Others might be rebuilt from source data. Those distinctions can be important when implementing the software.

But should every internal distinction become part of the user-facing vocabulary?

Suppose I have six runtime commands. Five tell Zabbix to update some internal state and use the word “reload.” The sixth also tells Zabbix to update an internal state, but because its implementation is different, it uses “rebuild.”

From the developer’s perspective, that distinction may be completely logical. From the administrator’s perspective, those operations may belong to exactly the same mental category – something changed, make Zabbix use the current state without restarting the server.

User interfaces should not necessarily expose the internal architecture of the software. Sometimes they should. Sometimes a technical distinction is important enough that users need to understand it. But sometimes consistency with an established user-facing concept is more valuable.

The vocabulary of a product

As software matures, it develops its own vocabulary. Zabbix certainly has one.

items
triggers
hosts
templates
proxies
macros
discovery rules
prototypes
preprocessing
value maps
maintenance
actions

Many of these terms have very specific meanings inside Zabbix. That vocabulary is part of the product.

Therefore, introducing another word for an existing or closely related concept has a cost. Not necessarily a large cost, but a cost nonetheless. Every new term is something documentation needs to explain, trainers need to teach, administrators need to remember, users need to search for, and support engineers may need to clarify.

Once terminology enters a widely used product, changing it later becomes increasingly difficult. This is why naming choices deserve more attention than they sometimes receive.

Consistency does not mean everything must be identical

There is also a danger in taking this argument too far. Consistency should not mean forcing fundamentally different concepts into the same terminology.

If an operation truly behaves differently in a way that matters to users, giving it a different name can be exactly the right decision. Likewise, network discovery and low-level discovery really are different mechanisms.

The goal should therefore not be to always reuse existing terminology. A better principle might be to reuse existing terminology unless the distinction is meaningful to the user.

That last word is important – the distinction has to matter to the user, not merely to the implementation.

The same lesson applies to templates

This is particularly relevant to the growing collection of official Zabbix templates. Templates are developed over many years, by different people, for different vendors and technologies. Without strong conventions, it is easy for each template to develop its own dialect.

One template may use:
CPU utilization
while another uses:
CPU usage

One may use:
Interface {#IFNAME}: Bits received

while another uses:
Incoming traffic on {#IFNAME}

One macro may control a threshold using one naming structure while another template uses a different structure for essentially the same purpose.

Again, none of these choices necessarily has to be wrong. The question is what happens when we look at the template library as a whole.

Ideally, learning how one well-designed Zabbix template works should help you understand another one. The more predictable that structure becomes, the less time administrators spend learning individual templates. Instead, they learn how Zabbix templates work.

Consistency is a feature

It is easy to treat naming and terminology as the final step in development that only has to be considered after the real functionality has been implemented. I think that underestimates their importance.

Consistency is part of usability. It affects documentation, training, support, automation, and how quickly experienced users can understand a new functionality. Most importantly, it affects how predictable the product feels.

A predictable product requires less memorization because users can rely on patterns they already know. That is particularly valuable in monitoring. When something is broken at 3AM and you are trying to understand why an important service is unavailable, you do not want to remember whether the operation you need is called reload, refresh, rebuild, regenerate, or sync. You want to be able to predict it.

Before introducing another word

So should permissions_rebuild be renamed to permissions_reload? Maybe. Maybe not. The technical distinction behind rebuild may be important enough to justify different terminology.

But the command provides a useful example of a much broader question that applies throughout Zabbix: Before introducing a new name, ask whether users really need to learn a new word.

Sometimes they do. A genuinely different concept deserves a different name. But when two operations are conceptually similar from the user perspective, consistency may be more valuable than describing differences in their internal implementation.

The same question can be asked about templates, menu entries, discovery, macros, API objects, runtime commands, and almost every other interface through which users interact with Zabbix.

Remember – consistency is not about making everything look the same. It is about making the next thing easier to understand because of everything the user has already learned. And ultimately, that is what makes a complex product feel intuitive.

Let us know what you think in the comments.

The post Designing a More Predictable and Consistent Zabbix Experience appeared first on Zabbix Blog.