歡迎來到Linux教程網
Linux教程網
Linux教程網
Linux教程網
Linux教程網 >> Linux綜合 >> Linux資訊 >> Linux文化 >> 應用LoadRunner實現對Linux系統的監視

應用LoadRunner實現對Linux系統的監視

日期:2017/2/27 11:50:14   编辑:Linux文化

LoadRunner實現對Linux系統的監視

1.安裝rsh,和rsh-server兩個服務包。

a. 卸載rsh

# rpm –q rsh----------查看版本號

# rpm -e 版本號---------卸載該版本。

B.安裝

# rpm –ivh rsh-0.17-14.i386.rpm rsh-server-0.17-14.i386.rpm

2. 下載並安裝rstatd

# tar –xzvf rpc.rstatd-4.0.1.tar.gz

# ./configure ---配置

# make ---編譯

# make install ---安裝

# rpc.rstatd ---啟動rstatd進程

3.打開/etc/xinetd.conf

裡面內容是:

# Simple configuration file for xinetd

#

# Some defaults, and include /etc/xinetd.d/

defaults

{

instances = 60

log_type = SYSLOG authpriv

log_on_success = HOST PID

log_on_failure = HOST

cps = 25 30

}

includedir /etc/xinetd.d

4.重啟xinetd:

A:

# service xinetd reload

B:

# /sbin/service xinetd rstart

5. 修改/etc/xinetd.d/下的三個conf文件

rlogin ,rsh,rexec 這三個配置文件,

打這三個文件,將裡面的disable = yes都改成 disable = no ( disabled 用在默認的 {} 中 禁止服務)

或是把# default: off都設置成 on ,並把“#”去掉,這個的意思就是在xinetd啟動的時候默認都啟動上面的三個服務!

6.啟動rstatd:

# rpc.rstatd

在啟動rpc.rstatd時,會報錯“Cannot register service: RPC: Unable to receive; errno = Ction refused”。

解決方法如下:

# /etc/init.d ./portmap start

# /etc/init.d ./nfs start

然後再次啟動rpc.rstatd就好了。

7.查看rstatd是否啟動:

# rpcinfo -p

如果能看到:

100001 5 udp 892 rstatd

100001 3 udp 892 rstatd

100001 2 udp 892 rstatd

100001 1 udp 892 rstatd

就說明rstatd服務已經啟動。可以用LR去監視了。


Copyright © Linux教程網 All Rights Reserved