zoukankan      html  css  js  c++  java
  • [原创]LoadRunner如何监控Linux系统资源

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

    于是接下来就验证我们的推测:

    首先查看rpc.rstatd是否安装

    [root@localhost bin]# whereis rpc.rstatd

    发现系统未安装rpc.rstatd

    备注:rstatd Rstat协议允许网络上的用户获得同一网络上各机器的性能参数。

    准备下载包:下载rpc.rstatd-4.0.1.tar.gz安装包

    下载地址:http://sourceforge.net/projects/rstatd

    利用ssh客户端上传rpc.rstatd-4.0.1.tar.gz包至Linux/home/Michael/tool/目录下
    执行安装程序包:

        tar -xzvf  rpc.rstatd-4.0.1.tar.gz   //解压rcp.rstatd

    cd  rpc.rstatd-4.0.1            //进入到rpc.rstatd目录中

    ./configure                  //配置rc.rstatd的安装,以下我的是按照默认方式的            

    make                      //编译rc.rstatd  

    make install               // 安装

    重启xinetd

       /etc/init.d/xinetd restart

    修改etc/xinetd.d目录下面的3conf (rlogin, rsh, rexec)中的disable置均设置为no

    cd /etc/xinetd.d   //进入到etc/xinetd.conf目录中 

    Vi    rlogin //编辑disable=no,保存

    Vi    rsh    // 编辑disable=no,保存

    Vi    rexec //编辑disable=no,保存

    启动rpc.rstatd和检测

    rpc.rstatd                //启动rpc.rstatd进程

    rpcinfo –p              // 执行此命令检查rpc服务的状态

       [root@localhost xinetd.d]# rpcinfo -p
       
    程序版本协议   端口
        100000    2   tcp    111  portmapper
        100000    2   udp    111  portmapper
        100024    1   udp  32768  status
        100024    1   tcp  32769  status
        100001    5   udp    867  rstatd
        100001    3   udp    867  rstatd
        100001    2   udp    867  rstatd
        100001    1   udp    867  rstatd


       七 利用Loadunner中的Controller监控Linux资源
    1  在controller中,将Systeme Resourece Graphs中的UNIX resources拖到右键的资源监控区域
    2  鼠标右键选择Add Measurements,添加被监控linux的IP地址192.168.52.189,选择需监控的性能指标,确认后,如下图所示即表示成功^_^


  • 相关阅读:
    EVM靶机渗透
    Joomla漏洞复现
    渗透测试
    Kali软件库认识
    谷歌hack语法
    Metasploit学习
    sqli-labs less-17
    sqli-labs(less-11-16)
    sqli-labs (less-8-less-10)
    less-7
  • 原文地址:https://www.cnblogs.com/mayingbao/p/429187.html
Copyright © 2011-2022 走看看