ITM
ITM: IBM Tivoli Monitoring
是IBM的Cloud & Smart Infrastructure监控解决方案。
Architecture Overview:
ITM主要由管理组件和可选组件组成。
Tivoli Management Services:
- TEMS
- TEPS
- TEP client
- Historical data collection(warehouse agent)
- warehouse proxy
- summarization and pruning agent
- OS agent
Optional components:
- Dashboard Application Services Hub
- Tivoli Monitoring dashboards(Infrastructure Management Dashboards for Servers)
- Tivoli Common Reporting
- Tivoli Enterprise Monitoring Automation Server
- Tivoli Event Synchronization component
- Authorization Policy Components(tivcmd)
http://www.ibm.com/support/knowledgecenter/SSTFXA_6.3.0/com.ibm.itm.doc_6.3/welcome_63.htm
安装ITM
Windows: C:\IBM\ITM
Linux/Unix: /opt/IBM/ITM
分为本地安装和分布式安装。
-
需要先为TEPS和TDW安装DB(ODBC/JDBC)。
DB2
MSSQL
Oracle
-
在windows/linux/unix安装ITM framework
TEMA
Warehouse Proxy agent
Summarization and Pruning agent
Tivoli performance Analyzer
TEMS
TEPS
TEPD
TEMAS
-
安装agent
安装操作系统的agent:
monitoring agent for your OS。
安装数据库的agent:
TEMA/TEMS/TEPS同时勾选DB的agent。
安装agent builder的agent。
…
TEMS
TEMS: Tivoli Enterprise Monitoing Server
TEMS分为remote和hub,remote最后都汇总到hub。
HTEMS: Hub Tivoli Enterprise Monitoring Server
RTEMS: Remote Tivoli Enterprise Monitoring Server
一个TEMS建议管理700个agent
TEMA
TEMA: Tivoli Enterprise Monitoring Agent
安装agent之后通过GUI工具Tivoli Enterprise Monitoring Service来配置和启动agent。
也可以通过命令行来配置和启动agent。
agent配置需要指定HTEMS服务器。
Agentless
TEMS -> Agentless server -> servers
就是用一个中间服务器通过snmp等协议来监控不需要安装agent的被监控服务器。
一个agentless可以设置10个实例(操作系统),一个实例可以监控100个节点(被监控服务器)。
Agentless OS agents:
- Agentless Monitoring for AIX OS - SNMP
- Agentless Monitoring for HP-UX OS - SNMP
- Agentless Monitoring for Linux OS - SNMP
- Agentless Monitoring for Solaris OS - SNMP,CIM-XML
- Agentless Monitoring for Windows OS - SNMP,WMI
Agent
TEMS -> servers(agent)
一个agent连2个TEMS,一个primary,一个backup。
agent分为:
- Operating System agent
- specialized agent
- Application agent
OS agent:
- Windows
- Unix
- Linux
- IBM i5/OS
specialized agent:
- warehouse proxy agent
- warehouse summarization and pruning agent
- Log file agent
- System p® agents (AIX Premium, CEC Base, HMC Base, VIOS Premium)
- Systems Director base agent
- Tivoli zEnterprise® Agent
- Performance Analyzer
TEPS+DB
TEPS: Tivoli Enterprise Portal Server
使用MTEMS来配置TEPS,添加DB。
TEPD(TEP client)
TEP -> TEPS
TEP: Tivoli Enterprise Portal client
TEP是GUI界面,分为:
- Desktop
- Browser
- JavaWS: java web start
需要安装IBM的java,在C:\Program Files\IBM\Java70。
使用TEP来查看监控结果。
默认用户是sysadmin, 需要为TEPD指定TEPS服务器。
-
Browser版本
http://<TEPS Server>:15200/cnp.html
-
Desktop版本
http://<TEPS Server>:15200/tep.jnlp
安装ITM可以选择安装桌面版,也可以从Java Web Start获取桌面版。
-
Java Web Start版本
结合了desktop和browser的优点,从web下载,在桌面运行。
TEP的结构:
-
Navigator view
Enterprise
Operating Platform(操作系统类型)
Node(一台服务器一个节点)
Agent(一个节点上的agent)
Situation(一个agent上的situation)
Event(一个situation有多个event)
Attribute group(相同的Situation是一个group)
-
Navigator workspace
每个view项目都有一个默认的workspace。
…
History data collection(TDW)
TDW: Tivoli Data Warehouse
存储历史数据。支持DB2,Oracle, MSSQL。
也就是将agent收集的数据存到数据库。
Warehouse Proxy
TDW使用该agent从agents收集和加载数据。
使用MTEMS配置warehouse proxy。
Summarization and Pruning agent
TDW使用该agent控制数据库大小。
使用MTEMS配置summarization and pruning agent。
Jazz for Service Management(Visualization)
Dashboard Application Services Hub(DASH)(visualization services)
IBM Tivoli Common Reporting(reporting services)
Registry Services
Security Services
Administration Services
Tivoli Directory Integrator
IBM HTTP Server
IBM WebSphere® Application Server
Web Server Plug-ins for IBM WebSphere Application Server
…
Management
管理所有组件一般使用GUI叫manage tivoli monitoring services
windows/linux/unix都可以用GUI。
也可以使用CLI(命令行),见后文.
一般使用GUI来启动、停止和配置组件。
CLI
Command Line Interface
tacmd
支持windows/linux/unix。
/opt/IBM/ITM/bin/tacmd
C:\IBM\ITM\BIN\tacmd
查看tacmd手册:
./tacmd help
./tacmd ?
登陆和登出HTEMS:
./tacmd login -s [PROTOCOL://]HOST[:PORT] -u [USERNAME] -p [PASSWORD] -t [TIMEOUT]
./tacmd logout
登陆和登出TEPS:
./tacmd tepsLogin -s [TEPS_HOSTNAME] -u [USERNAME] -p [TEPS_PASSWORD] -t [TIMEOUT] -i [IGNORE]
./tacmd tepsLogout
管理agent:
./tacmd startAgent/stopAgent/restartAgent/viewAgent/updateAgent ...
刷新Netcool/OMNIbus:
./tacmd refreshTECinfo {-t|--type} {eif|maps|attr|all}
itmcmd
用于Linux/Unix系统的命令
/opt/IBM/ITM/bin/itmcmd
查看itmcmd手册:
./itmcmd help
./itmcmd ?
启动或停止TEMS:
./itmcmd server [-options] {start|stop} tems_name
启动或停止agent:
./itmcmd agent [-options] {start|stop} {pc ...|all}
启动MTEMS:
./itmcmd manage &
tivcmd
…
Advanced Administration
Queries(query editor)
DB agent -> normal way to get data source from database servers.
ODBC -> get data source from windows database
JDBC -> get data source from linux/unix database
Advanced link topics
Simple link:
Just used to navigate portal workspaces without using the navigator.
Advanced link:
Can be used to manipulate data that is displayed in the target workspace.
Advanced situation techniques(situation editor)
Agent autonomy
Policy(workflow editor)
Agentless monitoring
TEPS -> Agentless Monitoring Serve -> Servers
Agent Managent Services(AMS)
Agent Builder
IBM Agent Builder agents
windows:
C:\Program Files(x86)\IBM\AgentBuilder
aix/linux:
/opt/ibm/AgentBuilder
Data source:
- JDBC
- HTTP
- SOAP
- Ping
- Socket
- Java API
- WMI
- Perfmon
- CIM
- SNMP
- JMX
- command return code
- output from a script
- A log file
- AIX Binary Log
- windows event log
- A process
- A Windows service
create agent
Every agent have a unique produce code.
Like: k00-k99, k{0-9}{A-Z}.
-
Create the agent in the Agent Builder agent information data source runtime configuration
-
Install and test the agent output and install the agent config and start agent in MTEMS. confirm agent data revise and retest as needed
-
Add application support create in TEP, including queries, workspaces, situations, and take actions. Import application support into agent in Agent Builder. Retest the agent and application support
-
Create an installation solution. Create solution install package from the agent. Create solution install package from the package. Run the image on the target location.
install agent
Three ways to instal the agent.
You must install the TEMS and TEPS support on TEMS(HTEMS) and TEPS server.
-
generate the agent files in an ITM installation on this machine
通过GUI快速安装,Agent Builder和ITM(TEMS和TEPS)安装在同一台机器上。
-
generate a solution install package
创建安装镜像来安装,windows的.exe和linux/unix的.bin。
-
create a compressed file so that the agent can be installed on another system
命令行安装。 生成一个.zip和一个.tgz文件。 包括windows的.bat和linux/unix的.sh安装文件
安装下面三个包(等效方法一):
InstallIra.bat/.sh itm_install_location [[-h Hub_TEMS_hostname] -u HUB_TEMS_username -p Hub_TEMS_password] InstallIra.bat C:\IBM\ITM -h <HTEMS> -u <username> -p <password> # for windows ./InstallIra.sh /opt/IBM/ITM -h <HTEMS> -u <username> -p <password> # for linux
在被监控机器安装agent:
installIraAgent.bat/.sh itm_install_location installIraAgent.bat C:\IBM\ITM # for windows ./installIraAgent.sh /opt/IBM/ITM # for linux
在TEMS(HTEMS)服务器安装对agent的支持:
installIraAgentTEMS.bat/.sh itm_install_location [[-h Hub_TEMS_hostname] -u HUB_TEMS_username -p Hub_TEMS_password] installIraAgentTEMS.bat C:\IBM\ITM # for local HTEMS windows server. ./installIraAgentTEMS.sh /opt/IBM/ITM # for local HTEMS linux server.
在TEPS服务器安装对agent的支持:
installIraAgentTEPS.bat/.sh itm_install_location [[-h TEPS_hostname] -u TEPS_username -p TEPS_password] installIraAgentTEPS.bat C:\IBM\ITM # for local TEPS windows server. ./installIraAgentTEPS.sh /opt/IBM/ITM # for local TEPS linux server.
config agent
需要为agent指定HTEMS服务器,并重启agent,然后重启TEPD。
可以通过Tivoli Enterprise Monitoring Service来配置和启动,也可以通过命令行。
查看所有agent信息:
/opt/IBM/ITM/bin/cinfo -i # check the productcode and platformCode.
config agent:
./itmcmd config -A productcode
start agent:
./tacmd agent start productcode
uninstall agent
-
uninstall from commandline.
windows:
cd ITM_INSTALL/TMAITM6 cd C:\IBM\ITM\TMAITM6_x64 kxx_uninstall.vbs ITM_INSTALL K<product code>_uninstall.vbs C:\IBM\ITM
linux/unix:
/opt/IBM/ITM/bin/uninstall.sh [-f] [-i] [-h install_dir] productcode platformCode
-
Remove from TEP client(clear offline entry)
Monitoring windows resources
-
Windows Management Instrumentation(WMI)
-
Windows Performance Monitor(Perfmon)
-
Windows Event Log
Monitoring process and command return codes
-
Monitoring process
-
Monitoring command return code
Monitoring custom data sources
-
Monitoring script output
-
Monitoring log file
Monitoring remote resources
-
Monitoring SNMP
-
Monitoring CIM
-
Moitoring JMX
Netcool/OMNIbus
IBM Tivoli Netcool/OMNIbus
TEC: Tivoli Enterprise Console, 已经被Netcool/OMNIbus替代。
windows:
C:\Program Files(x86)\IBM\NCOhome
linux/aix:
/opt/IBM/NCOhome
Browser版本需要安装IBM的JRE,在C:\Program Files\IBM\Java70。
EIF
EIF: Event Integration Facility