4 iTop系统集成
集成iTop
CMDB很少是独立的应用程序。为了将iTop与您的其它基础架构集成,可以使用三种强大的机制:
导入/导出页面
脚本化的“ 导入”页面可作为一个Web服务或通过命令,以从CSV文件导入或更新iTop对象。
数据同步
数据同步可将各种来源的数据联合到iTop中:
所有这些服务实际上都可以在iTop中的任何对象上运行:Devices, Contacts, Tickets, User Accounts…
JSON 服务
REST/JSON services 是通用服务。这些API是底层操作(搜索对象,创建/更新/删除对象),它们将成为允许进行任何类型的集成的基础。此外,自定义模块可以提供更高级别的操作,这些操作将通过同一入口点进行传递。
收集iTop的数据
收集器是一个独立的应用程序,可从外部源中提取数据,然后通过DataSynchro将其推送到iTop。
存在一些用于某些常用应用程序的收集器,但是在大多数情况下,您将必须编写自己的收集器,或者至少扭曲现有的收集器以处理对您重要的数据。
可以以此为基础来完成:数据收集器基础
集成范例
原贴链接:https://www.itophub.io/wiki/page?id=2_7_0%3Aadvancedtopics%3Astart
Integrating iTop
A CMDB is rarely a stand-alone application. In order to integrate iTop with the rest of your infrastructure, three powerful mechanisms are available:
Import / Export pages
An Export page than can be used either as a web service or from the command line. The page allows to export in XML, CSV, Excel (.xlsx) or HTML format any set of iTop objects that can be described by an OQL query.
A scripted Import page available as a web service or from the command line to import or update iTop objects from a CSV file
Data Synchronization
Data Synchronization enables the federation of data from various sources into iTop:
Data Synchronization Overview
Example: How to synchronize Persons
Data Synchronization Reference
All these services work on virtually any object in iTop: Devices, Contacts, Tickets, User Accounts…
JSON services
REST/JSON services are generic services. The APIs are low-level operations (search objects, create/update/delete objects) that will be the building bricks allowing any kind of integration. Furthermore, a custom module can provide higher level operations that will be delivered through this same entry point.
Collecting data for iTop
A collector is a standalone application which pull data from an external Source, then push them to iTop through DataSynchro.
Some collectors exists for some commonly used applications, but in most cases you will have to write your own, or at least twist the existing collector to process the data that matters to you.
It can be done using this as a basis: Data Collector Base
Example of integrations
Integrating iTop with LDAP
Integrating iTop with OCSng Inventory
Integrating iTop with Vsphere
Integrating iTop with Nagios