LoadRunner remote monitoring of CentOS service performance configuration process

Source: Internet
Author: User
Tags centos server

As a result of the company's needs, after a period of exploration, reference to a lot of industry documents, and finally completed LoadRunner remote monitoring of the CentOS server configuration process.

  1. First, monitor whether the required service is present or not, and if it does not, install the corresponding service if it does not exist.

  2. Monitor for RSH service: Server Listening TCP is 514, input command Netstat-an |grep 514

    If the return TCP 0 0 0.0.0.0:514 0.0.0.0:* Listen indicates that the RSH server has been started. If not installed, you need to download 2 RPM packages,rsh-0.17-14.i386.rpm and rsh-server-0.17-14.i386.rpm service Pack, and then install, execute the command: RPM-IVH **rpm (RPM package name, because sometimes updates, be sure to write the corresponding package name).   if rsh , in the following /etc/xinetd.d/ rlogin, rsh rexec Span style= "Font-size:14px;line-height:21px;color:rgb (51,51,51); font-family: ' The song Body '; > These three configuration files.

  3. Check if RSTATD is started: rpcinfo-p if the boot will have the following RSTATD prompt:

650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M01/6F/6C/wKioL1WcgACQq_vmAAChAtNeh3Y921.jpg "title=" 1.png " alt= "Wkiol1wcgacqq_vmaachatneh3y921.jpg"/>

If you are not prompted, you can use the Find command: Find/-name rpc.rstatd, which is used to locate the RPC.RSTATD file in the system, and if not, the RSTATD daemon is not installed. If the server is not installed RSTATD program, need to download a rpc.rstatd-4.0.1.tar.gz package to have this service, this is a source code, need to compile,: http://sourceforge.net/projects/rstatd. After downloading, start the installation, the installation steps are as follows:

TAR-XZVF rpc.rstatd-4.0.1.tar.gz

CD RPC.RSTATD-4.0.1/

./configure-Configuration Actions

make-to compile

Make install-start Installation

rpc.rstatd-start the RSTATD process and then execute the "rpcinfo-p" command again to see if the RSTATD daemon has been started by the current system.

4. XINETD is the Internet Service daemon and is not normally installed, input command: NETSTAT-ANTP, if the process has a display tcp        0      0 0.0.0.0:37          0.0.0.0:*        listen     6300/xinetd   means xinetd service is started, if not, span> At this time we need to install, download a package, the name xinetd-2.3.14.tar.gz, the same needs and execute rpc.rstatd-4.0.1.tar.gz Similar operations:

TAR-XZVF xinetd-2.3.14.tar.gz

CD xinetd-2.3.14/

./configure-Configuration Actions

make-to compile

Make install-start Installation

Configure XINETD

[[email protected] xinetd-2.3.14]# Cp/etc/xinetd.conf/etc/xinetd.conf.bak// Save current xinetd.conf file

[[email protected] xinetd-2.3.14]# sed-e ' s/etc/sbin/g ' xinetd/sample.conf >/etc/xinetd.conf// Ensure all daemons are path/ Usr/sbin instead of the default/usr/etc.

Add a run-level symbolic link

[Email protected] xinetd-2.3.14]# chmod 754/etc/rc.d/init.d/xinetd &&
Ln-s/etc/rc.d/init.d/xinetd/etc/rc.d/rc0.d/k49xinetd &&
Ln-s/etc/rc.d/init.d/xinetd/etc/rc.d/rc1.d/k49xinetd &&
Ln-s/etc/rc.d/init.d/xinetd/etc/rc.d/rc2.d/k49xinetd &&
Ln-s/etc/rc.d/init.d/xinetd/etc/rc.d/rc3.d/s23xinetd &&
Ln-s/etc/rc.d/init.d/xinetd/etc/rc.d/rc4.d/s23xinetd &&
Ln-s/etc/rc.d/init.d/xinetd/etc/rc.d/rc5.d/s23xinetd &&
Ln-s/etc/rc.d/init.d/xinetd/etc/rc.d/rc6.d/k49xinetd

========================================================

Start Script Run xinetd

[[email protected] mnt]#/etc/rc.d/init.d/xinetd start

Here also need to modify the/etc/xinetd.d/under the three conf file Rlogin, rsh,rexec the three configuration files, the three files in the Disable = Yes are changed to disable = No. This means that the three services are started by default when the XINETD is started!


5. Just ensure that the process on the Linux machine has RSTATD and xinetd these two services can be monitored with LR, in the controller, the UNIX resources are dragged into the right window, right click on the mouse to select Add measurements, Add the IP address of the monitored Linux and select the metrics you want to monitor to implement monitoring.


Support configuration is complete, we are interested to practice more. The information can be downloaded to my Resource center http://down.51cto.com/5811414



This article is from "Zhang Yangyang _ Habitat" blog, please be sure to keep this source http://zdy1991.blog.51cto.com/5811414/1671905

LoadRunner remote monitoring of CentOS service performance configuration process

Related Article

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.