LoadRunner Monitoring Linux Resources

Source: Internet
Author: User

I. LoadRunner monitoring of Linux resources (i), preparatory work

First of all, the monitoring of Linux must have rstatd this daemon, and some Linux version may also be rpc.rstatd here is just a different name, the function is the same.

1. There are two ways to verify that the RSTATD daemon is configured on the server:

(1) Use Rup Command

It is used to report various statistics about a computer, including configuration information for RSTATD. Using the command Rup 10.130.61.203, here 10.130.61.203 is the IP of the Linux/unix server to monitor if the command returns relevant statistics. Indicates that the RSTATD daemon has been configured and activated, that if no meaningful statistics are returned, or an error report appears, the RSTATD daemon has not been configured or has a problem.

(2) using the Find command

#find/-name rpc.rstatd, which is used to find out if a rpc.rstatd file exists in the system, and if not, the RSTATD daemon is not installed.

If the RSTATD program is not installed on the server (generally Linux is not installed), you need to download a package to have this service, the package name is rpc.rstatd-4.0.1.tar.gz. This is a source code that needs to be compiled, downloaded and installed RSTATD

2. Installation RPC.RSTATD Service

If the system does not install the RPC.RSTATD service, just need to install, the installation steps are as follows:

1, download and install RSTATD---Securities test Room on the FTP server (LR directory)

2, TAR-XZVF rpc.rstatd.tar.gz---decompression rcp.rstatd

3, chmod 777 RPC.RSTATD---Change the file read and write permissions, have all permissions.

4, CD RPC.RSTATD---into the rpc.rstatd directory

5./configure---Configure the installation of RC.RSTATD, I am by default

6. Make---/compile rc.rstatd

7. Make Install---Installation

3. Start RPC.RSTATD Service

Execute: RPC.RSTATD command, start the RPC.RSTATD service.

Execute: rpcinfo–p command to check the status of the RPC service.

If the echo result is below, then the RPC.RSTATD service starts successfully and can be monitored with LR.

[Email protected] ~]# rpcinfo-p

Program Version Protocol port

100000 2 TCP 111 Portmapper

100000 2 UDP 111 Portmapper

100024 1 UDP 614 Status

100024 1 TCP 617 Status

100001 5 UDP 945 RSTATD

100001 3 UDP 945 RSTATD

100001 2 UDP 945 RSTATD

100001 1 UDP 945 RSTATD

4. Set RPC.RSTATD service to start automatically

If you need to set up the RPC.RSTATD service to start automatically (boot up), you need to modify the three configuration files under/etc/xinetd.d/rlogin, rsh, rexec, use the VI command to open the three files and change the Disable = Yes to Disable = no (disabled is forbidden in the default {}), or the # Default:off is set to ON. This means that the three services are started by default when the XINETD is started!

(if garbled occurs after execution, change lang= under vim/etc/sysconfig/i18n

Zh_cn. UTF-8 for lang= "en_US. UTF-8 "can. )

A:service xinetd Reload

B:service xinetd Rstart

5, a few tips:
(1) check whether to start : Rsh Server Monitoring of TCP is a 514
[Email protected] root]# netstat-an |grep 514
TCP 0 0 0.0.0.0:514 0.0.0.0:* LISTEN
If you can see 514 in the Listener instructions The RSH server has been started.

(2) check whether to start : rstatd
Input command: rpcinfo-p
If you can see a message similar to the following:
Program Version Protocol port
100001 5 UDP 937 RSTATD
100001 4 UDP 937 RSTATD
100001 3 UDP 937 RSTATD
100001 2 UDP 937 RSTATD
100001 1 UDP 937 RSTATD
That means the RSTATD service is up and (of course, it can be replaced with PS Ax)


(3) re-up xinetd Method:
On SuSE Linux, do the following:
cd/etc/init.d/
./xinetd Restart
See some places on the Internet that use the following command:
# Service XINETD Reload
#/sbin/service xinetd Rstart
I don't know what the system is for.


(4) installation rsh , and Rsh-server Two Service pack methods
A. Uninstalling Rsh
# rpm–q rsh----------View version number
# RPM-E Version number---------Uninstall this version.
b Installation
# RPM–IVH rsh-0.17-14.i386.rpm rsh-server-0.17-14.i386.rpm


(5) in the Start rpc.rstatd , you will get an error "Cannot register service:RPC:Unable to receive; errno = ction refused ".
Here's how to fix it:
#/ETC/INIT.D./portmap start
#/ETC/INIT.D./nfs start
Then start the rpc.rstatd again.

Note:

1, rstatd file on the FTP server has, resource address: ftp://192.168.51.233/01 test Tool/HP Mercury interctive/loadrunner/resource Monitoring configuration and the package/linux monitoring package used

2. The RSTATD Rstat protocol allows users on the network to obtain performance parameters for each machine on the same network.

LoadRunner Monitoring Linux Resources

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.