简体   繁体   English

PostgreSQL数据库查询的Zenoss Graph结果

[英]Zenoss Graph results of postgresql database query

So I just added my servers to Zenoss and installed some postgresql zenpacks. 所以我只是将服务器添加到Zenoss并安装了一些postgresql zenpacks。 Unfortunatly I do not care for most of the postgresql monitoring tools. 不幸的是,我不关心大多数postgresql监视工具。 Instead of what they gave me, I am wondering if it is possible to send a custom query that I wrote, then graph the result using Zenoss? 而不是他们给我的东西,我想知道是否可以发送我编写的自定义查询,然后使用Zenoss绘制结果图形? How do I go about doing this? 我该怎么做呢? Are there any good resources that you know of? 您知道有什么好的资源吗?

Thanks. 谢谢。

You will need to write your own ZenPack (or at least Template). 您将需要编写自己的ZenPack(或至少模板)。 Check Development Guide http://wiki.zenoss.org/ZenPack_Development_Guide or http://zenosslabs.readthedocs.org/en/latest/zenpack_development/ 查看开发指南http://wiki.zenoss.org/ZenPack_Development_Guidehttp://zenosslabs.readthedocs.org/en/latest/zenpack_development/

IMHO you will need zencommand datasource, which will execute your custom SQL query and this query output (number only) will be metric value, which will be processed by Zenoss. 恕我直言,您将需要zencommand数据源,该数据源将执行您的自定义SQL查询,并且此查询输出(仅数字)将是度量值,并将由Zenoss处理。

Or you can expose metric(s) via SNMP and then it'll be only standard SNMP metric in Zenoss. 或者,您可以通过SNMP公开指标,然后它将是Zenoss中唯一的标准SNMP指标。

It's up to you how do you implement it. 如何实现它取决于您。 I recommend you to use community forum http://www.zenoss.org/forum for Zenoss related questions. 我建议您使用社区论坛http://www.zenoss.org/forum来解决与Zenoss有关的问题。

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

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