一 简述:LoadRunner监控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.
RPC-TCP: Failed to establish RPC server address.
上述问题的实质是Linux系统中未安装rpc.rstatd,服务未开启的原因造成。
于是接下来就验证我们的推测:
首先查看rpc.rstatd是否安装
[root@localhost bin]# whereis rpc.rstatd
发现系统未安装rpc.rstatd
备注:rstatd Rstat协议允许网络上的用户获得同一网络上各机器的性能参数。
二 准备下载包:下载rpc.rstatd-4.0.1.tar.gz安装包
下载地址:http://sourceforge.net/projects/rstatd
利用ssh客户端上传rpc.rstatd-4.0.1.tar.gz包至Linux下/home/Michael/tool/目录下
三 执行安装程序包:
tar -xzvf rpc.rstatd-4.0.1.tar.gz //解压rcp.rstatd
cd rpc.rstatd-4.0.1 //进入到rpc.rstatd目录中
./configure //配置rc.rstatd的安装,以下我的是按照默认方式的
make //编译rc.rstatd
make install //安装
四重启xinetd
/etc/init.d/xinetd restart
五修改etc/xinetd.d目录下面的3个conf (rlogin, rsh, rexec)中的disable置均设置为no
cd /etc/xinetd.d //进入到etc/xinetd.conf目录中
Vi rlogin //编辑disable=no,保存
Vi rsh //编辑disable=no,保存
Vi rexec //编辑disable=no,保存
六 启动rpc.rstatd和检测
rpc.rstatd //启动rpc.rstatd进程
rpcinfo –p //执行此命令检查rpc服务的状态
在安装rpc后,启动rpc.rstatd时,会报错“Cannot register service: RPC: Unable to receive;errno=Ctionrefused”。
解决方法如下:
1、/etc/init.d ./portmap start
2、/etc/init.d ./nfs start
然后再次启动rpc.rstatd就好了。
[root@boss1 sbin]# rpcinfo -p
程序版本协议 端口
100000 2 tcp 111 portmapper
100000 2 udp 111 portmapper
100024 1 udp 32768 status
100024 1 tcp 32769 status
100001 5 udp 867 rstatd
100001 3 udp 867 rstatd
100001 2 udp 867 rstatd
100001 1 udp 867 rstatd
七利用Loadunner中的Controller监控Linux资源
1在controller中,将Systeme Resourece Graphs中的UNIX resources拖到右键的资源监控区域
2鼠标右键选择Add Measurements,添加被监控linux的IP地址192.168.52.189,选择需监控的性能指标,确认后,如下图所示即表示成功^_^
分享到:
相关推荐
loadrunner linux 监控 64位CENTOS 6.5安装成功。rpc.rstatd x64
loadrunner 监控linux所需的线程
Loadrunner监控linux的方法:首先要检查监控ubuntu时必须安装的软件包和服务是否已经安装 1、监控Ubuntu需要安装rpc.rstatd,检查系统是否安装了rpc.rstatd 使用find命令:root@shituwebserver:~# find / -name rpc....
LoadRunner监控Linux 系统资源,需要安装rpc服务及rsh。安装步骤可参考 https://www.cnblogs.com/yangxia-test/archive/2012/11/27/2790771.html
loadrunner监控linux性能资源出现以下错误时: Monitor name :UNIX Resources. Internal rpc error (error code:2). Machine: 192.168.0.22. Hint: Check that RPC on this machine is up and running. Check that ...
Loadrunner监控Linux资源的时候,需要再后台启动的deamon.
loadrunner监控linux资源安装服务步骤.pdf
loadrunner监控linux资源安装服务步骤.doc
loadrunner监控linux资源安装服务步骤.docx
原因:Linux系统中没有安装rpc.rstatd,服务未开启的原因造成的。 解决办法:照上述方法安装rpc.rstatd并开启即可监控Linux. 2. configure: error: no acceptable C compiler found in $PATH 原因:未安装gcc...
LoadRunner监控Windows和Linux常见问题.doc LoadRunner监控Windows和Linux常见问题.doc LoadRunner监控Windows和Linux常见问题.doc
loadRunner监控系统资源windows、linux、unix、oracle操作整理,以及监控linux所需的rpc.rstatd工具(亲自验证有效)
文件包含:LoadRunner监控Linux配置教程,loadrunner监控常用性能指标(windows、Linux),rpc.rstatd-4.0.1.tar.gz,rsh-0.17-14.i386.rpm,rsh-server-0.17-14.i386.rpm,用LR11去监控LINUX服务器的资源使用情况,和...
LoadRunner监控Linux安装成功,所以共享出来,备忘. 需要下载3个包,到网上google一个吧: (1)rsh-0.17-14.i386.rpm (2)rsh-server-0.17-14.i386.rpm (3)rpc.rstatd-4.0.1.tar.gz 1.安装rsh,和...
利用LoadRunner对Linux服务器资源进行监控需要启动rstatd服务。本文档对其服务的配置进行了详细的说明,供参考交流。
使用LoadRunner监控Linux方法 使用LoadRunner监控Linux方法 使用LoadRunner监控Linux方法 使用LoadRunner监控Linux方法
压缩包包含如下资源: rsh-0.17-14.i386.rpm rsh-server-0.17-14.i386.rpm rpc.rstatd-4.0.1.tar.gz LoadRunner监控Linux方法.txt
tar zxvf rpc.rstatd-4.0.1.tar.gz cd rpc.rstatd-4.0.1 ./configure //配置 make //编译 make install //安装 ./rpc.statd //启动 然后就可以在loadrunner监控Linux了