loadrunner监控linux资源

上一篇 / 下一篇  2015-11-24 16:53:09 / 个人分类:LoadRunner

需要在被监控linux系统上安装如下几个包:

1. 安装rsh,rsh-server
[root@localhost /]# yum install rsh
[root@localhost /]# yum install rsh-server
或者
[root@localhost /]#yum -y install rsh*

2. 安装rstatd
下载并安装rstatd,下载地址:http://sourceforge.net/projects/rstatd,上传至/usr/local
查看是否安装,一般来说Linux都没有安装
[root@localhost /]#  find / -name rpc.rstatd
安装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

3. 安装完成后配置rstatd目标守护进程xinetd,配置文件于/etc/xinet.d目录下修改/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
[root@localhost /]# rpc.rstatd     --启动rpc.rstatd进程
[root@localhost /]# rpcinfo -p     --执行此命令检查rpc服务的状态
到这里为止,LR监控Linux必要的服务都已安装好了。

5. 关闭防火墙
[root@localhost /]# iptables -L    查看防火墙状态
[root@localhost /]# service iptables stop

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


TAG: Linux linux 监控 资源

 

评分:0

我来说两句

Open Toolbar