Beruflich Dokumente
Kultur Dokumente
Table of Contents
Table of Contents . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . III Legal Notices . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .V Conventions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . IX
1 Introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1
Overview . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1 About This Document. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2
2 Architecture . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3
Overview. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Information Flow . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Communication . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Routing (Hopping) Server . . . . . . . . . . . . . . . . . . . . . . . Communication Layout with HP OM Administration UI . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .. .. .. .. .. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .3 .4 .5 .5 .6
3 Installation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7
Technical Requirements . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8 MIDAS Configurator . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8 HP OM Administration UI . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9 Permanent Disk Space . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9 Supported HP OM Agents . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9 Installation Prerequisites . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10 Upgrade Paths . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11 Installation Details Overview . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 12 Installation Details . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Adding MIDAS Debugger on the MIDAS Web Application system . . . . . . . . . . . . . . . Adding MIDAS Debugger on a MIDAS HP OM BackEnd. . . . . . . . . . . . . . . . . . . . . . . Installing MIDAS Debugger on the HP OM Test Agent System. . . . . . . . . . . . . . . . . . Adding MIDAS Debugger to Administration UI . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Post Installation Tasks . . . . . . . . . . . . . . . . . . . . . . . . . . Registration of HP OM Test Agent System . . . . . . . . Add HP OM Test Agent to Node Group midas_debug Edit opc_adm Responsibility Matrix. . . . . . . . . . . . . . Enable Server MSI . . . . . . . . . . . . . . . . . . . . . . . . . . . MIDAS v4.4.0 and OM 9 - Problem . . . . . . . . . . . . . . HTTPS Certificates Exchange . . . . . . . . . . . . . . . . . . MIDAS Configurator . . . . . . . . . . . . . . . . . . . . . . . HP OM 9 Administration UI . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .. .. .. .. .. .. .. .. .. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .. .. .. .. .. .. .. .. .. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 13 . 14 . 15 . 16 . 17 . 20 . 21 . 22 . 23 . 24 . 24 . 25 . 25 . 25
4 Configuration . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 27
Cleanup of MIDAS Policy Debugger Data . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 27 Routing (Hopping) Server . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 30 Overview . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 30 Configuration Details. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 31 MIDAS User Role Rights . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 32
5 Usage . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 33
Launch . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 33 Interface . . . . . . . . . . . . . . . . . . Menu Details . . . . . . . . . . Test Data Browser . . . . . . Message Browser . . . . . . Message Details Browser . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 34 . 34 . 35 . 36 . 36 . 37 . 37 . 37 . 37 . 37
Troubleshooting MIDAS Policy Debugger . . . . . . . . . . . . . . . . . . Before you begin: . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . No Data Displayed in the Test Data Pane: . . . . . . . . . . . No Messages Displayed in the Message Browser Pane: . Tests Generate Wrong or Unexpected Messages:. . . . . .
Legal Notices
blue elephant systems GmbH shall not be liable for errors contained herein or for incidental or consequential damages in connection with the furnishing, performance, or use of this material. The information herein is subject to change without notice and is provided "as is" without warranty of any kind. The entire risk arising out of the use of this information remains with recipient. In no event blue elephant systems GmbH shall be liable for any direct, consequential, incidental, special, punitive, or other damages whatsoever (including without limitation, damages for loss of business profits, business interruption or loss of business information), even if blue elephant systems GmbH has been advised of the possibility of such damages. The foregoing shall apply regardless of the negligence or other fault of either party and regardless of whether such liability sounds in contract, negligence, tort, or any other theory of legal liability, and notwithstanding any failure of essential purpose of any limited remedy. The limited warranties for blue elephant systems GmbH products are exclusively set forth in the documentation accompanying such products. Nothing herein should be construed as constituting a further or additional warranty. blue elephant systems GmbH may have patents or pending patent applications covering subject matter described in this document. The furnishing of this document does not give you any license to these patents. You can send license inquiries, in writing, to: blue elephant systems GmbH Wollgrasweg 49 D-70559 Stuttgart Germany This document is protected by copyright. All rights are reserved. No part of this document may be photocopied, reproduced, or translated to another language without prior written consent of blue elephant systems GmbH. blue elephant systems is a registered trademark of blue elephant systems GmbH in Germany, other countries, or both. All other registered trademarks belong to their respective companies. Copyright blue elephant systems GmbH, 2010-2011.
MIDAS Debugger includes software developed by various open-source projects and organizations as listed below. The corresponding files and components are copyright to the corresponding organization or vendor and all rights reserved. The software files and components distributed under the open-source licenses are distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the license of the corresponding project for specific rights and limitations under the license. Depending on the license, any product derived from the products may not be called with the name of the project nor may the name of the project appear in their name, without prior written permission. For written permission, please contact the corresponding project owner by visiting the corresponding project home page as listed below. We greatly appreciate the work of those projects and try to contribute as much as possible to some of those projects in order to compensate their contributions. This product includes software developed by the Acegi System for Spring Project (http://acegisecurity.org/) This product includes software developed by the ActiveMQ project (http://activemq.org/) This product includes software developed by the Ant-Contrib project (http://sourceforge.net/projects/ant-contrib) This product includes software developed by the Antlr project (http://www.antlr2.org) This product includes software developed by the Apache Software Foundation (http://www.apache.org/). These are Ant, Batik,BCEL, Cocoon, Commons, Derby, Excalibur, FOP, Forrest, FTPServer, Jasper, Log4j, Lucene, ORO, POI, Solr, Tuscany, Velocity, Xalan, Xerces and XML RPC, XML Security. This product includes software developed by the Baekmuk project (http://kldp.net/projects/baekmuk/) This product includes software developed by the BSF project (http://jakarta.apache.org/bsf/) This product includes software developed by the dnsjava project (http://www.dnsjava.org/) This product includes software developed by the Docbook project (http://www.docbook.org/) This product includes software developed by the dom4j project (http://dom4j.org/) This product includes software developed by the Drools project (http://drools.codehaus.org/) This product also includes software developed by the dsmltools project (http://www.dsmltools.org/) This product also includes software developed by the EditArea project (http://www.cdolivet.net/editarea/) This product also includes software developed by the Exist project (http://www.exist-db.org/) This product also includes software developed by the Fins project (http://cocoondev.org/main/117-cd/29-cd.html)
VI
This product also includes software developed by the Fireflysung project (http://www.study-area.org/apt/firefly-font/) This product also includes software developed by the Groovy project (http://groovy.codehaus.org/) This product also includes software developed by the GWT project (http://code.google.com/webtoolkit/) This product also includes software developed by the ICU4C project (http://www.ibm.com/software/globalization/icu/) This product also includes software developed by the ICU4J project (http://www.ibm.com/software/globalization/icu/) This product also includes software developed by the j2ssh project (http://sourceforge.net/projects/sshtools/) This product also includes software developed by the Janino project (http://www.janino.net/) This product also includes software developed by the Jasper project (http://tomcat.apache.org/) This product also includes software developed by the Jaxen project (http://jaxen.org/) This product also includes software developed by the Jaxup project (http://klomp.org/jaxup/) This product also includes software developed by the JDOM project (http://www.jdom.org/) This product also includes software developed by the Jencks project (http://jencks.org/) This product also includes software developed by the Jetty project (http://jetty.mortbay.org/jetty/) This product also includes software developed by the JFreeChart project (http://www.jfree.org/jfreechart/) This product also includes software developed by the JPam project (http://jpam.sourceforge.net/) This product also includes software developed by the mimeutil project (http://sourceforge.net/projects/mime-util/) This product also includes software developed by the jRegistryKey project (http://sourceforge.net/projects/jregistrykey/) This product also includes software developed by the Jsch project (http://www.jcraft.com/jsch/) This product also includes software developed by the Jsdifflib project (http://snowtide.com/jsdifflib) This product also includes software developed by the Jython project (http://www.jython.org) This product also includes software developed by the MX4J project (http://mx4j.sourceforge.net) This product also includes software developed by the Netbeans CVS project (http://javacvs.netbeans.org/library)
VII
This product also includes software developed by the openadaptor project (http://www.openadaptor.org) This product also includes software developed by the Oracle JDBC project (http://www.oracle.com) This product also includes software developed by the Prefuse project (http://prefuse.org) This product also includes software developed by the Quartz project (http://www.opensymphony.com/quartz) This product also includes software developed by the Rhino project (http://www.mozilla.org/rhino) This product also includes software developed by the Sazanami project (http://sourceforge.jp/projects/efont) This product also includes software developed by the ServiceMix project (http://www.servicemix.org) This product also includes software developed by the ServingXml project (http://servingxml.sourceforge.net) This product also includes software developed by the Spring project (http://www.springframework.org) This product also includes software developed by the StaX project (https://sjsxp.dev.java.net) This product also includes software developed by the TM4J project (http://www.tm4j.org) This product also includes software developed by the util.concurrent project (http://gee.cs.oswego.edu/dl/classes/EDU/oswego/cs/dl/util/concurrent/intro.html) This product also includes software developed by the VMTools project (http://www.vmsystems.net/vmtools) This product also includes software developed by the Wrapper project (http://wrapper.tanukisoftware.org) This product also includes software developed by the XBean project (http://xbean.org) This product also includes software developed by the XIA project (http://www.jeckle.de/freeStuff/xia/) This product also includes software developed by the XML Ant Task project (http://www.oopsconsultancy.com/software/xmltask/)
VIII
Conventions
Font Style Boldface Capitalization Computer font Explanation
Words in boldface type represent programs and commands. Capitalized first letters represent company or product names. Words in computer font represent file or path names, command syntax statements, prompts or messages that appear on your screen or text you should type on your workstation or terminal. Words in italics represent variables in syntax statements or words that are emphasized in the text. Represents required elements in a syntax statement. When several elements are separated by the | symbol you must select one of the elements. Represents optional elements in a syntax statement.
Italics
{}
[]
In all examples the default installation path of MIDAS Debugger on HP-UX, Sun Solaris, Linux is displayed. It is # /opt/midas44/Furthermore, throughout this manual the HP-UX, Sun Solaris or Linux syntax is used for the central MIDAS command: # /opt/midas44/midas.sh {sub-command}
IX
1 Introduction
Overview
Your company's business success relies on high-quality IT services and IT infrastructure agility. To keep your IT services available and well performing, you need a proven operations management solution that gives you control over your ever-changing IT infrastructure. That solution is HP Operations Manager for HP-UX (HP OMU), Sun Solaris (HP OMS) or LINUX (HP OML). HP Operations Manager discovers, monitors, controls and reports on the availability and performance of your heterogeneous, large-scale IT environment. It consolidates information for all IT components that control your business: network, systems, storage, databases, and applications. With its service-driven approach, it shows what IT problems affect your business processes, helping you to focus on what's most important for your company's business success. In order to monitor more and more complex applications and services, policies within HP Operations Manager have become highly complex as well, making policy testing an absolute necessity. Typical issues faced by HP OM Administrators: Ideally there should be separate development, test and production environments. Need for separate test agents & machines to develop HP OM policies & instrumentation. Complicated application software cannot be easily installed. No real testing facilities available.
MIDAS Debugger simplifying the process of testing and the subsequent modification of the policy. All required steps can be performed within a single GUI window, making this an easy, repeatable task. MIDAS Debugger is an Add-On software for: MIDAS Configurator v4.2 and above HP Operations Manager 9.1 Administration UI and above Full integration: within the policy editor MIDAS Debugger GUI window can be launched. This will trigger the assignment and deployment of the policy, in its actual state, to the selected test agent. No console access to the test agent system is required. Step-through conditions using test-data (logfiles, opcsmg). A message browser is integrated into the MIDAS Debugger GUI window as well, displaying all messages generated from the actual test run. Test data is needed, but the real application does not have to be installed. Covered by the MIDAS or HP OM Administration UI user model. The following policy types are currently supported: logfile, opcmsg.
Chapter 1: Introduction
Chapter 1: Introduction
2 Architecture
Overview
The following considerations should be taken into account when installing MIDAS Debugger: MIDAS Debugger requires one or more test systems. A virtualized system is enough. The MIDAS Debugger test agent system(s) must not be production systems in any way. MIDAS Debugger does not bring its own agent. Therefore, MIDAS Debugger requires that a HP OM agent is installed on each of these test systems. The HP OM agent needs to be installed prior to MIDAS Debugger! You can have multiple agent test systems. They will be placed inside the node group midas_debug. MIDAS Debugger is an Add-On product to MIDAS Configurator/HP OM 9 Administration UI and requires a separate license. HP OM 9.1 Administration UI users should note the following: In order to install MIDAS Debugger you will require two (2) installer packages: MIDAS Debugger Add-On installer for installing the Add-On on the HP OM Administration UI server, Standard MIDAS Configurator installation package for installing the Add-On on the test agent system. MIDAS Debugger consists of several modules. By rule of thumb it has to be installed on each of your MIDAS/HP OM 9 Administration UI systems and on each test agent system(s).
Chapter 2: Architecture
Information Flow
The following diagram (Figure 1 on page 4) gives an overview of the general information flow with MIDAS installed on separate servers. Figure 2 on page 4 shows the basic architecture in a HP OM Administration UI environment. Please note, that when you use HP OM Administration UI, the MIDAS/Administration UI WebApp system is located also on the HP OM server. Figure 1 MIDAS Debugger Basic Architecture
MIDAS WebApp system
MIDAS er Debugger l GUI incl Message Browser owser
debug policy
HP OM server OMU Message Adaptor OMU DB OMU Agent OMU Agent Adaptor HP OM test agent system OMU Server OMU Configuration Adaptor
OMU Server
OMU Agent
Chapter 2: Architecture
Communication
If you run HP OM Administration UI, see Communication Layout with HP OM Administration UI on page 6. The MIDAS Web Application system will need to talk directly to the MIDAS HP OM Backend and also to the HP OM Test Agent. The default listening port is 9661. The communication is by default HTTP based. But it can also be switched to HTTPS, which will require the exchange of the necessary certificates. The MIDAS HP OM Test Agent system will be registered on the MIDAS Web Application Server as a normal MIDAS BackEnd (identical to registering a MIDAS HP OM BackEnd system), see Figure 3 on page 5. Figure 3 Communication Layout
MIDAS Web Application Server
A HTTP/ HTTPS
9661
B
9661
B
X X
Firewall
Note: the HP OM communication is not displayed here
HTTP/ HTTPS
Chapter 2: Architecture
Chapter 2: Architecture
3 Installation
This chapter covers the following topics: - Technical Requirements on page 8 - Permanent Disk Space on page 9 - Supported HP OM Agents on page 9 - Installation Prerequisites on page 10 - Upgrade Paths on page 11 - Installation Details Overview on page 12 - Installation Details on page 13 After the installation has succeeded it is necessary to perform some post installation tasks. The details can be found here: - Post Installation Tasks on page 20
Chapter 3: Installation
Technical Requirements
Depending on your installed MIDAS or HP OM Administration UI version you can find the individual technical requirements here: - for MIDAS Configurator on page 8 - for HP OM Administration UI on page 9
MIDAS Configurator
MIDAS Debugger is an Add-On software which requires MIDAS Configurator v4.2 or higher. Therefore, all system requirements of MIDAS Configurator 4.2 also have to be met. Please see the main MIDAS Configurator 4.2 Installation Guide for details. MIDAS Configurator v3 is NOT supported. MIDAS Configurator v4.0, 4.1 are NOT supported. MIDAS Debugger requires an additional licence. It comes with a instant on license which is valid for 60 days. Installation of MIDAS Debugger has to be done on: If you use MIDAS Configurator v4.2: MIDAS Debugger is a optional component included within the MIDAS Configurator installer package. No stand-alone installer is available. It is important to use the installer version which matches your MIDAS version! You can check your existing version via the following command: # /opt/midas44/midas.sh version The following line lists your exact version: [...] [echo] MIDAS version = 4.2.0 If you use MIDAS Configurator 4.3.0 you need to use MIDAS Debugger 4.3.0. On the MIDAS WebApp system1. On the MIDAS HP OM BackEnd system. On the test agent system (HP OM agent must be installed first!).
1. If the Web Application and Web Application Server modules are split across two servers, MIDAS Debugger has to be installed on BOTH systems. Note, that this is a non default setup. Generally, customers have both WebApp modules installed on the same machine.
Chapter 3: Installation
HP OM Administration UI
MIDAS Debugger is an Add-On software which requires HP OM Administration UI 9.1 or higher. Therefore, all system requirements of HP OM Administration UI 9.1 also have to be met. Please see the main Administration UI 9.1 Installation Guide for details. Configuration and Value Pack (CVP) 3.x is NOT supported. Administration UI 9.0 is NOT supported. MIDAS Debugger requires an additional licence. It comes with a instant on license which is valid for 60 days. Installation of MIDAS Debugger has to be done on: On the HP OM server running Administration UI 9.1. For this purpose use the stand-alone MIDAS Debugger Add-On 9.1.0 installer. On the test agent system (HP OM agent must be installed first!). Here you have to use the MIDAS v4.3 Product Suite installer which matches the operating system of the HP test agent system. Download location for the installer packages is: http://www.blue-elephant-systems.com Register, login and navigate to the Downloads section.
Supported HP OM Agents
Supported platforms for the HP OM Test Agent are those, which are also supported by MIDAS Configurator. Currently these are: HP-UX, Linux, Solaris & Windows. MIDAS Debugger does not require any special HP OM agent version. All agents v.8 and above should also work with MIDAS Debugger. Older agents are not supported. WARNING: Though it is possible to use the agent on the HP OM management server itself for policy debugging purposes, we strongly disadvise from doing this. A dedicated non-productive test system should be used. The reason is, that MIDAS Debugger more or less takes fully control of this agent, for example, continuously performing (de-)assigning, (un-)deploy operations.
Chapter 3: Installation
Installation Prerequisites
On the test agent system, the HP OM agent must be installed first and registered on an HP OM server. Remember to install a 64-bit agent on a 64-bit operating system. The HP OM agent installation can be done via: MIDAS Configurator or HP OM 9 Administration UI. For details on the HP OM agent installation, see chapter SSH Based Agent Installation in the main User Guide. HP OM 8 Motif GUI, or manually. For the two latter options please see the corresponding HP OM documentation.
10
Chapter 3: Installation
Upgrade Paths
Three scenarios exist: MIDAS Configurator is not installed yet. Simply enable the checkbox for the MIDAS Debugger Add-On. Remember, that you have to select the MIDAS Debugger Add-On on all the servers you are installing (i.e. MIDAS Web Application system, HP OM server). Otherwise, follow the main MIDAS Configurator Installation Guide. For the MIDAS Debugger details see this guide. MIDAS Configurator or HP OM 9 Administration UI is already installed. This guide assumes that this is the existing setup you have. If HP OM 9 Administration UI is not installed yet, you have to install Administration UI 9.1.0 or higher first and in a second step install the MIDAS Debugger Add-On on the HP OM server and on the HP test agent system(s).
Chapter 3: Installation
11
12
Chapter 3: Installation
Installation Details
The installation details for each setup scenario can be found in the following sub-sections: - Adding MIDAS Debugger on the MIDAS Web Application system on page 14 - Adding MIDAS Debugger on a MIDAS HP OM BackEnd on page 15 - Installing MIDAS Debugger on the HP OM Test Agent System on page 16 - Adding MIDAS Debugger to Administration UI on page 17
Chapter 3: Installation
13
Figure 6
In the product selection window, simply select the MIDAS Debugger Add-On. Product Selection
Figure 7
14
Chapter 3: Installation
Chapter 3: Installation
15
Figure 9
The rest of the setup windows is identical to those with other MIDAS installations. If in doubt see the MIDAS Configurator Installation Guide.
16
Chapter 3: Installation
Chapter 3: Installation
17
The next installer panel will ask you to define the port of the Derby database and the administration password, see Figure 11 on page 18. MIDAS Debugger will use it to store its information here.
The next installer panel summarizes the entered information (Figure 12 on page 18). Only when you press Install the installation will take place.
18
Chapter 3: Installation
The installer will install and compile the necessary files. When this process has completed, the next panel will ask you to enter the registration data of the separate HP OM test agent system, which was previously installed (Figure 13 on page 19). If you do not remember which settings were used, you can run on the HP test agent the command: #/opt/midas44/midas.sh backend Hostname: This is the hostname of the HP test agent system. Server Identifier: Enter the server identifer of the test agent. Usually the syntax will be like this: <hostname>_server HTTP Serverport: Enter the default port 9661, unless another port is used. HTTPS/HTTP: Select HTTP or HTTPS. Remember that HTTPS requires the exchange of the corresponding certificates. See section HTTPS Certificates Exchange on page 25 for details. Server Password: Enter the password of the MIDAS/HP test agent here.
If you have more than one HP test agent you can add those as well via the next installer panel, see Figure 14 on page 19.
Chapter 3: Installation
19
NOTE: MIDAS v4.4.0 on OM 9 system: after the release it was discovered that the category midas_debug is missing. Please add this category manually.
20
Chapter 3: Installation
Chapter 3: Installation
21
A policy group midas_debug also exists, but should not be modified in any other way! It is used internally.
22
Chapter 3: Installation
Figure 16
Close the responsibility matrix editor via the Save button. Now you can use the MIDAS Policy Debugger within the MIDAS policy editor. For details see Chapter 5, Usage.
Chapter 3: Installation
23
24
Chapter 3: Installation
MIDAS Configurator
If you use the MIDAS Configurator Product Suite, please refer to chapter HTTP/ HTTPS in the MIDAS Configurator Administration and Configuration Guide.
HP OM 9 Administration UI
If you have enabled HTTPS on the MIDAS/HP test agent system, it is necessary to exchange the MIDAS/Administration UI certificates between the servers. Please note, that certifcates here does not mean the HP OM certificates, but those used within Administration UI and MIDAS. To do so please follow the steps below: In this example we use the following two systems: MIDAS/HP test agent: starbug HP OM Administration UI server: ios For convenience, a certificate file exists on each system in MIDAS /HP test agent: /opt/midas44/conf/<serverID>.cer HP OM Administration UI: /opt/OV/OMU/adminUI/conf/<serverID>.cer On the HP OM Administration UI server (here: ios): Transfer the file /opt/OV/OMU/adminUI/conf/ios_server.cer to your MIDAS/ HP test agent to /tmp (via scp, ftp, external media, ...). Please do not modify its contents in any way. On the MIDAS/HP test agent (here: starbug): Import the ios_server.cer CA certificate on starbug into its truststore. Use the following command to do so (please note this needs to be one single command line!):
starbug #/opt/midas44/midas.sh ant -f run.mxl https_import_backend \ -Dfile=/tmp/ios_server.cer -Dbackend=ios_server
Please restart MIDAS on the MIDAS/HP test agent (here: starbug), using the following command: starbug # /opt/midas44/midas.sh clean starbug # /opt/midas44/midas.sh start
Now perform the same steps on the other system. On the MIDAS/HP test agent (here: starbug): Transfer the file /opt/midas44/conf/starbug_server.cer to your HP OM Administration server (here: ios) to /tmp.
Chapter 3: Installation
25
On the HP OM Administration UI server (here: ios): Import the starbug_server.cer CA certificate on ios into its truststore. Use the following command to do so (please note this needs to be one single command line!):
ios #/opt/OV/OMU/adminUI/adminui ant -f run.mxl https_import_backend \ -Dfile=/tmp/starbug_server.cer -Dbackend=starbug_server
Please restart the HP OM Administration UI (here: ios), using the following command: ios # /opt/OV/OMU/adminUI/adminui clean ios # /opt/OV/OMU/adminUI/adminui start
26
Chapter 3: Installation
4 Configuration
This chapter currently has these sections: - Cleanup of MIDAS Policy Debugger Data on page 27 - Routing (Hopping) Server on page 30 - MIDAS User Role Rights on page 32
The task exists on the MIDAS HP OM BackEnd system. In order to locate and schedule it please perform the following tasks: Select your MIDAS HP OM BackEnd system. Click the icon Server in the Toolbar Menu. Select the direct link All Tasks or via the Administrative Menu: Browse -> All Tasks, see Figure 19 on page 28.
Chapter 4: Configuration
27
In order to quickly locate the use the filter function and enter there debug (Figure 20 on page 28). From the Action Menu of the task Debug Cleanup select Schedule, see Figure 20 on page 28.
28
Chapter 4: Configuration
Inside the schedule editor you have to fill in some required fields: Under the tab properties you have to a job name, for example: MIDAS Policy Debugger cleanup. It is recommend to enter the same information in the label field. Under the tab schedule set the time when the task should be executed. The task should be run on a weekend or at night (for example at 03:15 each night, Figure 21 on page 29), when there are generally no users using the debugger function. It should not be executed during daytime.
Chapter 4: Configuration
29
9661
B
X X
Firewall
Note: the HP OM communication is not displayed here
HTTP/ HTTPS
Please note, if you want to use HTTPS, it is absolutely necessary, that all communication connections A -> B -> C are set to HTTPS. The certificates have to be exchanged accordingly along the communication line. See the main MIDAS Configuration Administration and Configuration Guide for details.
30
Chapter 4: Configuration
Configuration Details
In order to setup a routing (hopping) server the following setup sequence is important: The MIDAS Server which should take over the routing role (for example the MIDAS HP OM Server) has to be registered first as a BackEnd in the MIDAS Web Application GUI. Please make sure that this connection is working correctly. The hostname of the HP OM Test Agent System must be resolvable on that MIDAS Server (for example the MIDAS HP OM Server). HTTPS only: If HTTPS is used for the communication it is absolutely necessary, that all communication connections A -> B -> C are set to HTTPS (see the diagram - Figure 22 on page 30). The certificates have to be exchanged accordingly along the communication line. See the main MIDAS Configuration Administration and Configuration Guide for details. Now register the HP OM Test Agent in the MIDAS GUI like this: Server Type: select Routing Server here. Hostname: Enter the hostname of the HP OM Test Agent where also the MIDAS Debugger module was installed. Server Identifier: Enter the identifier of the HP OM Test Agent. If unsure use the command: # /opt/midas44/midas.sh backend It will show the server identifier. Password: Please enter the MIDAS HP OM Test Agent server password which was supplied during the installation. Routing Server Identifier: Enter the server identifier of the MIDAS Server which should take over the role as routing (hopping) server. Use the command #/opt/midas44/midas.sh backend on the to-be routing server to show the used identifier there. Protocol: HTTP or enable (X)SSL when HTTPS should be used. Port: 9661 is the default MIDAS server port. Figure 23
Chapter 4: Configuration
31
32
Chapter 4: Configuration
5 Usage
The Policy Debugger currently supports the following policy types: logfile, opcmsg.
Launch
From inside the policy editor the MIDAS Policy Debugger can be launched. It is located under the tab Conditions, see Figure 24 on page 33. Please allow your browser to open pop-up windows for the MIDAS Web Application system. Figure 24 Launch Debugger
When the debugger window opens, a restore point is saved in the background. Once the debugger window is open, a second click on the button Debugger will bring the already opened window into the foreground. Multiple debugging session, even with the same HP OM test agent are possible.
Chapter 5: Usage
33
Interface
The MIDAS Policy Debugger window has four main areas: Menu area: Start, step through, stop the debugging process, select the HP OM Test Agent and reload policy changes from the policy editor into the MIDAS Policy Debugger window. Test Data: The Test-data browser enables you to upload, browse, annotate, and modify the contents of the file that you want to use to test the effectiveness of the new policy you are developing. Click the pane's title bar to display or hide the contents of the pane. Messages: The Policy Debugger's built-in message browser enables you to browse the messages generated by the policy you are testing on the data in the uploaded file. Click the pane's title bar to display or hide the contents of the pane. Message Details: The Policy Debugger's message-details pane enables you to view detailed information about the individual messages generated by the policy you are testing on the data in the uploaded file. Click the pane's title bar to display or hide the contents of the pane.
Menu Details
The main menu offers the following functions via buttons or drop down menus, see Figure 26 on page 35: Run Debugger: Start the debug process and run it from the designated point in the test log file to the next marker; you can set markers on any line in the test file. Note that the Run option is also available from the context-sensitive menu, for example, when you right-click a line in the test data file. Step Debugger: Run the debug process one line at a time through the test file. Stop Debugger: Stop the debugging process immediately, wherever it is in the current test-data file. Note that stopping the debugger in this way clears any pattern matching you have been using in the GUI and automatically acknowledges any messages generated during the debugging process. Select Evaluation Mode: Display/hide information in the Match and Candidates columns in the Test Data pane. The Match column indicates the line number in the test file where the policy you are testing has found the first match; the Candidates column indicates any other potential matches further down the test file. The current modes are: Full, Matches only, and Do not Show Matches. Full - all conditions are shown. Matches only - only the first matched condition is shown. Please note, the following current restriction:
34
Chapter 5: Usage
This feature is disabled if you run an older version than HP OM 8.29. HP OM 8.29-8.35 - A HP OM API bug exists resulting in an out-of-memory error after bigger match operations. It will be fixed in HP OM 8.36. Toggle Agent Logging: Switch on/off logging on the test agent. Applies to opcmsg policies only. The default setting is "On". Toggle Forwarding of Unmatched Messages: Switch on/off automatic forwarding (from the agent) of unmatched messages. Applies to opcmsg policies only. The default setting is "On". When changing this setting, a redeploy is necessary. Please select a test agent here: Select the agent that you want to use to test the currently active policy and data file; the agent drop-down list displays all the managed nodes included in the midas_debug node group, which is a special node group intended only for use with the policy debugger. Note that the list of test agents is always up to date; the Policy Debugger checks the current contents of the midas_debug node group before displaying the list of test agents for selection. Deploy Policy: Manually redeploy to the test agent the latest version of the policy you are testing. Redeployment ensures that the latest version of the policy (with any changes made during the session) is available on the designated test node. Please note, that many parallel deployments in your environment can also slow down the deployment for the test agent. MIDAS Administrator users therefore, might find that this deployment task is listed under Pending Deployments. No instrumentation is deployed. Figure 26 MIDAS Policy Debugger - Main Menu
Chapter 5: Usage
35
Evaluate any strings that match the newly defined conditions; the Debugger displays the first match but lists as candidates all other matches in the test file, too. Please note, that test data cannot be saved or exported from the debugger window.
If you want to test an opcmsg policy, note that the opcmsg data you upload to the Policy Debugger must be in particular form, namely: a comma-separated list, whose content and order is important. The Debugger uses the values in the comma-separated list to populate the fields and columns in the test-data section of the Policy Debugger GUI.
Message Browser
The Message Browser pane in the Policy Debugger GUI enables you view and manage the messages generated by the policy you are currently testing on the uploaded log file or opcmsg call. You can perform the following actions on the messages displayed: Filter the contents of the message pane according to various criteria, for example: severity, node name, number of duplicate message, time received, unmatched status, and so on. Configure the browser to display the latest messages. Perform an action on one or more messages, for example, acknowledge the message or set a filter. Customize the way in which the messages are displayed. Monitor the number and severity status of messages generated by the test data.
36
Chapter 5: Usage
3. Check that no background jobs are scheduled to automatically acknowledge all messages generated during the debugging session. 4. Check if the acknowledged messages were downloaded to a flat file as part of a scheduled clean up. Note that some cleanup tasks are performed automatically when the Policy Debugger session closes. For example, the temporary version of the tested policy is deleted, all temporary files on the agent are removed, and the policy (and any instrumentation) are undeployed from the test agent.
38
Chapter 5: Usage
For more information, visit blue elephant systems on the web at http://www.blue-elephant-systems.com for more information.
39
40