apache web server (aws) monitoring

36
The Professional Open Source™ Company Apache Web Server (AWS) Monitoring JBossNetwork Enterprise Manager

Upload: ziven

Post on 02-Feb-2016

43 views

Category:

Documents


4 download

DESCRIPTION

Apache Web Server (AWS) Monitoring. JBossNetwork Enterprise Manager. Agenda. Supported versions of AWS Configuring AWS for management Supported Metrics and Control Actions Metric Data Collection, Control, and Alerting. Supported Versions of AWS. - PowerPoint PPT Presentation

TRANSCRIPT

Page 1: Apache Web Server (AWS) Monitoring

The Professional Open Source™ Company

Apache Web Server (AWS) Monitoring

JBossNetwork Enterprise Manager

Page 2: Apache Web Server (AWS) Monitoring

2 The Professional Open Source™ Company

Agenda

• Supported versions of AWS• Configuring AWS for management• Supported Metrics and Control Actions• Metric Data Collection, Control, and

Alerting

Page 3: Apache Web Server (AWS) Monitoring

3 The Professional Open Source™ Company

Supported Versions of AWS

Supported on UNIX (Linux, Solaris, HP/UX) and Windows:

• Apache Web Server 1.3.x 2.0.x

• Covalent Enterprise Ready Server (ERS) 2.3 2.4

Page 4: Apache Web Server (AWS) Monitoring

4 The Professional Open Source™ Company

Setting up AWS in JBN EM

• Steps are as follows Install AWS on a JBN EM-managed platform Prepare AWS for management via JBN EM Start the JBN EM agent on the host running AWS Launch the JBN EM Console and run a new auto-

discovery scan on the platform Import the AWS instance Complete resource configuration for the AWS

server and virtual hosts Exercise the AWS instance

Page 5: Apache Web Server (AWS) Monitoring

5 The Professional Open Source™ Company

Preparing AWS for management

• AWS instances support monitoring capabilities via third party DSO’s/modules: SNMP module (mandatory) RT module (needed for response time

collection)• Installing a module in AWS:

Getting a copy of the binary Copying the module under the AWS

installation Updating AWS configuration to use the

module

Page 6: Apache Web Server (AWS) Monitoring

6 The Professional Open Source™ Company

Installing SNMP/RT modules into AWS on UNIX

SNMP/RT modules can be built from the JBN EM full/agent distributions on UNIX.

Prerequisite: AWS must have been configured with --enable-so for the SNMP and RT modules to be installed.

A. SNMP Module:1. Compile and deposit the SNMP module.

cd JBNEM_AGENT_INSTALL_DIR% tar –zxf jbn-em-agent-jboss-1.0.xx/product_connectors/snmp-jboss-1.0.xx.tgz % cd snmp-jboss-1.0.xx% ./build_apache_snmp.sh 2.0 APACHE_INSTALL_DIR/bin/apxs % cp snmp_module_2.0/module/*.so APACHE_INSTALL_DIR/modules % cp snmp_module_2.0/conf/snmpd.conf APACHE_INSTALL_DIR/conf % mkdir APACHE_INSTALL_DIR/var

2. Edit APACHE_INSTALL_DIR/conf/httpd.conf, adding:

LoadModule snmpcommon_module modules/libsnmpcommon.so LoadModule snmpagt_module modules/libsnmpmonagt.so SNMPConf conf SNMPVar var

ServerName www.mydomain.com:80 (use appropriate domain name and port number)

3. Restart AWS

% APACHE_INSTALL_DIR/bin/apachectl restart

Page 7: Apache Web Server (AWS) Monitoring

7 The Professional Open Source™ Company

Installing SNMP/RT modules in AWS on UNIX (continued)

B. RT Module1. Compile and deposit the module:

cd JBNEM_AGENT_INSTALL_DIR% tar –zxf jbn-em-agent-jboss-1.0.xx/product_connectors/rt-jboss-1.0.xx.tgz % cd rt-jboss-1.0.xx% ./build_apache_module.sh 2.0 APACHE_INSTALL_DIR/bin/apxs % cp apache2.0/unix/.libs/mod_rt.so APACHE_INSTALL_DIR/modules

2. Edit APACHE_INSTALL_DIR/conf/httpd.conf, adding:

LoadModule rt_module modules/mod_rt.so

LogFormat "%S" rt_log CustomLog logs/rt_log rt_log

3. Restart the AWS

% APACHE_INSTALL_DIR/bin/apachectl restart

Page 8: Apache Web Server (AWS) Monitoring

8 The Professional Open Source™ Company

Installing SNMP/RT modules into AWS on Windows

Pre-built SNMP/RT modules are included in the JBN EM full/agent distributions on Windows.

1. Unzip the file JBNEM_INSTALL_DIR\product_connectors\apache-2.0-x86-winnt.zip

toAPACHE_INSTALL_DIR

2. Edit APACHE_INSTALL_DIR\conf\httpsd.conf to add:LoadModule snmpcommon_module modules/libsnmpcommon.so LoadModule snmpagt_module modules/libsnmpmonagt.so SNMPConf conf SNMPVar var

LoadModule rt_module modules/mod_rt.so

LogFormat "%S" rt_logCustomLog logs/rt_log rt_log

ServerName www.mydomain.com:80 (use appropriate domain name and port number)

3. Restart AWS

Page 9: Apache Web Server (AWS) Monitoring

9 The Professional Open Source™ Company

Importing AWS into JBN EM inventory

• Make sure AWS and JBN EM agent are running on the managed platform

• Launch JBN EM console• Run auto-discovery• Import AWS into the inventory

Page 10: Apache Web Server (AWS) Monitoring

10 The Professional Open Source™ Company

Auto-discovered AWS instance

Page 11: Apache Web Server (AWS) Monitoring

11 The Professional Open Source™ Company

Completing configuration of AWS resources

Was AWS pre-configured for management?• Yes

Sanity check on console Configure virtual host resources

• No Perform configuration from scratch Import discovered virtual hosts Configure virtual host resources

Page 12: Apache Web Server (AWS) Monitoring

12 The Professional Open Source™ Company

Verify AWS server configuration

Configure AWS server resource Go to the Inventory/Configuration page for

the AWS server• Configuration settings are displayed on

the page• Click on the EDIT button under the section

titled “Configuration Properties” Enable auto-discovery of virtual hosts

Page 13: Apache Web Server (AWS) Monitoring

13 The Professional Open Source™ Company

Configuration settings of the AWS server

Page 14: Apache Web Server (AWS) Monitoring

14 The Professional Open Source™ Company

Modifying AWS server configuration

Page 15: Apache Web Server (AWS) Monitoring

15 The Professional Open Source™ Company

Instructions for installing SNMP modules

Page 16: Apache Web Server (AWS) Monitoring

16 The Professional Open Source™ Company

Configuring AWS virtual hosts

Go to the Inventory/Configuration page for the AWS virtual host

• Verify/modify configuration settings Optionally enable service response

time collection

Page 17: Apache Web Server (AWS) Monitoring

17 The Professional Open Source™ Company

Configuration settings of a virtual host

Page 18: Apache Web Server (AWS) Monitoring

18 The Professional Open Source™ Company

Modifying virtual host configuration

Page 19: Apache Web Server (AWS) Monitoring

19 The Professional Open Source™ Company

Instructions for installing the Response Time module

Page 20: Apache Web Server (AWS) Monitoring

20 The Professional Open Source™ Company

Components of AWS Monitoring

• Metric data collection• Control• Alerting

Page 21: Apache Web Server (AWS) Monitoring

21 The Professional Open Source™ Company

Metric Data Collection

• Each version of AWS has a “universe” of metrics• Server metrics:

Availability• availability• start time

Throughput• Number of GET requests per minute, Total number of

requests per minute, Total number of bytes sent etc. Resource Utilization

• Number of concurrent connections• Virtual host metrics:

Availability• availability

Throughput• Number of GET requests per minute, Total number of

requests per minute, Total number of bytes sent etc. Response Time

• service time

Page 22: Apache Web Server (AWS) Monitoring

22 The Professional Open Source™ Company

List of Apache server metrics

Page 23: Apache Web Server (AWS) Monitoring

23 The Professional Open Source™ Company

Enabling metric data collection

• Configuration supports: Selection of metrics for collection

specifying the collection interval Modifying collection interval for metric Disabling collection for metric

Page 24: Apache Web Server (AWS) Monitoring

24 The Professional Open Source™ Company

Selecting metrics and collection intervals

Page 25: Apache Web Server (AWS) Monitoring

25 The Professional Open Source™ Company

Viewing metric data

Page 26: Apache Web Server (AWS) Monitoring

26 The Professional Open Source™ Company

Metric data in chart form

Page 27: Apache Web Server (AWS) Monitoring

27 The Professional Open Source™ Company

Response time stats for virtual host

Page 28: Apache Web Server (AWS) Monitoring

28 The Professional Open Source™ Company

Control Actions on AWS resources

• Server Start Stop Restart

• Virtual Host None

Page 29: Apache Web Server (AWS) Monitoring

29 The Professional Open Source™ Company

Scheduling a control action

Page 30: Apache Web Server (AWS) Monitoring

30 The Professional Open Source™ Company

Alerts on AWS resources

• Full range of alerting semantics apply to AWS resources

• Alerts Can be defined on any metric on

• AWS server• AWS virtual hosts

Can be combined with control actions on AWS server

Page 31: Apache Web Server (AWS) Monitoring

31 The Professional Open Source™ Company

Defining an Apache server alert

Page 32: Apache Web Server (AWS) Monitoring

32 The Professional Open Source™ Company

Defining a recovery alert

Page 33: Apache Web Server (AWS) Monitoring

33 The Professional Open Source™ Company

Trigger notification on Dashboard for problem alert

Page 34: Apache Web Server (AWS) Monitoring

34 The Professional Open Source™ Company

Trigger notification on Dashboard for recovery alert

Page 35: Apache Web Server (AWS) Monitoring

35 The Professional Open Source™ Company

Review

• We’ve covered The inventory and configuration of AWS

and embedded services Metric data collection and display Performing control actions Creating alerts on metric values

Page 36: Apache Web Server (AWS) Monitoring

36 The Professional Open Source™ Company

Thanks for your time!

Q & A