loadrunner监控linux服务器

参考http://www.cnblogs.com/yangxia-test/archive/2012/11/27/2790771.html

http://www.cnblogs.com/candle806/archive/2011/01/18/1938286.html

大体的原理,linux要安装rstatd服务,允许loadrunner访问其机器的实时数据

步骤

0.查看是否已经安装

通过命令rpcinfo -p来查看
如上图可以看到,如果开启了四个rstatd服务就说明,该rpc守护进程服务启动是成功的。如果没有该服务,就需要手动安装了

1.安装rsh、rsh-server

yum -y install rsh rsh-server
2.安装rstatd
安装:一次执行--tar -xzvf rpc.rstatd-4.0.1.tar.gz //解压安装包
cd rpc.rstatd-4.0.1        //进入到rpc.rstatd目录中
./configure    //配置rc.rstatd安装
make //编辑rc.rstatd
make install //安装
3.更改配置

修改/etc/xinetd.d目录下面的3个conf(rogin,rsh,rexec)中的disable均设置为no

[root@localhost /]#  cd /etc/xinetd.d                      --进入到/etc/xinetd.conf目录中

[root@localhost /]#  vi  rlogin                               --编辑disable=no,保存

[root@localhost /]#  vi  rsh                                   --编辑disable=no,保存

[root@localhost /]#  vi  rexec                                 --编辑disable=no,保存

4.启动

rpc.rstatd

5.查看是否成功

rpcinfo -p                       --执行此命令检查rpc服务的状态

6.关闭linux防火墙

service iptables stop

7.loadrunner添加

  1. 在Controller中,将System Resource Graphs中的Unix resources拖到右侧的资源监控区域。
  2. 鼠标右键选择Add Measurements,添加被监控Linux的IP地址x.x.x.x,选择需要监控的性能指标,确认。

经测成功。

原文地址:https://www.cnblogs.com/seekwind/p/5817345.html