LoadRunner Monitoring Linux__linux

Source: Internet
Author: User

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

Need to download 3 packages:
(1) rsh-0.17-14.i386.rpm
(2) rsh-server-0.17-14.i386.rpm
(3) rpc.rstatd-4.0.1.tar.gz

I. Installation of RSH

To see if RSH is installed and uninstalled

[Root@localhost/]# Rpm-qa |grep rsh--View whether to install Rsh

[root@localhost/]# RPM-E + version number--Uninstall this version

Install Rsh,rsh-server

[Root@localhost/]# RPM-IVH rsh-0.17-14.i386.rpm

[Root@localhost/]# RPM-IVH rsh-server-0.17-14.i386.rpm

or [root@localhost/] #yum-y install rsh*

Second, install RSTATD

Download and install RSTATD, download address: http://sourceforge.net/projects/rstatd, upload to/usr/local

Check to see if it is installed and Linux is not normally installed

[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

Third, configure the RSTATD target daemon xinetd After the installation is complete, the configuration file is in the/ETC/XINET.D directory

Modify the Disable in the 3 conf (rogin,rsh,rexec) below the/ETC/XINETD.D directory to No

[Root@localhost/]# Cd/etc/xinetd.d--Enter into the/etc/xinetd.conf directory

[Root@localhost/]# VI rlogin--edit Disable=no, save

[Root@localhost/]# VI rsh--edit Disable=no, save

[Root@localhost/]# VI rexec--edit Disable=no, save

Four, start rpc.rstatd

[Root@localhost/]# rpc.rstatd--Start rpc.rstatd process

[Root@localhost/]# Rpcinfo-p--Performs this command to check the status of the RPC service

If the rstatd description for the above illustration does not succeed, you will need to repeat the above steps.

To this end, LR monitoring Linux necessary services have been installed.

Five, close the firewall

[root@localhost/]# service iptables stop

Vi. using controller in LR to monitor Linux resources in controller, drag the UNIX resource in System Resource graphs to the resource monitoring area on the right. right mouse button to select Add measurements, add the IP address of the monitored Linux x.x.x.x, select the performance indicators that need to be monitored, confirm.

Note: The Linux firewall will be shut down during the monitoring process, or it may fail to monitor

Vii. problems encountered

1. LoadRunner Monitor Linux resources when the following error is ejected:

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 to this utility). Detailed error:RPC:Failed to create RPC client.
Rpc-tcp:failed to establish RPC server address.

Reason: The Linux system does not have RPC.RSTATD installed, the service is not open cause.

Solution: Install the RPC.RSTATD and turn it on to monitor Linux according to the above method.

2. Configure:error:no acceptable C compiler found in $PATH

Reason: The GCC compiler is not installed. Typing gcc–v in the command line, if prompted command not found, indicates that the GCC compiler is not installed in your system

Solution: Yum Install gcc

Simple Introduction to monitoring Unix

LR monitors Unix, Unix starts a rstatd service  
    The following are the ways to start RSTATD services in an IBM AIX system:
1,   Log on to the AIX system as root by using Telnet
2,   at the command prompt enter: vi/etc/inetd.conf
3,   find rstatd, find
#rstatd    sunrpc_udp     udp     wait    root   /usr/sbin/ RPC.RSTATD rstatd 100001 1-3
4, remove #
5,: Wq Save Modify result
6, enter at command prompt: refresh–s inetd restart service. The
uses LoadRunner to monitor the performance of AIX systems.

Note: After inetd.conf is edited on an HP Unix system, the restart INETD service requires input Inetd-c
Unix can also use the RUP command to see if the RSTATD program is configured and activated
if the RSTATD program is already running, When you reboot, view the process Ps-ef |grep inet, then kill the process, then refresh–s inetd to reboot.

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.