zoukankan      html  css  js  c++  java
  • 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的电脑,解决!

  • 相关阅读:
    字符串习题小结
    字符串处理指令以及控制台输入
    初次接触JAVA有关重点
    常用的正则表达式
    JS里日历的两种写法
    win10 系统连不上打印机 操作无法完成(错误Ox00000709) 台式机无线网卡 设置固定IP 之后 IP变了
    win10 visual studio2019 目标框架选不到.net 4.8
    JsonPath 简单入门 与 xpath
    IIS 搭建HTTPS站点
    java mave 打包问题 发布找不到驱动类
  • 原文地址:https://www.cnblogs.com/snooper/p/8474533.html
Copyright © 2011-2022 走看看