LoadRunner监控Linux资源时弹出以下错误:linux
Monitor name :UNIX Resources. Cannot initialize the monitoring on 192.168.52.189. Error while creating the RPC client. Ensure that the machine can be connected and that it runs the rstat daemon (use rpcinfo utility for this verification). Detailed error: RPC: Failed to create RPC client.windows
RPC-TCP: Failed to establish RPC server address.性能
上述问题的实质是Linux系统中未安装rpc.rstatd,服务未开启的缘由形成this
在监控Linux以前我想阐述的观点是,Liunx系统机制与windows大体相同,要监控并获得他的相关参数必须须要获得它的赞成,这就是操做系统, 因此你必须有足够的权限和方法才能得到,关于Linux在LR中也相关添加区域,与windows享有同等的地位。在windows中须要开启许多许多权 限,以及一些远程访问的进程,当前在Linux中也不例外,在Linux下有一个进程是必须的,那就是系统守护进程rpc.restat,相信守护进程大 家并不陌生,一般在Linux系统的引导的时候启动的不少服务,这些服务就是守护进程,并且它脱离于终端在后台运行的。spa
因此首先要查看系统是否开启了rpc服务,经过命令rpcinfo -p来查看操作系统
配置步骤:3d
一、 安装 portmaprest
二、 安装rsh-0.17-14.i386.rpmserver
三、 安装rsh-server-0.17-14.i386.rpmblog
四、 安装rpc.rstatd-4.0.1.tar.gz
一、 安装 portmap
执行指令 yum –y install portmap
二、 安装rsh-0.17-14.i386.rpm
将文件 rsh-0.17-14.i386.rpm rsh-server-0.17-14.i386.rpm 复制到linux的usr/local/路径下
rpm -qa |grep rsh --查看是否安装rsh
安装rsh,rsh-server
2、安装rpc.rstatd-4.0.1.tar.gz
安装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
三、 安装完成后配置rstatd目标守护进程xinetd,配置文件于/etc/xinetd.d目录下
四、 重启linux
五、 启动rpc.rstatd
六、 关闭Linux防火墙
service iptables stop
7、利用LoadRunner的Controller监控Linux资源
注意:监控过程当中要关闭Linux防火墙,不然可能会监控失败