A brief description: LoadRunner monitor Linux resources when 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.
The essence of the above problem is that the Linux system is not installed RPC.RSTATD, the service is not open cause.
And then we're going to test our speculation:
First see if RPC.RSTATD is installed
Here is the code snippet:
[Email protected] bin]# Whereis rpc.rstatd
If there is no rpc.rstatd in the list
Discovery System not installed RPC.RSTATD
Note: The RSTATD rstat protocol allows users on the network to obtain performance parameters for each machine on the same network.
Two ready to download package: Download RPC.RSTATD-4.0.1.TAR.GZ installation package
: HTTP://SOURCEFORGE.NET/PROJECTS/RSTATD
Upload rpc.rstatd-4.0.1.tar.gz package to Linux under/home/michael/tool/directory using SSH client
Three-Step installation package:
Here is the code snippet:
TAR-XZVF rpc.rstatd-4.0.1.tar.gz//Decompression RCP.RSTATD
CD rpc.rstatd-4.0.1//Enter into the RPC.RSTATD directory
./configure//Configuration RC.RSTATD installation, the following my is the default way
make//Compile RC.RSTATD
Make Install//install
Quad Restart XINETD
Here is the code snippet:
/etc/init.d/xinetd restart
Five modify the Disable settings in the ETC/XINETD.D directory under 3 conf (Rlogin, RSH, rexec) to No
Here is the code snippet:
CD/ETC/XINETD.D//Enter into the etc/xinetd.conf directory
Vi rlogin//Edit Disable=no, save
Vi rsh//Edit Disable=no, save
Vi rexec//Edit Disable=no, save
Six-start rpc.rstatd and detection
Here is the code snippet:
RPC.RSTATD//Start RPC.RSTATD process
Rpcinfo–p//execute this command to check the status of the RPC service
[Email protected] xinetd.d]# rpcinfo-p
Program Version Protocol port
Program vers Proto Port service
100000 4 TCP 111 Portmapper
100000 3 TCP 111 Portmapper
100000 2 TCP 111 Portmapper
100000 4 UDP 111 Portmapper
100000 3 UDP 111 Portmapper
100000 2 UDP 111 Portmapper
100024 1 UDP 40879 status
100024 1 TCP 53726 Status
100001 5 UDP 899 RSTATD
100001 3 UDP 899 RSTATD
100001 2 UDP 899 RSTATD
100001 1 UDP 899 RSTATD
See RSTATD, the RSTATD service has been started. You can use LR to monitor it.
Seven use the controller in Loadunner to monitor Linux resources
1 in the controller, drag the UNIX resources in the Systeme resourece graphs to the right-click Resource Monitoring Area
2 right mouse button Select Add measurements, add the IP address of the monitored Linux 192.168.52.189, select the performance metrics to monitor, confirm, as shown in the success ^_^
There may be prompts on the computer to access the measurement CPU utilization data, this is because you do not have this resource measurement, you add the computer at the time to add the resources to measure the CPU and the relevant information you need to be OK
This article from the "32 Krypton" blog, reproduced please contact the author!
LoadRunner How to monitor Linux system resources