Skip to content

Commit 970b830

Browse files
committed
Updated documentation for install-nginx-agent.md to follow new style updates per issue nginx#228
1 parent 4bc39bd commit 970b830

File tree

1 file changed

+23
-23
lines changed

1 file changed

+23
-23
lines changed

content/nms/nginx-agent/install-nginx-agent.md

+23-23
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ This section lists the prerequisites for installing and configuring NGINX Agent.
1717

1818
1. [F5 NGINX Management Suite is installed on a server]({{< relref "/nim/deploy/_index.md" >}}).
1919

20-
{{<note>}} When installing and configuring NGINX Management Suite, take note of the fully qualified domain name (FQDN) and gRPC port number. You'll need this information to properly configure the NGINX Agent to communicate with NGINX Management Suite.
20+
{{<note>}} When installing and configuring NGINX Management Suite, take note of the fully qualified domain name (FQDN) and gRPC port number. You'll need this information to properly configure NGINX Agent to communicate with NGINX Management Suite.
2121
{{</note>}}
2222

2323
2. Make sure NGINX is running on your instance:
@@ -26,13 +26,13 @@ This section lists the prerequisites for installing and configuring NGINX Agent.
2626
ps aux | grep nginx
2727
```
2828

29-
3. If a previous version of NGINX Agent was installed, you must stop the current NGINX Agent process before running the NGINX Agent install script. To check if any NGINX Agent processes are running, run the following command:
29+
3. If a previous version of NGINX Agent was installed, you must stop the current NGINX Agent process before running NGINX Agent install script. To check if any NGINX Agent processes are running, run the following command:
3030

3131
```bash
3232
ps aux | grep nginx-agent
3333
```
3434

35-
4. If a previous version of NGINX Agent was installed, make sure to uninstall `nginx-agent-selinux` before running the NGINX Agent install script.
35+
4. If a previous version of NGINX Agent was installed, make sure to uninstall `nginx-agent-selinux` before running NGINX Agent install script.
3636
To see if `nginx_agent_selinux` is installed, run the following command:
3737

3838
{{<tabs name="install_repo">}}
@@ -58,7 +58,7 @@ To see if `nginx_agent_selinux` is installed, run the following command:
5858

5959
## Install NGINX Agent
6060

61-
You can choose one of the following two methods to install the NGINX Agent on your data plane host:
61+
You can choose one of the following two methods to install NGINX Agent on your data plane host:
6262

6363
- Install via the NGINX Management Suite API Gateway
6464
- Install from packages downloaded from [MyF5 Customer Portal](https://account.f5.com/myf5) or from your NGINX/F5 sales team.
@@ -79,7 +79,7 @@ You can choose one of the following two methods to install the NGINX Agent on yo
7979

8080
## Enable and Start NGINX Agent
8181

82-
Run the following command to enable and start the NGINX Agent service:
82+
Run the following command to enable and start NGINX Agent service:
8383

8484
```bash
8585
sudo systemctl enable nginx-agent --now
@@ -89,7 +89,7 @@ sudo systemctl enable nginx-agent --now
8989

9090
## Verifying NGINX Agent is Running and Registered
9191

92-
Run the following command on your data plane to verify that the NGINX Agent process is running:
92+
Run the following command on your data plane to verify that NGINX Agent process is running:
9393

9494
```bash
9595
ps aux | grep nginx-agent
@@ -102,7 +102,7 @@ root 293850 109 1.1 1240056 23536 ? Ssl 22:00 0:07 /usr/local/bi
102102
vagrant 293866 0.0 0.0 8160 736 pts/0 S+ 22:00 0:00 grep --color=auto nginx-agent
103103
```
104104

105-
Once you've verified the NGINX Agent is running on your data plane, you should confirm it's registered with NGINX Management Suite. You can do this two ways:
105+
Once you've verified NGINX Agent is running on your data plane, you should confirm it's registered with NGINX Management Suite. You can do this two ways:
106106

107107
{{<tabs name="verify-nginx">}}
108108

@@ -128,35 +128,35 @@ In a web browser, go to the FQDN for your NGINX Management Suite host and log in
128128

129129
<br>
130130

131-
Once you've verified the NGINX Agent instance is registered with NGINX Management Suite, no additional action is required for monitoring the instance.
131+
Once you've verified NGINX Agent instance is registered with NGINX Management Suite, no additional action is required for monitoring the instance.
132132
133133
{{<note>}}
134-
If you need to remove the instance, ensure that the NGINX Agent service is stopped first. Then you can remove the instance from the inventory.
134+
If you need to remove the instance, ensure that NGINX Agent service is stopped first. Then you can remove the instance from the inventory.
135135
{{</note>}}
136136
137137
---
138138
139139
## Configuring the NGINX Agent
140140
141-
The following sections explain how to configure the NGINX Agent using configuration files, CLI flags, and environment variables.
141+
The following sections explain how to configure NGINX Agent using configuration files, CLI flags, and environment variables.
142142
143143
{{<note>}}
144144
145-
- The NGINX Agent interprets configuration values set by configuration files, CLI flags, and environment variables in the following priorities:
145+
- NGINX Agent interprets configuration values set by configuration files, CLI flags, and environment variables in the following priorities:
146146
147147
1. CLI flags overwrite configuration files and environment variable values.
148148
2. Environment variables overwrite configuration file values.
149149
3. Config files are the lowest priority and config settings are superseded if either of the other options is used.
150150
151-
- The NGINX Agent is configured by default to connect to the NGINX Management Suite on port 443 based on the address used to download the install script. If this setting doesn't work, you can change the `server` fields in the `nginx-agent.conf` file. Instructions are provided in the following sections.
151+
- NGINX Agent is configured by default to connect to the NGINX Management Suite on port 443 based on the address used to download the install script. If this setting doesn't work, you can change the `server` fields in the `nginx-agent.conf` file. Instructions are provided in the following sections.
152152

153153
- Open any required firewall ports or SELinux/AppArmor rules for the ports and IPs you want to use.
154154

155155
{{</note>}}
156156

157157
### Configure with Config Files
158158

159-
The configuration files for the NGINX Agent are `/etc/nginx-agent/nginx-agent.conf` and `/var/lib/nginx-agent/agent-dynamic.conf`. These files have comments at the top indicating their purpose.
159+
The configuration files for NGINX Agent are `/etc/nginx-agent/nginx-agent.conf` and `/var/lib/nginx-agent/agent-dynamic.conf`. These files have comments at the top indicating their purpose.
160160

161161
{{<note>}}If you're running Instance Manager 2.10.1 or earlier or NGINX Agent 2.25.1 or earlier, the `agent-dynamic.conf` file is located in `/etc/nginx-agent/`.{{</note>}}
162162
@@ -168,7 +168,7 @@ Examples of the configuration files are provided below:
168168
{{<note>}}
169169
In the following example `nginx-agent.conf` file, you can change the `server.host` and `server.grpcPort` to connect to the NGINX Management Suite.
170170
171-
If NGINX Agent was previously installed for data reporting purposes only, you may need to find and remove the following line from the NGINX Agent configuration file:
171+
If NGINX Agent was previously installed for data reporting purposes only, you may need to find and remove the following line from NGINX Agent configuration file:
172172
173173
```none
174174
features: registration,dataplane-status
@@ -231,7 +231,7 @@ extensions:
231231

232232
# Enable reporting NGINX App Protect details to the control plane.
233233
nginx_app_protect:
234-
# Report interval for NGINX App Protect details - the frequency the NGINX Agent checks NGINX App Protect for changes.
234+
# Report interval for NGINX App Protect details - the frequency NGINX Agent checks NGINX App Protect for changes.
235235
report_interval: 15s
236236
# Enable precompiled publication from the NGINX Management Suite (true) or perform compilation on the data plane host (false).
237237
precompiled_publication: true
@@ -271,7 +271,7 @@ tags:
271271
272272
## CLI Flags & Environment Variables
273273
274-
This section details the CLI flags and corresponding environment variables used to configure the NGINX Agent.
274+
This section details the CLI flags and corresponding environment variables used to configure NGINX Agent.
275275
276276
### Usage
277277
@@ -323,7 +323,7 @@ If you are upgrading from an older version, update your configuration accordingl
323323
| `--nginx-exclude-logs` | `NGINX_AGENT_NGINX_EXCLUDE_LOGS` | Specifies paths of NGINX access logs to exclude from metrics collection. |
324324
| `--nginx-socket` | `NGINX_AGENT_NGINX_SOCKET` | Specifies the location of the NGINX Plus counting Unix socket. Default: *unix:/var/run/nginx-agent/nginx.sock* |
325325
| `--nginx-treat-warnings-as-errors` | `NGINX_AGENT_NGINX_TREAT_WARNINGS_AS_ERRORS` | Treats warnings as failures on configuration application. |
326-
| `--queue-size` | `NGINX_AGENT_QUEUE_SIZE` | Specifies the size of the NGINX Agent internal queue. |
326+
| `--queue-size` | `NGINX_AGENT_QUEUE_SIZE` | Specifies the size of NGINX Agent internal queue. |
327327
| `--server-command` | | Specifies the name of the command server sent in the TLS configuration. |
328328
| `--server-grpcport` | `NGINX_AGENT_SERVER_GRPCPORT` | Sets the desired GRPC port for NGINX Agent traffic. |
329329
| `--server-host` | `NGINX_AGENT_SERVER_HOST` | Specifies the IP address of the server host. |
@@ -402,7 +402,7 @@ Additionally, you can use the agent installation script to add these fields:
402402
403403
## SELinux for NGINX Agent
404404
405-
This section explains how to install and configure the SELinux policy for the NGINX Agent.
405+
This section explains how to install and configure the SELinux policy for NGINX Agent.
406406
407407
### Installing NGINX Agent SELinux Policy Module
408408
@@ -412,13 +412,13 @@ The NGINX Agent package includes the following SELinux files:
412412
- `/usr/share/selinux/devel/include/contrib/nginx_agent.if`
413413
- `/usr/share/selinux/packages/nginx_agent.pp`
414414
415-
To load the NGINX Agent policy, run the following commands:
415+
To load NGINX Agent policy, run the following commands:
416416
417417
{{< include "installation/agent-selinux.md" >}}
418418
419419
### Adding Ports for NGINX Agent SELinux Context
420420
421-
You can configure the NGINX Agent to work with SELinux. Make sure you add external ports to the firewall exception list.
421+
You can configure NGINX Agent to work with SELinux. Make sure you add external ports to the firewall exception list.
422422
423423
The following example shows how to allow external ports outside the HTTPD context. You may need to enable NGINX to connect to these ports.
424424
@@ -430,11 +430,11 @@ For additional information on using NGINX with SELinux, refer to the guide [Usin
430430
431431
---
432432
433-
## Secure the NGINX Agent with mTLS
433+
## Secure NGINX Agent with mTLS
434434
435-
{{< important >}}By default, communication between the NGINX Agent and NGINX Management Suite is unsecured.{{< /important >}}
435+
{{< important >}}By default, communication between NGINX Agent and NGINX Management Suite is unsecured.{{< /important >}}
436436
437-
For instructions on how configure mTLS to secure communication between the NGINX Agent and NGINX Management Suite, see [NGINX Agent TLS Settings](https://docs.nginx.com/nginx-agent/configuration/encrypt-communication/).
437+
For instructions on how configure mTLS to secure communication between NGINX Agent and NGINX Management Suite, see [NGINX Agent TLS Settings](https://docs.nginx.com/nginx-agent/configuration/encrypt-communication/).
438438
439439
---
440440

0 commit comments

Comments
 (0)