How To Install Nginx Amplify Agent on CentOS 7

In this tutorial we will show you how to install Nginx Amplify Agent on your CentOS 7 server. For those of you who didn’t know, For those of you who didn’t know, Nginx Amplify Agent is a Strong Nginx monitoring tool written in Python. Its function is to collect various metrics and metadata and send Them securely into the backend for storage and visualization. After appropriate Installation, it supplies you with NGINX Amplify web interface and also you Should observe real-time metrics to your monitored systems.

This article assumes you have at least basic knowledge of Linux, know how to use the shell, and most importantly, you host your site on your own VPS. The installation is quite simple and assumes you are running in the root account, if not you may need to add ‘sudo’ to the commands to get root privileges. I will show you through the step by step installation the Nginx Amplify Agent monitoring tool on a CentOS 7 server.

Install Nginx Amplify Agent on CentOS 7

Step 1. First let’s start by ensuring your system is up-to-date.

1

2

yumcleanall

yum-yupdate

Step 2. Installing Nginx Amplify Agent.

First, Create a repo file:

1

2

3

4

5

6

7

8

# cat >/etc/yum.repos.d/nginx-amplify.repo <<EOF

[nginx-amplify]

name=nginxamplifyrepo

baseurl=http://packages.amplify.nginx.com/centos/7/\$basearch

gpgcheck=1

gpgkey=http://nginx.org/keys/nginx_signing.key

enabled=1

EOF

Install the Nginx Amplify Agent rpm package:

1

yuminstallnginx-amplify-agent

Verify the installtion by inspectivng the log file ‘/var/log/amplify-agent/agent.log‘

Once installed, These commands can be used to start/stop the agent:

1

2

systemctlenableamplify-agent

systemctlstartamplify-agent

Step 3. Configuring the Nginx Amplify Agent.

Checklist:

stub status

extended access logging

‘warn’ level on error logging

1

2

3

4

5

6

7

8

9

10

11

12

13

14

server{

listen[::]:80;

server_namebmw.idroot.netlocalhost[::1]127.0.0.1;

keepalive_timeout60;

location/nginx_status{

stub_status;

access_logoff;

allow::1;

allow127.0.0.1;

denyall;

}

}

The logging needs to be confiured to have extended information as per the documentation:

Finally steps, You can overview the status of our monitored server in the Web interface logging to your Amplify Account as in the snapshot:

Congratulation’s! You have successfully installed Nginx Amplify. Thanks for using this tutorial for installing Nginx Amplify monitoring tool on CentOS 7 systems. For additional help or useful information, we recommend you to check the official Nginx Amplify Agent web site.

VPS Manage Service Offer

If you don’t have time to do all of this stuff, or if this is not your area of expertise, we offer a service to do “VPS Manage Service Offer”, starting from $10 (Paypal payment). Please contact us to get a best deal!