This task describes how to configure the UNIX environment before setting up the UNIX Resources monitor.
Verify whether the rstatd daemon is already configured
The rstatd daemon might already be configured, because when a machine receives an rstatd request, the inetd on that machine automatically activates the rstatd.
The rup command reports various machine statistics, including rstatd configuration. Run the following command on the UNIX machine to view the machine statistics:
You can also use lr_host_monitor and see if it returns any relevant statistics.
If the command returns meaningful statistics, the rstatd daemon is already configured and activated. If not, or if you receive an error message, the rstatd daemon is not configured.
Configure the rstatd daemon
If the rstatd daemon is not yet configured, follow these steps to configure it:
On the UNIX machine, run the command: su root
Go to /etc/inetd.conf and look for the rstatd row (it begins with the word rstatd). If it is commented out (with a #), remove the comment directive, and save the file.
From the command line, run:
Run rup again.
kill -1 inet_pid
inet_pidis the pid of the inetd process. This instructs the inetd to rescan the /etc/inetd.conf file and register all daemons which are uncommented, including the rstatd daemon.
If the command still does not indicate that the rstatd daemon is configured, contact your system administrator.
Configure the monitor for a UNIX machine over a firewall (optional)
To monitor a UNIX machine over a firewall, you must run a UNIX utility called rpcinfo and identify the rstatd's port number.
Run rpcinfo -p <hostname>. You will receive a list of all RPC servers registered in the host's portmapper, along with the port number. This list will not change until rstatd is stopped and rerun.
Some firewalls allow you to open an RPC program number instead of a port. In such cases, open program 100001. If are prompted to include a version number, specify versions 3 and 4.
Configure the monitor measurements in the Controller
For task details, see How to Set Up a Monitoring Environment.
In the Resource Measurements on <machine> section of the UNIX Resources dialog box, click Add to open the UNIX Kernel Statistics dialog box, and then select the available measurements and server properties.
For a description of the available UNIX monitor measurements, see UNIX Resources Performance Counters.
Note: In the Linux Kernel Statistics dialog box, selecting the Recover Connection check box enables the Controller to try to recover a broken connection to a monitored Linux server. If the Recover Connection check box is not selected, a broken connection will be maintained until the end of the Controller session, and as a result server details will not be received from the monitored server. By default, the Recover Connection check box is selected.