Creating a user

The initial Zabbix installation does not contain many predefined users—let's look at the user list. Navigate to Administration | Users:

That's right; only two user accounts are defined—Admin and guest. We have been logged in as Admin all the time. On the other hand, the guest user is used for unauthenticated users. Before we logged in as Admin, we were guest. The user list shows some basic information about the users, such as which groups they belong to, whether they are logged in, when their last login was, and whether their account is enabled. A guest user can be unwanted, as they could reveal certain information that should not be visible to anybody, so use with care!

By granting access permissions to the guest user, it is possible to allow anonymous access to resources. This user will be active by default!

Let's create another user for ourselves. Click on the Create user button located in the upper-right corner. We'll look at all of the available options for a user account, while filling in the appropriate ones:

If a language you would like to use is not listed, it might still be there—just incomplete. See Appendix B, Being Part of the Community, for more details on how to enable it and contribute to Zabbix translations.
What's more, at the time of writing, this option does not work as expected and should not be relied on, as there are cases where a user will not be logged out. See the URL at the end of this chapter, in the Further reading section, for more information.

The final result should look as follows:

If it does, click on the Add button at the bottom.

Now, it would be nice to test this new user. It is suggested that you launch another browser for this test so that any changes are easy to observe. Let's call the browser where you have the administrative user logged in Browser 1 and the other one Browser 2. In Browser 2, open the Zabbix page and log in as monitoring_user, supplying whatever password you entered before. Instead of the dashboard, the Monitoring | Problems page is opened.

Also, the page is notably different than before—the main menu entries Configuration and Administration are missing here. Also the Host and Host groups entries are both empty and nothing can be selected; no issues are visible. Go to Monitoring | Overview. The Group drop-down is set to all and Type is set to Triggers, but the Details view claims that there's No data found. How come?

By default, users don't have access to any systems. When our new user logs in, nothing is displayed in the monitoring section, because we did not grant any privileges, including read-only. We did assign this user to the Zabbix administrators group, but that group has no permissions set by default.

Back in Browser 1, click on monitoring_user in the Alias column. One minor thing to notice—instead of a Password input field, this time, a button that says Change password is visible. If you ever have to reset a password for a user, clicking on this button will reveal the password input fields again, allowing a password update along with any other changes that might have been made:

But there's a tab we still haven't used—Permissions. Let's switch to it.

There's also a Media tab. There, users can have various media assigned to them so that Zabbix knows how to alert them. Media types include email addresses and numbers to send SMS messages to. We will discuss notification functionality in Chapter 7, Acting upon Monitored Conditions.

The first thing to notice is the User type drop-down. It offers three user types. We'll leave it at Zabbix User for this user:

For reference, these types have the following meanings:

The following is a section that looks very similar to what we are looking for; there are Host groups and permissions:

There's just one problem—there is no way to change these permissions.

A helpful message at the bottom of the page explains why. It says Permissions can be assigned for user groups only.

We conveniently skipped adding or configuring any groups and permissions, so now is a good time to fix that.