Loadrunner 监控 Linux (centos6.5)服务器系统资源

Loadrunner 监控 Linux 服务器系统资源,需要在被监控的服务器上启用 rstatd 进程
但尝试启动时,爆炸了:

 [root@test1 rpc.rstatd-4.0.1]# rpc.rstatd
Cannot register service: RPC: Unable to receive; errno = Connection refused

云安装一下 rpc:

 [root@test1 ~]# chkconfig rpcbind
[root@test1 ~]# yum install rpcbind
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
* base: mirrors.aliyun.com
* extras: mirrors.aliyun.com
* updates: mirrors.aliyun.com
Setting up Install Process
Resolving Dependencies
--> Running transaction check
...
Running Transaction
Installing : libgssglue-0.1-11.el6.x86_64 1/3
Installing : libtirpc-0.2.1-13.el6_9.x86_64 2/3
Installing : rpcbind-0.2.0-13.el6_9.1.x86_64 3/3
Verifying : rpcbind-0.2.0-13.el6_9.1.x86_64 1/3
Verifying : libgssglue-0.1-11.el6.x86_64 2/3
Verifying : libtirpc-0.2.1-13.el6_9.x86_64 3/3 Installed:
rpcbind.x86_64 0:0.2.0-13.el6_9.1 Dependency Installed:
libgssglue.x86_64 0:0.1-11.el6 libtirpc.x86_64 0:0.2.1-13.el6_9 Complete!

rpc 安装完成,启动服务:

 [root@test1 ~]# service rpcbind start
Starting rpcbind: [ OK ]

关闭防火墙:

 [root@test1 ~]# service iptables stop
iptables: Setting chains to policy ACCEPT: filter [ OK ]
iptables: Flushing firewall rules: [ OK ]
iptables: Unloading modules:

再检查一下 rpc :

 [root@test1 ~]# rpcinfo -p
program vers proto port service
100000 4 tcp 111 portmapper
100000 3 tcp 111 portmapper
100000 2 tcp 111 portmapper
100000 4 udp 111 portmapper
100000 3 udp 111 portmapper
100000 2 udp 111 portmapper

发觉不对劲,好像少了什么,于是再次尝试启动一下 rpc :

 [root@test1 ~]# rpc.rstatd

启动完成后,再检查 rpc ,这会好像是对了:

 [root@test1 ~]# rpcinfo -p
program vers proto port service
100000 4 tcp 111 portmapper
100000 3 tcp 111 portmapper
100000 2 tcp 111 portmapper
100000 4 udp 111 portmapper
100000 3 udp 111 portmapper
100000 2 udp 111 portmapper
100001 5 udp 729 rstatd
100001 3 udp 729 rstatd
100001 2 udp 729 rstatd
100001 1 udp 729 rstatd

Linux 服务工具配置完成!

回到 LR 客户机,在 LR 中加入Linux资源,添加度量,度量的计算机名称直接填写 Linux 的 IP;

度量添加完成后,发觉LR还是没有读取到服务资源信息,出必杀:重启安装了LR的电脑,解决!

上一篇:LoadRunner监控tomcat


下一篇:LoadRunner监控Linux配置教程