[Original] How LoadRunner monitors Linux system resources
I. Description: the following error is prompted when LoadRunner monitors Linux resources:
Monitor name: Unix resources. cannot initialize the monitoring on 192.168.52.189. error while creating the RPC client. ensure that the machine can be 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 reason for the above problem is that rpc. rstatd is not installed in Linux and the service is not enabled.
Then we will verify our speculation:
First, check whether RPC. rstatd is installed.
[Root @ localhost bin] # whereis rpc. rstatd
Rpc. rstatd is not installed in the system.
Note: The rstatd rstat protocol allows users on the network to obtain the performance parameters of each machine on the same network.
2. Download the package: Download The rpc.rstatd-4.0.1.tar.gz installation package
: Http://sourceforge.net/projects/rstatd
Use sshclient to upload the rpc.rstatd-4.0.1.tar.gz package to the/home/Michael/tool/directory in Linux.
3. Run the installation package:
Tar-xzvf rpc.rstatd-4.0.1.tar.gz // extract RCP. rstatd
CD rpc. rstatd-4.0.1 // enter the rpc. rstatd directory
./Configure // configure the installation of RC. rstatd. Which of the following statements is based on the default method?
Make // compile RC. rstatd
Make install // install
4. Restart xinetd
/Etc/init. d/xinetd restart
5. Modify disable settings in the three conf (rlogin, RSH, rexec) under the ETC/xinetd. d directory to no
CD/etc/xinetd. d // enter the ETC/xinetd. conf directory.
VI rlogin // edit disable = No, save
Vi rsh // edit disable = No, save
VI rexec // edit disable = No, save
6. Start rpc. rstatd and Detection
Rpc. rstatd // start the rpc. rstatd Process
Rpcinfo-P // run this command to check the RPC service status
[Root @ localhost xinetd. d] # rpcinfo-P
Program version protocol port
100000 2 TCP 111 Portmapper
100000 2 UDP 111 Portmapper
100024 1 udp 32768 status
100024 1 tcp 32769 status
100001 5 UDP 867 rstatd
100001 3 UDP 867 rstatd
100001 2 UDP 867 rstatd
100001 1 udp 867 rstatd
7. Use the Controller in loadunner to monitor Linux Resources
1. In the controller, drag the Unix resources in systeme resourece graphs to the right-click resource monitoring area.
2. Right-click Add measurements, add the IP address 192.168.52.189 of the monitored Linux instance, and select the performance indicator to be monitored. After confirmation, as shown in, "successfully completed _ ^"