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


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

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

    云安装一下 rpc:

     1 [root@test1 ~]# chkconfig rpcbind
     2 [root@test1 ~]# yum install rpcbind
     3 Loaded plugins: fastestmirror
     4 Loading mirror speeds from cached hostfile
     5 * base: mirrors.aliyun.com
     6 * extras: mirrors.aliyun.com
     7 * updates: mirrors.aliyun.com
     8 Setting up Install Process
     9 Resolving Dependencies
    10 --> Running transaction check
    11 ...
    12 Running Transaction
    13 Installing : libgssglue-0.1-11.el6.x86_64 1/3 
    14 Installing : libtirpc-0.2.1-13.el6_9.x86_64 2/3 
    15 Installing : rpcbind-0.2.0-13.el6_9.1.x86_64 3/3 
    16 Verifying : rpcbind-0.2.0-13.el6_9.1.x86_64 1/3 
    17 Verifying : libgssglue-0.1-11.el6.x86_64 2/3 
    18 Verifying : libtirpc-0.2.1-13.el6_9.x86_64 3/3
    19 
    20 Installed:
    21 rpcbind.x86_64 0:0.2.0-13.el6_9.1
    22 
    23 Dependency Installed:
    24 libgssglue.x86_64 0:0.1-11.el6 libtirpc.x86_64 0:0.2.1-13.el6_9
    25 
    26 Complete!

    rpc 安装完成,启动服务:

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

    关闭防火墙:

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

    再检查一下 rpc :

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

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

    1 [root@test1 ~]# rpc.rstatd

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

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

    Linux 服务工具配置完成!

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

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

  • 相关阅读:
    S02_CH15_ AXI_OLED 实验
    S02_CH14_ EMIO_OLED 实验
    S02_CH13_ AXI_PWM 实验
    S02_CH12_ AXI_Lite 总线详解
    【第二季】CH11_ ZYNQ软硬调试高级技巧
    bzoj3028 食物
    Hdu3579 Hello Kiki
    bzoj4872 [Shoi2017]分手是祝愿
    bzoj4873 [Shoi2017]寿司餐厅
    省选模拟赛 LYK loves rabbits(rabbits)
  • 原文地址:https://www.cnblogs.com/snooper/p/8474533.html
Copyright © 2020-2023  润新知