LoadRunner监控Linux配置教程

Posted Teacher涛

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了LoadRunner监控Linux配置教程相关的知识,希望对你有一定的参考价值。

 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,服务未开启的原因造成

 

在监控Linux之前我想阐述的观点是,Liunx系统机制与windows大致相同,要监控并得到他的相关参数必须需要得到它的同意,这就是操作系统, 所以你必须有足够的权限和方法才能获得,关于Linux在LR中也相关添加区域,与windows享有同等的地位。在windows中需要开启许多许多权 限,以及一些远程访问的进程,当前在Linux中也不例外,在Linux下有一个进程是必须的,那就是系统守护进程rpc.restat,相信守护进程大 家并不陌生,通常在Linux系统的引导的时候启动的很多服务,这些服务就是守护进程,而且它脱离于终端在后台运行的。

所以首先要查看系统是否开启了rpc服务,通过命令rpcinfo -p来查看

 

 

 

配置步骤:

1、 安装  portmap

2、 安装rsh-0.17-14.i386.rpm

3、 安装rsh-server-0.17-14.i386.rpm

4、 安装rpc.rstatd-4.0.1.tar.gz

 

 

 

 

1、 安装  portmap

执行指令  yum –y install portmap

 

 

 

2、 安装rsh-0.17-14.i386.rpm

文件 rsh-0.17-14.i386.rpm  rsh-server-0.17-14.i386.rpm 复制linuxusr/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

 

 

 

 

 

 

 

 

 

3、 安装完成后配置rstatd目标守护进程xinetd,配置文件于/etc/xinetd.d目录下

 

 

 

 

 

 

 

4、 重启linux

 

5、 启动rpc.rstatd

 

 

 

6、 关闭Linux防火墙

service iptables stop

 

7利用LoadRunnerController监控Linux资源

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

注意:监控过程中要关闭Linux防火墙,否则可能会监控失败

 

以上是关于LoadRunner监控Linux配置教程的主要内容,如果未能解决你的问题,请参考以下文章

Linux运维:配置Centreon监控系统

Cacti监控服务器配置教程(基于CentOS+Nginx+MySQL+PHP环境搭建)

怎样使用loadrunner监控linux系统资源

又一款Nginx 管理可视化神器!通过界面完成配置监控,一条龙!(含视频教程)

LoadRunner使用教程

loadrunner监控linux之linux下安装rpc