First, check whether the system has RPC service installed
Using LR to monitor Linux, first check to see if the system has the RPC service turned on, and then check to see if the Linux system Daemon Rpc.restat is started, which is a necessary process. can be viewed by command rpcinfo-p, such as:
Description The RPC service is not installed
Second, installation, start RPC.RSTATD
1. Download RPC installation package:: Https://pan.baidu.com/s/1i44OMpB
2, the download of the installation package through the RZ command to upload to the user's home directory, such as:
3, unzip the file: TAR–ZXVF rpc.rstatd-4.0.1.tar.gz
4. Enter the extracted directory to execute./configure, such as:
The error shown in the Discovery report is as follows:
By querying the data to show that the system is to install GCC, and then install GCC, such as:
GCC–V//See if GCC is installed
Yum–y install GCC//online installation of GCC
Continue execution after installation is complete./configure, found to be installed properly, such as:
5, to compile, install: command: Make && made install, such as:
6, start rpc.rstatd, found errors such as:
Cannot register service:RPC:Unable to receive; errno = Connection refused
Through the Baidu query found is because the server does not open port mapping function, that is, Portmap does not start, resulting in failure to start, after the query in Centos6 portmap to Rpcbind, so need to install Rpcbind services.
7, online installation rpcbind,yum–y install Rpcbind, such as:
Start the service after installation is complete
Service Rpcbind Start
8. Start RPC.RSTATD (/HOME/WYH/RPC.RSTATD-4.0.1/RPC.RSTATD), use rpcinfo–p to see if the boot is successful, start the display as shown below:
Iii. LR Configuration Instructions
Switch to LoadRunner controller to configure the monitoring target under UNIX resources, put the mouse on the UNIX resources view right click on select Addmeasurements, click Add, enter the server IP address and server operating system. Such as:
The final effect looks like this:
Finally, the meanings of several common indicators are listed:
Average load: Average load over the last 1 minutes
CPU UTILIZATION:CPU Utilization
Disk Traffic:disk transfer Rate
Paging Rate: The number of memory pages per second read from disk to physical memory, or from physical memory to the paging file
Swap-in Rate: Number of processes swapped to memory per second
Swap-out Rate: Number of processes swapped out of memory per second
*********************************************************************************************
Summary of the problems encountered and summary of the problems found in the query:
1, LoadRunner monitoring Linux resources, the following error pops up:
Monitor Name:unix Resources. Cannot initialize the monitoring on 192.168.52.189. Error while creating the RPC client. Ensure that the machine can is connected and that it runs the Rstat daemon (use Rpcinfo utility for this verification). Detailed error:RPC:Failed
To create RPC client.
Rpc-tcp:failed to establish RPC server address.
Cause: The Linux system does not have the installation of RPC.RSTATD, the service is not open cause.
Workaround: Install RPC.RSTATD as described above and monitor Linux by turning it on.
2, Configure:error:no acceptable C compiler found in $PATH
Cause: The GCC compiler is not installed. Typing gcc–v on the command line, if you are prompted by command not found, indicates that the GCC compiler is not installed in your system
Workaround: Yum Install gcc
3, cannot register service:RPC:Unable to receive; errno = Connection refused
Cause: The function of port mapping is not turned on, that is, Portmap does not start, which causes the startup to fail, and the CENTOS6 Portmap is changed to Rpcbind, so the Rpcbind service needs to be installed.
Workaround: Yum–y Install Rpcbind
***************************************************************************************
Reference Documentation:
Http://blog.chinaunix.net/uid-23914782-id-3423742.html
Http://www.cnblogs.com/yangxia-test/archive/2012/11/27/2790771.html
http://linuxjcq.blog.51cto.com/3042600/722237/
LR Monitoring Linux system resources