LoadRunner monitors Linux
The rstat protocol allows users on the network to obtain the performance parameters of each machine on the same network.
Three packages need to be downloaded:
(1) rsh-0.17-14.i386.rpm
(2) rsh-server-0.17-14.i386.rpm
(3366rpc.rstatd-4.0.1.tar.gz
I,InstallRsh
Check whether RSH is installed and uninstalled
[Root @ localhost/] # rpm-Qa | grep RSH -- check whether RSH is installed
[Root @ localhost/] # rpm-e + version -- Uninstall this version
Install RSH and rsh-Server
[Root @ localhost/] # rpm-IVH rsh-0.17-14.i386.rpm
[Root @ localhost/] # rpm-IVH rsh-server-0.17-14.i386.rpm
Ii. InstallationRstatd
Download and install rstatd, http://sourceforge.net/projects/rstatd, and upload it to /usr/local
Check whether the tool is installed. Generally, it is not installed in Linux.
[Root @ localhost/] # Find/-name rpc. rstatd
Install rstatd
[Root @ localhost/] # tar-xzvf rpc.rstatd-4.0.1.tar.gz
[Root @ localhost/] # cd rpc. rstatd-4.0.1
[Root @ localhost/] #./configure
[Root @ localhost/] # Make
[Root @ localhost/] # make install
Iii. Configuration after installationRstatdTarget daemonXinetd, The configuration file is in/Etc/xinet. dDirectory
Modify disable in the three conf (rogin, RSH, rexec) under the/etc/xinetd. d directory to no
[Root @ localhost/] # cd/etc/xinetd. d -- enter the/etc/xinetd. conf directory.
[Root @ localhost/] # vi rlogin -- edit disable = No and save
[Root @ localhost/] # vi RSH -- edit disable = No and save
[Root @ localhost/] # vi rexec -- edit disable = No and save
4. StartRpc. rstatd
[Root @ localhost/] # rpc. rstatd -- start the rpc. rstatd Process
[Root @ localhost/] # rpcinfo-p -- run this command to check the RPC service status
If the rstatd is not installed successfully, repeat the preceding steps.
By now, all necessary services for LR monitoring Linux have been installed.
5. Disable Firewall
[Root @ localhost/] # service iptables stop
Vi. ExploitationLRInControllerMonitoringLinuxResources
- In the controller, drag the Unix resources in system resource graphs to the resource monitoring area on the right.
- Right-click Add measurements, add the IP address x. x of the monitored Linux instance, select the performance indicator to be monitored, and click OK.
7. Problems Encountered
1.LoadRunnerMonitoringLinuxThe following error is prompted:
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.
Cause: rpc. rstatd is not installed in Linux.
Solution: Install rpc. rstatd and enable the above method to monitor Linux.
2.Configure: Error: no acceptable C compiler found in $ path
Cause: the GCC compiler is not installed. Input gcc-V in the command line. If the command not found prompt is displayed, the GCC compiler is not installed in your system.
Solution: Yum install gcc
Brief Introduction to monitoringUNIX
LR monitoring UNIX, Unix first starts a rstatd service
The following describes how to start the rstatd service in the ibm aix system:
1. Use telnet to log on to the AIX system as the root user
2. Enter VI/etc/inetd. conf at the command line prompt.
3. Search for rstatd and find
# Rstatd sunrpc_udp udp wait root/usr/sbin/rpc. rstatd 100001 1-3
4. Remove #
5. WQ: Save the Modification result
6. Enter refresh-s inetd at the command prompt to restart the service.
In this way, LoadRunner can monitor the performance of the AIX system.
Note: After inetd. conf is edited on the hp unix system, you must enter inetd-C to restart the inetd service.
On UNIX, you can also run the RUP command to check whether the rstatd program is configured and activated.
If the rstatd program is already running, check the PS-Ef | grep inet process, kill the process, and restart the refresh-s inetd.