Table of contents
1.
Introduction
2.
Server Monitoring
3.
Preparing Servers for Monitoring
3.1.
Windows:
3.2.
IIS & MSSQL: 
3.2.1.
Unix
3.3.
Apache
3.4.
MySQL
3.5.
Oracle
4.
 A Quick Start Guide to - Server Monitoring:
4.1.
Prepare the server for monitoring:
4.2.
Add a server
4.3.
Add additional Monitors
4.4.
Configure the Runtime Statistics
4.5.
Run the Load Tests
4.6.
Inspect Statistics after the Test run
5.
Frequently Asked Questions
5.1.
ReadyAPI supports how many kinds of Monitors?
5.2.
Do we need to prepare MongoDB servers?
5.3.
What does it mean if the created server is marked with a disconnected symbol ?
6.
Conclusion
Last Updated: Mar 27, 2024

What is server monitoring in the Ready API?

Author Anmol Punetha
0 upvote
Career growth poll
Do you think IIT Guwahati certified course can help you in your career?
OG Image

Introduction

Ready API

 

While running the load tests, we create loads the server must control in a specific way. ReadyAPI tracks numerous metrics of the web server. These are the ones in which we run our tests and check if it performs the way you expected them to perform.

To use this feature of ReadyAPI, we use the Monitoring page.

Server Monitoring

ReadyAPI will gather all the accessible metrics from the web servers on which the tests are performed and display the most important ones as a graphical representation at the bottom of the page in actual time during the test run itself.

You can view all the gathered data on the Statistics page. Usually, the collected information includes accessible server metrics and the statistics such as the number of users and the server's response time.

Preparing Servers for Monitoring

Windows:

The windows based servers use the PDH, i.e., the Performance Data Helper component, to disclose the performance metrics to ReadyAPI. 

If data is to be obtained from a remote host, the following requirements are a must:

  • ReadyAPI must be running on a Windows machine
     
  • The account that is used to connect to the server must be a part of either of the following user groups: 
    • Administrators
    • Performance Log Users
    • Performance Monitor Users
       
  • The Remote Registry Windows service should be permitted and started on our monitored remote machine.
    • This requirement is optional if the server occupies the same computer where the ReadyAPI is running.
    • To permit the Remote Registry Windows service, open the “Run” box by Win+R, and start services.msc process, and in the services app, start Select by right-clicking on the remote registry. 

IIS & MSSQL: 

To monitor the IIS server and MSSQL database, we prepare the servers the same way we did for windows.

Unix

  1. Install Net-SNMP on your server by using one of the following commands:
sudo apt-get install snmpd or sudo apt-get install snmp

 

2. Edit the /etc/snmp/snmpd.conf file. Also, uncomment the below agent behavior line:

agentAdress udp:161,udp6:[::1]:161

 

3. To allow access to server metrics, add the following code to the snmpd.conf file.

4. Edit the  /etc/default/snmpd file and confirm that the row that begins with SNMPDOPTS doesn’t have any trailing addresses.

5. Restart the server after changing the configuration of snmpd by:

/etc/init.d/snmpd restart

Apache

To monitor the Apache servers, the mod_status module must be authorized.

The configuration is very easy, 

To enable only for some domains, add apacheConf to the bottom of the httpd.conf file and to use extended counters, add ExtendedStatus On to the httpd.conf file.

MySQL

To access the MySQL monitor, we need a database user account. 

A new user can be created with the following command:

CREATE USER ‘UserName’@’%’ IDENTIFIED BY ‘UserPassword’;

Oracle

To access the Oracle monitor, we need a database user account, and the user will need access to the V$METRIC table.

 A Quick Start Guide to - Server Monitoring:

Let us start by creating a monitor for the server on the same pc where the ReadyAPI is running. There will be no unusual requirement to configure the server in this case. We only need to make sure that the user account that is used to connect to the server and runs the load test must be a part of either of the following user groups: 

  • Administrators
  • Performance Log Users
  • Performance Monitor Users
     

The steps to create a server monitor are:

Prepare the server for monitoring:

Before assembling server metrics, prepare the server for monitoring 

Add a server

To add or create a server monitor, go to the monitoring page, and click on the toolbar. Doing so, the Add server dialog box will appear in this box:

  •  Enter the server name in the field of Server Name, and ReadyAPI will use this name.
  • Enter the server address in the field of Host Name. Entering the IP address also works.
  • Enter the name of the monitor in the Monitor Name field.
  • Select the default monitor for your server from the Monitor Type field.

Add Server

Source : Smartbear

Once the created server is successfully connected to ReadyAPI, it’ll get marked with the connection symbol.

Add additional Monitors

Additional monitors can be added to monitor other metrics, such as metrics from the database or HTTP server.

 To do so, click on and add a new monitor by selecting a different monitor type.

Configure the Runtime Statistics

When we add a new server, all the default metrics get added to the Server Monitoring Chart. To see those metrics or add/remove the default metrics, click on this icon in the panel. To add a metric not already present, find it in the tree and choose the respective check box.

Run the Load Tests

Click on the Run button ( ) to start the load tests. ReadyAPI will then assemble performance metrics and start simulating user requests. To see the gathered metrics, visit the Server Monitoring Chart section.

Server Monitoring Chart

Source : Smartbear

Inspect Statistics after the Test run

To view the statistics, go to the Statistics page and on this page, click  button to add a new stats group. To display the statistics, we can choose the statistics from the desired server in the server monitors list.

Frequently Asked Questions

ReadyAPI supports how many kinds of Monitors?

ReadyAPI supports the following Monitors: 

Windows, Unix, Apache, IIS, MSSQL, Oracle, MySQL, WildFly, and TomCat.

Do we need to prepare MongoDB servers?

No, the MongoDB servers do not need to be prepared for them to be monitored.

What does it mean if the created server is marked with a disconnected symbol ?

It means that the ReadyAPI was unable to connect successfully to the server. To solve the issue, check the server settings and connection properties and press Test Connection.

Conclusion

So, with this, we saw about server monitoring in Ready API. I hope that the blog was informative.

See Basics of C++ with Data StructureDBMSOperating System by Coding Ninjas, and keep practicing on our platform Coding Ninjas Studio.

If you think you are ready for the tech giants company, check out the mock test series on code studio.

You can also refer to our Guided Path on Coding Ninjas Studio to upskill yourself in domains like Data Structures and AlgorithmsCompetitive ProgrammingAptitude, and many more! You can also prepare for tech giants companies like Amazon, Microsoft, Uber, etc., by looking for the questions asked by them in recent interviews. If you want to prepare for placements, refer to the interview bundle. If you are nervous about your interviews, you can see interview experiences to get ideas about these companies' questions.

Nevertheless, you may consider our premium courses to give your career an edge over others!

Do upvote our blogs if you find them helpful and engaging!

Happy Learning!

Thank You Image

 

Live masterclass