Monitoring Linux

by Community Manager on 07-06-2011 01:46 PM - last edited on 07-11-2011 12:58 PM

Prerequisites

In order to monitor a Linux server, SOASTA CloudTest must be able to establish an SSH connection to the server. If you are not sure how to enable this, consult your Linux documentation.

If a firewall prevents SSH access, see Monitoring a Server Behind a Firewall.

 

Steps

 

  1. In the Central list, select Monitoring Server Groups.

Central list, Monitoring Server Groups

  1. Click the New Monitoring Server Group icon. The Monitoring Server / Monitor wizard appears:

New Monitor Server Group icon

  1. Select Monitor Server and click Next.  The Name and Connection step is shown.
 
  1. Type a name for the Monitoring Server and optionally provide a description.  Finally type the hostname or IP address of the server into the Host field and click Next.

 

  1. The Resources step is shown. Check "System Resources" and click Next.

 

  1. Select the version of Linux being monitored, then enter the SSH port number, the user name, and password.

  1. Click the Test Connection button to test the connection. If the connection is successful, you will see a pop-up containing some information about the Linux server. If the connection fails, you will see an error message explaining what went wrong.

  1. Click Next.
 
  1. Review the information to be sure it is correct, then check the "Create a new Monitor for this Monitor Server" box and click Finish.
  1. Enter a name for the Monitor and an optional description, then click Next.
  1. At this point you can choose which statistics you are interested in. For each statistic, you can choose a "sample rate" which determines how often that statistic will be collected.

Some of the statistics require an entry in the "Arguments" column. For example:

  • For the "Network KBits Received" and "Network KBits Sent" statistics, you can enter the name of the network interface you want to monitor (for example, eth0 or eth1). If you do not enter a value, then the total of all network interfaces will be tracked (this excludes the loopback interface).
  • For the "Per Process CPU Percentage", "Per Process Memory Usage", "Per Process Thread Count", and "Per Process Virtual Memory" statistics, you must enter the name of a process (for example, mysqld or httpd). In some cases, there may be multiple matching processes (for example, multiple Apache HTTP worker processes). When this happens, the total for all matching processes will be tracked.

 

When you are finished, click Next. Review the information to be sure it is correct, then click Finish.

 

Next steps