51Testing软件测试论坛

 找回密码
 (注-册)加入51Testing

QQ登录

只需一步,快速开始

微信登录,快人一步

手机号码,快捷登录

查看: 5738|回复: 3
打印 上一主题 下一主题

[原创] Monitor name :UNIX Resources. Cannot initialize the monitoring

[复制链接]

该用户从未签到

跳转到指定楼层
1#
发表于 2009-3-17 18:28:00 | 只看该作者 回帖奖励 |倒序浏览 |阅读模式
转载
简述: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协议允许网络上的用户获得同一网络上各机器的性能参数。

1. 首先在Linux服务器上安装rpc.rstatd服务,这里用的是rpc.rstatd-4.0.1.tar.gz安装包,如果没有可以到该网址上去下载:http://sourceforge.net/projects/rstatd
2. 执行安装包:
  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               //安装
3. 重新启动xinetd:  /etc/init.d/xinetd restart;
4. 修改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,保存
5. 启动rpc.rstatd并查看是否真正启动该服务:
  rpc.rstatd                //启动rpc.rstatd进程 rpcinfo –p              //执行此命令检查rpc服务的状态
[root@localhost xinetd.d]# rpcinfo -p
   结果如下:
  
   从上图中可以看出rpc.rstatd服务已经启动
6. 启动LoadRunner并监控Linux系统资源:
   在controller中,将System resource Graphs中的Unix resources拖到右侧的监控区域中,并单击
   鼠标右键选择“Add Measurements”,在弹出的对话框中输入被监控的linux系统的IP地址,然后选择需
   要监控的性能指标,并点击“确定”,出现如下结果:
   Monitor name :UNIX Resources. Cannot initialize the monitoring on 10.10.15.62.
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 RPCserveraddress.
RPC-TCP: Failed to communicate with the portmapper on host '10.10.15.62'.
RPC: RPC call failed.
RPC-TCP: recv()/recvfrom() failed.
RPC-TCP: Timeout reached. (entry point: CFactory::Initialize). [MsgId: MMSG-47190]
   检查原因,发现是Linux系统中的防火墙开启了并且阻挡了LoadRunner监控Linux系统的资源,因此要将
   防火墙关闭。
7.关闭防火墙: [root@localhost ~]# /etc/init.d/iptables stop;
8. 重复步骤6,成功后结果如下图所示:
  
   通过上面的实例可以得知,有些时候防火墙也会阻止一些服务或功能,只要关闭它即可。
分享到:  QQ好友和群QQ好友和群 QQ空间QQ空间 腾讯微博腾讯微博 腾讯朋友腾讯朋友
收藏收藏
回复

使用道具 举报

该用户从未签到

2#
发表于 2011-4-15 15:42:42 | 只看该作者
麻烦问一下,在第4步时找不到你说的那三个文件的原因是什么?
rpc.rstatd服务已经安装上了呢。
回复 支持 反对

使用道具 举报

该用户从未签到

3#
发表于 2011-4-15 15:52:25 | 只看该作者
上海熟悉Junit tester ,英语口语好,5年+,年薪20--30万
上海, 英语口语, 软件开发英语口语, 上海, tester, 年薪, Junit
senior tester ,有机会做Tech Leader.
要求有软件开发经验,能写自动化测试脚本,优先考虑做性能测试的,优先考虑用过Junit的(Junit就是用脚本写的自动化测试工具),不要做手动测试的


MSN:zxsh3598@hotmail.com
回复 支持 反对

使用道具 举报

该用户从未签到

4#
发表于 2012-3-5 10:43:06 | 只看该作者
回复 2# dx0122


   没有的话,就手工去创建那三个新文件,把内容写进去就可以了,记得完了要重启服务的
回复 支持 反对

使用道具 举报

本版积分规则

关闭

站长推荐上一条 /1 下一条

小黑屋|手机版|Archiver|51Testing软件测试网 ( 沪ICP备05003035号 关于我们

GMT+8, 2024-9-22 03:29 , Processed in 0.085312 second(s), 27 queries .

Powered by Discuz! X3.2

© 2001-2024 Comsenz Inc.

快速回复 返回顶部 返回列表