I. Monitoring
Linux
1. Preparations
You can verify whether the rstatd daemon is configured on the server in two ways. Program :
① Use the RUP command to report various statistical information of the computer, including the configuration information of rstatd. Run the following command to configure the Resource Access Management Framework (version 10.130.61.203 ):
Linux /Unix server IP address. If this command returns related statistics. The rstatd daemon has been configured and activated. If no meaningful statistical information is returned or an error report is displayed, the rstatd daemon has not been configured or has problems.
② Use the find command
# Find/-name rpc. rstatd. This command is used to check whether the rpc. rstatd file exists in the system. If no file exists, the rstatd daemon is not installed.
If the rstatd program is not installed on the server (Linux is not installed in general), you need to download a package for this service. The package name is RPC. rstatd-4.0.1.tar.gz. this is a source code. You need to compile, download, and install rstatd (you can download it at http://sourceforge.net/projects/rstatd)
After the download, start the installation. The installation steps are as follows:
Tar-xzvf rpc.rstatd-4.0.1.tar.gz
Cd rpc, rstatd-4.0.1/
./Configure-configuration operation
Make-compile
Make install-start Installation
Rpc. rstatd-start the rstatd Process
2) After the installation is complete, configure the rstatd target daemon xinetd. Its main configuration file is/etc/xinetd. conf, which contains the following basic information:
#
# Xinetd. conf
#
# Copyright (c) 1998-2001 SuSE GmbH Nuernberg, Germany.
# Copyright (c) 2002 SuSE Linux AG, Nuernberg, Germany.
#
Ults
{
Log_type = file/var/log/xinetd. Log
Log_on_success = Host exit duration
Log_on_failure = Host Attempt
# Only_from = localhost
Instances = 30
CPS = 50 10
#
# The specification of an interface is interesting, if we are on a firewall.
# For example, if you only want to provide services from an internal
# Network interface, you may specify your internal interfaces IP-address.
#
# Interface = 127.0.0.1
}
Includedir/etc/xinetd. d
What we need to modify here is/etc/xinetd. the three conf files rlogin, RSH, and rexec under D, change disable = yes in the three files to disable = No (disabled is used in the default {} to disable the service) or set # default: when xinetd is started, the above three services are started by default!
Note: When I configure it myself, if no disable = yes, I will change # default: Off To: Default: on. After restarting (CD/etc/init. d /. /xinetd restart) is viewed through netstat-an | grep 514, and no result is returned. Then, I manually add disable = NO to the last row of the three files, restart Xinetd, and use netstat-an | grep 514 to view the result. The TCP 0 0 0.0.0.0: 514 0.0.0.0: * The listen result indicates that the RSH server has been started.
You only need to ensure that the processes on the Linux machine contain the rstatd and xinetd services and you can use lr to monitor them.
Two tips:
① Check whether the RSH server is enabled. The TCP listening speed of the RSH server is 514.
[Root @ mg04 root] # netstat-an | grep 514
TCP 0 0 0.0.0.0: 514 0.0.0.0: * listen
If 514 is displayed, the RSH server has been started.
② Check whether it is enabled: rstatd
Enter the command: rpcinfo-P
If the following information is displayed:
Program version protocol port
100001 5 UDP 937 rstatd
100001 4 UDP 937 rstatd
100001 3 UDP 937 rstatd
100001 2 UDP 937 rstatd
100001 1 udp 937 rstatd
It indicates that the rstatd service has been started. (Of course, PS ax can be used here)
③ Method for restarting xinetd:
In SuSELinux Follow these steps:
CD/etc/init. d/
./Xinetd restart
The following command is used in some places on the Internet:
# Service xinetd reload
#/Sbin/service xinetd rstart
I don't know what system is used.
④ How to install RSH and rsh-Server service packages
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
⑤ When rpc. rstatd is started, the error "cannot register service: RPC: unable to receive; errno = ction refused" will be reported ".
The solution is as follows:
#/Etc/init. d./Portmap start
#/Etc/init. d./nfs start
Then start RPC. rstatd again.
Finally, in the controller, Drag and Drop UNIX resources to the right window, right-click and select Add measurements to add monitored resources.LinuxAnd then select the metric to be monitored.
Ii. UNIX monitoring
LR monitoring UNIX, Unix first starts a rstatd service
The following describes how to start the rstatd service in the ibm aix system:
1. Use telnet to log on to the AIX system as the root user
2. Enter VI/etc/inetd. conf at the command line prompt.
3. Search for rstatd and find
# Rstatd sunrpc_udp udp wait root/usr/sbin/rpc. rstatd 100001 1-3
4. Remove #
5. WQ: Save the Modification result
6. Enter refresh-s inetd at the command prompt to restart the service.
In this way, LoadRunner can monitor the performance of the AIX system.
Note: After inetd. conf is edited on the hp unix system, you must enter inetd-C to restart the inetd service.
On UNIX, you can also run the RUP command to check whether the rstatd program is configured and activated.
If the rstatd program is already running, check the PS-Ef | grep inet process, kill the process, and restart the refresh-s inetd.
3. You can add a Unix counter when UNIX Resource appears in the LR controll.