Article Title: How to Use LoadRunner to monitor Linux systems. Linux is a technology channel of the IT lab in China. Includes basic categories such as desktop applications, Linux system management, kernel research, embedded systems, and open source.
1. install two service packages: rsh and rsh-server.
A. Uninstall rsh
# Rpm? Q rsh -- View version number
# Rpm-e version -- Uninstall this version.
B. Installation
# Rpm? Ivh rsh-0.17-14.i386.rpm rsh-server-0.17-14.i386.rpm
2. Download and install rstatd
# Tar? Xzvf rpc.rstatd-4.0.1.tar.gz
#./Configure -- Configuration
# Make -- compile
# Make install -- install
# Rpc. rstatd -- start the rstatd Process
3. Open/etc/xinetd. conf.
The content is:
# Simple configuration file for xinetd
#
# Some ults, and include/etc/xinetd. d/
Ults
{
Instances = 60
Log_type = SYSLOG authpriv
Log_on_success = HOST PID
Log_on_failure = HOST
Cps = 25 30
}
Includedir/etc/xinetd. d
4. Restart xinetd:
A:
# Service xinetd reload
B:
#/Sbin/service xinetd rstart
5. Modify the three conf files under/etc/xinetd. d /.
Rlogin, rsh, and rexec configuration files,
Open these three files and change disable = yes to disable = no (disabled is used in the default {} to disable the service)
Or set # default: off To on and remove "#". This means that the above three services are started by default when xinetd is started!
6. Start rstatd:
# Rpc. rstatd
When rpc. rstatd is started, the error "Cannot register service: RPC: Unable to receive; errno = Ction refused" is returned ".
The solution is as follows:
#/Etc/init. d./portmap start
#/Etc/init. d./nfs start
Then start rpc. rstatd again.
7. Check whether rstatd is started:
# Rpcinfo-p
If you can see:
100001 5 udp 892 rstatd
100001 3 udp 892 rstatd
100001 2 udp 892 rstatd
100001 1 udp 892 rstatd
It indicates that the rstatd service has been started. You can use LR for monitoring.