1 / 36

Apache Web Server (AWS) Monitoring

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.

ziven
Download Presentation

Apache Web Server (AWS) Monitoring

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


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

  2. Agenda • Supported versions of AWS • Configuring AWS for management • Supported Metrics and Control Actions • Metric Data Collection, Control, and Alerting 2 The Professional Open Source™ Company

  3. 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 3 The Professional Open Source™ Company

  4. 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 4 The Professional Open Source™ Company

  5. 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 5 The Professional Open Source™ Company

  6. 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-sofor 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 6 The Professional Open Source™ Company

  7. Installing SNMP/RT modules in AWS on UNIX (continued) B. RT Module 1. 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 7 The Professional Open Source™ Company

  8. Installing SNMP/RT modules into AWS on Windows Pre-built SNMP/RT modules are included in the JBN EM full/agent distributions on Windows. • Unzip the file JBNEM_INSTALL_DIR\product_connectors\apache-2.0-x86-winnt.zip to APACHE_INSTALL_DIR • 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_log CustomLog logs/rt_log rt_log ServerName www.mydomain.com:80 (use appropriate domain name and port number) 3. Restart AWS 8 The Professional Open Source™ Company

  9. 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 9 The Professional Open Source™ Company

  10. Auto-discovered AWS instance 10 The Professional Open Source™ Company

  11. 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 11 The Professional Open Source™ Company

  12. 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 12 The Professional Open Source™ Company

  13. Configuration settings of the AWS server 13 The Professional Open Source™ Company

  14. Modifying AWS server configuration 14 The Professional Open Source™ Company

  15. Instructions for installing SNMP modules 15 The Professional Open Source™ Company

  16. 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 16 The Professional Open Source™ Company

  17. Configuration settings of a virtual host 17 The Professional Open Source™ Company

  18. Modifying virtual host configuration 18 The Professional Open Source™ Company

  19. Instructions for installing the Response Time module 19 The Professional Open Source™ Company

  20. Components of AWS Monitoring • Metric data collection • Control • Alerting 20 The Professional Open Source™ Company

  21. 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 21 The Professional Open Source™ Company

  22. List of Apache server metrics 22 The Professional Open Source™ Company

  23. Enabling metric data collection • Configuration supports: • Selection of metrics for collection specifying the collection interval • Modifying collection interval for metric • Disabling collection for metric 23 The Professional Open Source™ Company

  24. Selecting metrics and collection intervals 24 The Professional Open Source™ Company

  25. Viewing metric data 25 The Professional Open Source™ Company

  26. Metric data in chart form 26 The Professional Open Source™ Company

  27. Response time stats for virtual host 27 The Professional Open Source™ Company

  28. Control Actions on AWS resources • Server • Start • Stop • Restart • Virtual Host • None 28 The Professional Open Source™ Company

  29. Scheduling a control action 29 The Professional Open Source™ Company

  30. 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 30 The Professional Open Source™ Company

  31. Defining an Apache server alert 31 The Professional Open Source™ Company

  32. Defining a recovery alert 32 The Professional Open Source™ Company

  33. Trigger notification on Dashboard for problem alert 33 The Professional Open Source™ Company

  34. Trigger notification on Dashboard for recovery alert 34 The Professional Open Source™ Company

  35. 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 35 The Professional Open Source™ Company

  36. Q & A Thanks for your time! 36 The Professional Open Source™ Company

More Related