一、41790错误内容详情和截图:

47190 Monitor name :UNIX Resources. Cannot initialize the monitoring on ​(对应的ip地址). 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.

LoadRunner监控Linux资源时,无法监控到数据指标47190错误解决

二、解决方案概览:

安装rstatd,重启xinted服务,把vsftpd服务停掉(如果目前使用的系统默认端口号有21的,因为rpc.rstatd的默认端口为21,二者会产生冲突),修改配置文件,重启了rpc.rstatd

Detailed error: RPC: Failed to create RPC client.

上述问题的实质是Linux系统中未安装rpc.rstatd,服务未开启的原因造成

三、解决方案详细步骤:

下面来验证我们的推测:

首先查看rpc.rstatd是否安装

[[email protected] 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服务的状态

[[email protected] xinetd.d]# rpcinfo -p

结果如下:

LoadRunner监控Linux资源时,无法监控到数据指标47190错误解决

 从上图中可以看出rpc.rstatd服务已经启动

6. 启动LR并监控Linux系统资源:

   在controller中,将System resource Graphs中的Unix resources拖到右侧的监控区域中,并单击

   鼠标右键选择“Add Measurements”,在弹出的对话框中输入被监控的linux系统的IP地址,

   详细设置参考《LR监控linux系统资源步骤设置,前期准备工作

   然后选择需要监控的性能指标,并点击“确定”,出现如下结果:

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.关闭防火墙: [[email protected] ~]# /etc/init.d/iptables stop;

8. 重复步骤6,成功后结果如下图所示:

  LoadRunner监控Linux资源时,无法监控到数据指标47190错误解决

 通过上面的实例可以得知,有些时候防火墙也会阻止一些服务或功能,只要关闭它即可。

相关文章:

  • 2021-05-14
  • 2021-10-12
  • 2021-10-18
  • 2021-06-20
  • 2021-05-13
猜你喜欢
  • 2021-08-02
  • 2021-07-16
  • 2021-05-17
  • 2021-07-19
  • 2021-10-24
  • 2021-08-20
相关资源
相似解决方案