您的位置:首页 > 运维架构 > Linux

姚博文 loadrunner linux rstatd 性能监控

2014-05-16 15:20 253 查看
1。

whereis rpc.rstatd
wget http://heanet.dl.sourceforge.net/sourceforge/rstatd/rstatd.tar.gz
2。tar -zxvf rstatd.tar.gz

3。cd rpc.rstatd Remote Procedure Call(RPC)

4。#./configure

  #make

  #make install

5。.[root@BJ18 rpc.rstatd]# ./rpc.rstatd &

[1] 16979

[root@BJL18 rpc.rstatd]# ./rpc.rstatd &

[1] 16999

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

6。如果第5步错误安装portmap(linux6以前为portmap服务,6以后为rpcbind)

[root@BJL18 rpc.rstatd]# yum install portmap

Loaded plugins: fastestmirror, refresh-packagekit, security

Determining fastest mirrors

centos-base | 3.7 kB 00:00

centos-extras | 3.4 kB 00:00

centos-updates | 2.9 kB 00:00

centos-updates/primary_db | 4.5 MB 00:00

epel | 4.2 kB 00:00

puppet-dependencies | 1.9 kB 00:00

puppet-devel | 1.9 kB 00:00

puppet-product | 1.9 kB 00:00

Setting up Install Process

Package rpcbind-0.2.0-11.el6.x86_64 already installed and latest version

[root@BJL18 rpc.rstatd]# service rpcbind start

Starting rpcbind: [ OK ]

[root@BJL18 rpc.rstatd]# ./rpc.rstatd &

[1] 17025

7。Monitor name :UNIX Resources. Cannot initialize the monitoring on localhost. 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

[root@BJL18 rpc.rstatd]#/etc/init.d/iptables stop

8。[root@BJL18 rpc.rstatd]# 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 979 rstatd

100001 3 udp 979 rstatd

100001 2 udp 979 rstatd

100001 1 udp 979 rstatd

9。利用Loadunner中的Controller监控

在controller中,将Systeme Resourece Graphs中的UNIX resources拖到右键的资源监控区域

鼠标右键选择Add Measurements,添加被监控linux的IP地址localhost
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: