Skip to content

Commit

Permalink
[fix]markdown lint and typos
Browse files Browse the repository at this point in the history
  • Loading branch information
Trikke76 committed Sep 4, 2024
1 parent 219fa69 commit c4f8a47
Show file tree
Hide file tree
Showing 4 changed files with 164 additions and 85 deletions.
56 changes: 42 additions & 14 deletions docs/configuration/zabbix-hostgroups.md
Original file line number Diff line number Diff line change
@@ -1,30 +1,58 @@
# Host groups

Let's have look at the concepts of host groups and what the benifits are that they provide.
We have seen that ```Host groups``` can be created directly when we create a new ```Zabbix host```.
Another way to create them is by a ```Super Admin``` going to Data collection -> Host groups. Next press the button ```Create host group``` in the upper right corner of the screen.
Host groups exists to make a logical group so we can add all hosts that belong together in one group or more. Ex all Linux server, all PostgreSQL server, or all the servers that belong to one team.

Let's have look at the concepts of host groups and what the benefits are that
they provide.
We have seen that ```Host groups``` can be created directly when we create
a new ```Zabbix host```.
Another way to create them is by a ```Super Admin``` going to
`Data collection` -> `Host groups`.
Next press the button `Create host group` in the upper right corner of the screen.
Host groups exists to make a logical group so we can add all hosts that belong
together in one group or more. Ex all Linux servers, all PostgreSQL servers,
or all the servers that belong to one team.

![host-groups](image/host-groups/all-groups.png)

When going to our menu ```data collection``` you notice that there are ```Host groups``` and ```Template groups```. If you come from an older Zabbix version you will be happy to read that Zabbix made a specific group for Templates. If you are new to Zabbix don't panic :). In older versions Zabbix had mixed Templates and host in one group. This mixing was sometimes confusing especially for new users, as Zabbix doesnt link templates to groups.

When you click on the menu ```Data collection``` -> Host groups. You will notice that some groups are already made. You will also see that there are some names behind the host groups with numbers in front. These names are the names from the hosts that are in the group. The number in fron is the number of hosts that are in the ```host group.``` To make life more easy you can click on the names of the hosts and Zabbix will bring you directly to the configuration screen for this host.
When going to our menu `data collection` you notice that there are `Host groups`
and `Template groups`.
If you come from an older Zabbix version you will be happy to read that Zabbix made
a specific group for Templates. If you are new to Zabbix don't panic :).
In older versions Zabbix had mixed Templates and host in one group.
This mixing was sometimes confusing especially for new users,
as Zabbix doesnt link templates to groups.

When you click on the menu `Data collection` -> `Host groups`.
You will notice that some groups are already made. You will also see that
there are some names behind the host groups with numbers in front.
These names are the names from the hosts that are in the group. The number in front
is the number of hosts that are in the `host group.` To make life more easy you
can click on the names of the hosts and Zabbix will bring you directly to the
configuration screen for this host.

![host-groups](image/host-groups/host-groups.png)

Zabbix allows the creation of nested groups. As you can see we are using forward slashes in our group name. When you make use of nested group you can use the '/' to separate groups.

Zabbix allows the creation of nested groups.
As you can see we are using forward slashes in our group name.
When you make use of nested group you can use the '/' to separate groups.

![host-groups](image/host-groups/host-groups-edit.png)

Once our group or set of nested groups is made you can click again from the ```host group``` overview on the group. You will notice that there is now a box that says ```Apply permissions and tag filters to all subgroups```. When pressing this button, all right that are this group will be applied to the sub-groups. So if we have a user ```John``` for example in a user group that has rights to see everything in the ```Host group``` with the name ```Europe/Belgium``` and we apply the option to the subgroups then our user ```John``` will suddenly see also the hosts in all our nestet groups and the tags on this host.


Once our group or set of nested groups is made you can click again from the
`host group` overview on the group.
You will notice that there is now a box that says
`Apply permissions and tag filters to all subgroups`. When pressing this button,
all right that are this group will be applied to the sub-groups.
So if we have a user `John` for example in a user group that has rights to see
everything in the `Host group` with the name `Europe/Belgium` and we apply
the option to the subgroups then our user `John` will suddenly see also the hosts
in all our nestet groups and the tags on this host.

???+ Note
When creating nested groups, Parent groups don't have to exist. So we can have only the group ```open-future``` without any of the parent groups. It's up to the user to create them or not. Also group names cannot have `/` in their names. We cannot escape the `/` character. Also leading and trailing slashes and multiple slashes in a row are not allowed.
When creating nested groups, Parent groups don't have to exist.
So we can have only the group `open-future` without any of the parent groups.
It's up to the user to create them or not. Also group names cannot have `/` in
their names. We cannot escape the `/` character.
Also leading and trailing slashes and multiple slashes in a row are not allowed.

???+ Tip
Have you tried to put emoticons in fields like host group yet ?
95 changes: 59 additions & 36 deletions docs/configuration/zabbix-hosts.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,12 @@
# Zabbix hosts

To understand how Zabbix works, it's important to know that ```Hosts``` in Zabbix are a reference to anything we would like to monitor.
It can be a physical host, a virtual machine, an application, a device, or even just a dummy host used to calculate data from existing hosts into something new.
To understand how Zabbix works, it's important to know that `Hosts` in Zabbix are a
reference to anything we would like to monitor. It can be a physical host,
a virtual machine, an application, a device, or even just a dummy host used
to calculate data from existing hosts into something new.

It's probably one of the first tasks that we will do as an Admin when we first login to Zabbix because we need a host if we would like to monitor some metrics.
It's probably one of the first tasks that we will do as an Admin when we first
login to Zabbix because we need a host if we would like to monitor some metrics.
It's however, important to know that hosts cannot be created without being in a hostgroup.

In this chapter we will teach you:
Expand All @@ -22,60 +25,72 @@ In this chapter we will teach you:

With this said, let's see how to create our first host.

Let's go to the menu on your ```left``` and select Data Collection -> Hosts.
We see that there is already a host configured and that the availability icon is "RED". Don't worry about it, this is normal. We have no Zabbix agent installed or configured.
Let's go to the menu on your ```left``` and select `Data Collection` -> `Hosts`.
We see that there is already a host configured and that the availability icon
is "RED". Don't worry about it, this is normal. We have no Zabbix agent
installed or configured.

To add a new host to our system, we have to press ```Create host```, this button can be found in the upper right corner of our screen.
To add a new host to our system, we have to press `Create host`,
this button can be found in the upper right corner of our screen.

![Create a host](image/zabbix-hosts/zabbix-add-hosts.png)

We now get a modal form where we need to fill in some information about our host.
The fields marked with a <span style="color:red"> *red* </span> asterisk <span style="color:red"> "*" </span> are the fields that are mandatory.
The fields marked with a <span style="color:red"> *red* </span>
asterisk <span style="color:red"> "*" </span> are the fields that are mandatory.

![Create a host](image/zabbix-hosts/zabbix-new-host.png)


| Parameter | Description |
| :---- | :---- |
| Host name | Here we need to enter the Host name of the machine we would like to add. The name can contain alphanumerics, spaces, dots, dashes, and underscores. HOWEVER you are not allowed to use leading and trailing spaces. The Host name in the frontend is what we need later for the configuration of our Zabbix agent, so make sure you remember it.|
| Visible name | The host name, as we have seen, is needed to configure our Zabbix agent. So in case you like to give it a unique name or one that is randomly generated, ... you can add a visible name here. This name will then be used on the frontend instead of what we call the technical name host name. This name has support for UTF-8, so special characters are supported. This name will be used in all the places like maps, the latest data, inventory, ...|
| Templates | Templates are like blueprints that we can use on our hosts to add items, triggers, etc. We explain more about it in the topic Zabbix templates. You can start typing the name of the template, and Zabbix will start to show a list with matches, or you can press the ```Select``` box and choose one from the list. |
| Host groups | Every host must belong to atleast one ```host group```. This is because permissions are set on host groups. You can type the name of the host group, and a list of matching groups will start to appear. Another way is to select a host group from an existing list by pressing the Select button. Or you can create a new group by just typing the name and pressing on the box that shows the name of the group you typed with (new) behind it |
| Interfaces | Zabbix supports several host interfaces, like the Zabbix agent, SNMP, JMX, and IPMI. By default, when we create a host, no interface is added. To add an interface, press Add and fill in the needed information, like IP or DNS, depending on the host interface chosen. When an interface is in use (items created that use the interface), then the interface cannot be removed. |
| Description | A place to enter a short description about our host. |
| Parameter | Description |
| :---- | :---- |
| Host name | Here we need to enter the Host name of the machine we would like to add. The name can contain alphanumerics, spaces, dots, dashes, and underscores. HOWEVER you are not allowed to use leading and trailing spaces. The Host name in the frontend is what we need later for the configuration of our Zabbix agent, so make sure you remember it.|
| Visible name | The host name, as we have seen, is needed to configure our Zabbix agent. So in case you like to give it a unique name or one that is randomly generated, ... you can add a visible name here. This name will then be used on the frontend instead of what we call the technical name host name. This name has support for UTF-8, so special characters are supported. This name will be used in all the places like maps, the latest data, inventory, ...|
| Templates | Templates are like blueprints that we can use on our hosts to add items, triggers, etc. We explain more about it in the topic Zabbix templates. You can start typing the name of the template, and Zabbix will start to show a list with matches, or you can press the ```Select``` box and choose one from the list. |
| Host groups | Every host must belong to atleast one ```host group```. This is because permissions are set on host groups. You can type the name of the host group, and a list of matching groups will start to appear. Another way is to select a host group from an existing list by pressing the Select button. Or you can create a new group by just typing the name and pressing on the box that shows the name of the group you typed with (new) behind it |
| Interfaces | Zabbix supports several host interfaces, like the Zabbix agent, SNMP, JMX, and IPMI. By default, when we create a host, no interface is added. To add an interface, press Add and fill in the needed information, like IP or DNS, depending on the host interface chosen. When an interface is in use (items created that use the interface), then the interface cannot be removed. |
| Description | A place to enter a short description about our host. |
| Monitored by proxy | If we have proxies configured, we can select them here if we like to monitor our host through a proxy.|
| Enabled | Mark the checkbox to enable the host. This will keep it monitored by Zabbix. When unchecked, the host will not be monitored.|
| Enabled | Mark the checkbox to enable the host. This will keep it monitored by Zabbix. When unchecked, the host will not be monitored.|

---

## Host configuration tabs

Before we add a host ourselves, there are a few things we need to know first.
When we click on a host that we have already configured, there are a few things that we will notice.
First of all, we see a ```blue``` line under ```Host```. This means that we are on the current ```tab``` of the host page.
As you can see, there are multiple tabs that we can click on, like IPMI, Tags, Macros,...
When we click on a host that we have already configured, there are a few things
that we will notice. First of all, we see a `blue` line under ```Host```.
This means that we are on the current ```tab``` of the host page.
As you can see, there are multiple tabs that we can click on, like IPMI, Tags, Macros,...

![Host menu bar](image/zabbix-hosts/host-menu-details.png){ width="600" }

The next thing we see is that next to the tab ```Macros```, there is a number 2. This is because there are two macros configured in the macro tab.
So when we add information to tabs like macros or tags ... , Zabbix will show how many items we have added to these tabs by showing next to the tab name the number.
The next thing we see is that next to the tab `Macros`, there is a number 2.
This is because there are two macros configured in the macro tab.
So when we add information to tabs like macros or tags ... ,
Zabbix will show how many items we have added to these tabs by showing next
to the tab name the number.

When looking at the ```encryption``` tab, we notice the green dot. This shows us that an option on the tab has been activated.
When looking at the `encryption` tab, we notice the green dot.
This shows us that an option on the tab has been activated.
Now that we know this, let's get a quick overview of every tab and see what it does.

---

### IPMI

So looking at the ```IPMI``` tab, there are a few things we need to fill in when working with an IPMI interface. IPMI stands for Intelligent Platform Management Interface and is basically a set of standards to manage hardware platforms. In short, it allows us to monitor and manage our servers hardware even if the server is not turned on yet. IPMI is better known as ILO on HP servers and DRAC on Dell servers.

| Parameter | Description |
| :---- | :---- |
| Autentication algorithm | Select the authentication algorithm that we have configured on our IPMI server this can be Default, none, MD2, MD5, Straight, OEM, RMCP+|
| Privelege level | Here we select the privelege level: Callback, User, Operator, Admin or OEM.|
| Username | The user for authentication that was created on the host. User Macros can be used. |
| Password | The password for our user on the host. User macros can be used. |
So looking at the `IPMI` tab, there are a few things we need to fill in when
working with an IPMI interface. IPMI stands for Intelligent Platform Management
Interface and is basically a set of standards to manage hardware platforms.
In short, it allows us to monitor and manage our servers hardware even if
the server is not turned on yet. IPMI is better known as ILO on HP servers
and DRAC on Dell servers.

| Parameter | Description |
| :---- | :---- |
| Autentication algorithm | Select the authentication algorithm that we have configured on our IPMI server this can be Default, none, MD2, MD5, Straight, OEM, RMCP+|
| Privelege level | Here we select the privelege level: Callback, User, Operator, Admin or OEM.|
| Username | The user for authentication that was created on the host. User Macros can be used. |
| Password | The password for our user on the host. User macros can be used. |

???+ Note
We will cover IPMI in more detail later in the Chapter [IPMI Monitoring](../extra-monitoring/IPMI-monitoring.md)
Expand All @@ -84,18 +99,23 @@ So looking at the ```IPMI``` tab, there are a few things we need to fill in when

### Tags

The **Tags** tab allows you to define host-level [tags](https://www.zabbix.com/documentation/current/en/manual/config/tagging). Host-level tags are used to provide additional information about the host that can be used as a filter in the webUi.
The **Tags** tab allows you to define host-level [tags](https://www.zabbix.com/documentation/current/en/manual/config/tagging).
Host-level tags are used to provide additional information about the host that
can be used as a filter in the webUi.

*example*:

We add a `datacenter` tag to physical hosts servers to indicate the location of the server and thus make it easy to list all the servers present in this datacenter, impacted by incident.
We add a `datacenter` tag to physical hosts servers to indicate the location of
the server and thus make it easy to list all the servers present in this datacenter,
impacted by incident.

---

### Macros

The **macros** tab allows you to define host-level [user macros](https://www.zabbix.com/documentation/current/en/manual/config/macros/user_macros.macr).
Macros in Zabbix can be seen as variables that can be overloaded at will. You need to use and abuse them to make templates as reusable as possible.
Macros in Zabbix can be seen as variables that can be overloaded at will.
You need to use and abuse them to make templates as reusable as possible.

???+ Note
We will cover Macro in more detail later in the Chapter [Macros](./zabbix-macros.md)
Expand All @@ -104,7 +124,9 @@ Macros in Zabbix can be seen as variables that can be overloaded at will. You ne

### Inventory

The Inventory tab allows you to manually enter [inventory](https://www.zabbix.com/documentation/current/en/manual/config/hosts/inventory) information for the host. You can also select to enable Automatic inventory population, or disable inventory population for this host.
The Inventory tab allows you to manually enter [inventory](https://www.zabbix.com/documentation/current/en/manual/config/hosts/inventory)
information for the host. You can also select to enable Automatic inventory population,
or disable inventory population for this host.

---

Expand All @@ -123,4 +145,5 @@ Il est possible de configurer l'encryption entre le Zabbix proxy/Zabbix server.

### Value Mapping

The Value mapping tab allows to configure human-friendly representation of item data in [value mappings](https://www.zabbix.com/documentation/current/en/manual/config/items/mapping).
The Value mapping tab allows to configure human-friendly representation of
item data in [value mappings](https://www.zabbix.com/documentation/current/en/manual/config/items/mapping).
Loading

0 comments on commit c4f8a47

Please sign in to comment.