You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: how-to/observability/install-nagios.md
+18-12Lines changed: 18 additions & 12 deletions
Original file line number
Diff line number
Diff line change
@@ -1,8 +1,9 @@
1
1
(install-nagios)=
2
2
# How to install and configure Nagios Core 3
3
3
4
-
> **Note**:
5
-
> Nagios Core 3 has been deprecated and is now replaced by Nagios Core 4. The `nagios3` package was last supported in Bionic, so subsequent releases should use `nagios4` instead.
4
+
```{note}
5
+
Nagios Core 3 has been deprecated and is now replaced by Nagios Core 4. The `nagios3` package was last supported in Bionic, so subsequent releases should use `nagios4` instead.
6
+
```
6
7
7
8
The monitoring of essential servers and services is an important part of system administration. This guide walks through how to install and configure Nagios Core 3 for availability monitoring.
8
9
@@ -40,8 +41,9 @@ Next, on `server02` install the `nagios-nrpe-server` package. From a terminal on
40
41
sudo apt install nagios-nrpe-server
41
42
```
42
43
43
-
> **Note**:
44
-
> NRPE allows you to execute local checks on remote hosts. There are other ways of accomplishing this through other Nagios plugins, as well as other checks.
44
+
```{note}
45
+
NRPE allows you to execute local checks on remote hosts. There are other ways of accomplishing this through other Nagios plugins, as well as other checks.
46
+
```
45
47
46
48
## Configuration overview
47
49
@@ -57,8 +59,9 @@ There are a couple of directories containing Nagios configuration and check file
57
59
58
60
There are multiple checks Nagios can be configured to execute for any given host. For this example, Nagios will be configured to check disk space, {term}`DNS`, and a MySQL {term}`hostgroup`. The DNS check will be on `server02`, and the MySQL hostgroup will include both `server01` and `server02`.
59
61
60
-
> **Note**:
61
-
> See these guides for details on [setting up Apache](https://discourse.ubuntu.com/t/web-servers-apache/11510), [Domain Name Service](https://discourse.ubuntu.com/t/service-domain-name-service-dns/11318), and [MySQL](https://discourse.ubuntu.com/t/databases-mysql/11515).
62
+
```{note}
63
+
See these guides for details on [setting up Apache](https://discourse.ubuntu.com/t/web-servers-apache/11510), [Domain Name Service](https://discourse.ubuntu.com/t/service-domain-name-service-dns/11318), and [MySQL](https://discourse.ubuntu.com/t/databases-mysql/11515).
64
+
```
62
65
63
66
Additionally, there are some terms that once explained will hopefully make understanding Nagios configuration easier:
64
67
@@ -85,9 +88,11 @@ First, create a **host** configuration file for `server02`. Unless otherwise spe
> In all command examples, replace "`server01`", "`server02`", `172.18.100.100`, and `172.18.100.101` with the host names and IP addresses of your servers.
91
+
```
92
+
93
+
```{note}
94
+
In all command examples, replace "`server01`", "`server02`", `172.18.100.100`, and `172.18.100.101` with the host names and IP addresses of your servers.
95
+
```
91
96
92
97
### Edit the host config file
93
98
@@ -148,9 +153,10 @@ The Nagios check needs to authenticate to MySQL. To add a `nagios` user to MySQL
148
153
mysql -u root -p -e "create user nagios identified by 'secret';"
149
154
```
150
155
151
-
>**Note**:
152
-
> The `nagios` user will need to be added to all hosts in the **mysql-servers** hostgroup.
153
-
156
+
```{note}
157
+
The `nagios` user will need to be added to all hosts in the **mysql-servers** hostgroup.
158
+
```
159
+
154
160
Restart nagios to start checking the MySQL servers.
Copy file name to clipboardExpand all lines: how-to/observability/set-up-your-lma-stack.md
+5-2Lines changed: 5 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -1,8 +1,11 @@
1
1
(set-up-your-lma-stack)=
2
2
# Set up your LMA stack
3
3
4
-
> **LMA to COS**
5
-
> The LMA stack is being succeeded by the Canonical Observability Stack (COS). While the current LMA still works, most users are recommended to consider COS instead. For more information, refer to [this COS topic](https://charmhub.io/topics/canonical-observability-stack/). In environments with more limited resources, there is also [COS lite](https://charmhub.io/topics/canonical-observability-stack/editions/lite).
4
+
```{note}
5
+
**LMA to COS**
6
+
7
+
The LMA stack is being succeeded by the Canonical Observability Stack (COS). While the current LMA still works, most users are recommended to consider COS instead. For more information, refer to [this COS topic](https://charmhub.io/topics/canonical-observability-stack/). In environments with more limited resources, there is also [COS lite](https://charmhub.io/topics/canonical-observability-stack/editions/lite).
8
+
```
6
9
7
10
Logging, Monitoring, and Alerting (LMA) is a collection of tools that guarantee the availability of your running infrastructure. Your LMA stack will help point out issues in load, networking, and other resources before they become a failure point.
Copy file name to clipboardExpand all lines: how-to/observability/use-nagios-with-munin.md
+25-17Lines changed: 25 additions & 17 deletions
Original file line number
Diff line number
Diff line change
@@ -1,8 +1,9 @@
1
1
(use-nagios-with-munin)=
2
2
# How to use Nagios with Munin
3
3
4
-
> **Note**:
5
-
> Nagios Core 3 has been deprecated and is now replaced by Nagios Core 4. The `nagios3` package was last supported in Bionic, so subsequent releases should use `nagios4` instead.
4
+
```{note}
5
+
Nagios Core 3 has been deprecated and is now replaced by Nagios Core 4. The `nagios3` package was last supported in Bionic, so subsequent releases should use `nagios4` instead.
6
+
```
6
7
7
8
The monitoring of essential servers and services is an important part of system administration. Most network services are monitored for performance, availability, or both. This section will cover installation and configuration of Nagios 3 for availability monitoring alongside Munin for performance monitoring.
8
9
@@ -40,8 +41,9 @@ Next, on `server02` install the `nagios-nrpe-server` package. From a terminal on
40
41
sudo apt install nagios-nrpe-server
41
42
```
42
43
43
-
> **Note**:
44
-
> NRPE allows you to run local checks on remote hosts. There are other ways of accomplishing this, including through other Nagios plugins.
44
+
```{note}
45
+
NRPE allows you to run local checks on remote hosts. There are other ways of accomplishing this, including through other Nagios plugins.
46
+
```
45
47
46
48
### Configuration overview
47
49
@@ -59,8 +61,9 @@ There are a few directories containing Nagios configuration and check files.
59
61
60
62
There are many checks Nagios can be configured to run for any particular host. In this example, Nagios will be configured to check disk space, {term}`DNS`, and a MySQL {term}`host group <hostgroup>`. The DNS check will be on `server02`, and the MySQL host group will include both `server01` and `server02`.
61
63
62
-
> **Note**:
63
-
> See these additional guides for details on setting up {ref}`Apache <install-apache2>`, {ref}`Domain Name Service (DNS) <install-dns>`, and {ref}`MySQL <install-mysql>`.
64
+
```{note}
65
+
See these additional guides for details on setting up {ref}`Apache <install-apache2>`, {ref}`Domain Name Service (DNS) <install-dns>`, and {ref}`MySQL <install-mysql>`.
66
+
```
64
67
65
68
Additionally, there are some terms that once explained will hopefully make understanding Nagios configuration easier:
> In the above and following command examples, replace "`server01`", "`server02`", `172.18.100.100`, and `172.18.100.101` with the host names and IP addresses of your servers.
93
+
```{note}
94
+
In the above and following command examples, replace "`server01`", "`server02`", `172.18.100.100`, and `172.18.100.101` with the host names and IP addresses of your servers.
95
+
```
92
96
93
97
Next, edit `/etc/nagios3/conf.d/server02.cfg`:
94
98
@@ -143,9 +147,10 @@ The Nagios check needs to authenticate to MySQL. To add a `nagios` user to MySQL
143
147
```bash
144
148
mysql -u root -p -e "create user nagios identified by 'secret';"
145
149
146
-
> **Note**:
147
-
> The `nagios` user will need to be added all hosts in the `mysql-servers` host group.
148
-
150
+
```{note}
151
+
The `nagios` user will need to be added all hosts in the `mysql-servers` host group.
152
+
```
153
+
149
154
Restart Nagios to start checking the MySQL servers.
150
155
151
156
```bash
@@ -220,8 +225,9 @@ On `server01` edit the `/etc/munin/munin.conf` to add the IP address for `server
220
225
address 172.18.100.101
221
226
```
222
227
223
-
> **Note**:
224
-
> Replace `server02` and `172.18.100.101` with the actual hostname and IP address of your server.
228
+
```{note}
229
+
Replace `server02` and `172.18.100.101` with the actual hostname and IP address of your server.
230
+
```
225
231
226
232
### Configure munin-node on server02
227
233
@@ -231,8 +237,9 @@ To configure `munin-node` on `server02`, edit `/etc/munin/munin-node.conf` to al
231
237
allow ^172\.18\.100\.100$
232
238
```
233
239
234
-
> **Note**:
235
-
> Replace `^172\.18\.100\.100$` with IP address for your Munin server.
240
+
```{note}
241
+
Replace `^172\.18\.100\.100$` with IP address for your Munin server.
242
+
```
236
243
237
244
Now restart `munin-node` on `server02` for the changes to take effect:
Finally, in a browser go to `http://server01/munin`, and you should see links to some graphs displaying information from the standard `munin-plugins` for disk, network, processes, and system.
244
251
245
-
> **Note**:
246
-
> Since this is a new install it may take some time for the graphs to display anything useful.
252
+
```{note}
253
+
Since this is a new install it may take some time for the graphs to display anything useful.
0 commit comments