简体   繁体   English

如何在Sitescope监视器中使用多个数据库?

[英]How can I use multiple databases in a sitescope monitor?

We have 2 databases. 我们有2个数据库。 One is an oracle 11g DB and the other is a DB2 database. 一个是oracle 11g DB,另一个是DB2数据库。 I need to make a query to the oracle database to get a list of accounts and feed that as parameters into another DB2 query. 我需要查询oracle数据库以获取帐户列表,并将其作为参数提供给另一个DB2查询。 If the DB2 Query returns any results then I need to send an alert. 如果DB2查询返回任何结果,那么我需要发送警报。 Is this in any way possible with sitescope (I am fairly new to sitescope so be gentle)? 使用sitescope是否有任何可能(我对Sitescope相当陌生,所以要格外温柔)? It looks like there is only room for 1 connection string in the sitescope monitors. 看起来在Sitescope监视器中只有1个连接字符串的空间。 Can I create 2 monitors (one for DB2 and one for Oracle) and use the results of one query as a parameter into the other monitor? 我可以创建2个监视器(一个用于DB2,一个用于Oracle)并将一个查询的结果用作另一个监视器的参数吗? Looks like there is some monitor to monitor capabilities but still trying to understand what is possible. 似乎有一些监视器可以监视功能,但仍在尝试了解可能的方法。 Thanks! 谢谢!

It is possible to extract the results from the first query using a custom script alert, but it is not possible than to reuse the data in another monitor. 可以使用自定义脚本警报从第一个查询中提取结果,但只能在另一个监视器中重用数据。

SiteScope (SiS) Database Query monitor has no feature to include dynamically changing data in the query used. SiteScope(SiS)数据库查询监视器不具有在使用的查询中包括动态更改的数据的功能。 Generally speaking monitor configurations are static and can only be updated by an external agent (user or integration). 一般来说,监视器配置是静态的,并且只能由外部代理(用户或集成)更新。

Thinking inside the box of one vendor using HP Operations Orchestration (OO) would be an option to achieve your goal. 使用HP Operations Orchestration(OO)在一个供应商的内部进行思考是实现目标的一种选择。 You could either use OO to run the checks and send you alerts in case of a problem or run the checks and dump the result to a file somewhere which than subsequently can be read by SiS using Script monitor or Logfile monitor. 您可以使用OO运行检查并在出现问题时向您发送警报,也可以运行检查并将结果转储到某个文件中,然后SiS可以使用脚本监视器或日志文件监视器读取该文件。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM