0

is it possible to pass a array to external script? Let me describe a situation and there is maybe a better solution that I am trying. I have several servers in a cluster and just one is in active state hence should be monitored. My initial idea was to create external script which is passed an array of possible nodes in cluster and script will find an active one and get appropriate parameters. The number of nodes in cluster is variable - can happen that there is just one active.

I wanted to avoid a situation having the same template applied to every host and active parameter would just say that this one is worth looking as non active doesn't provide correct info as they are not synchronized.

I tried on macro configuration:

{$NODE} -> ( "host1" "host2" )

But that does't work Any hints appreciated Thx

4

1 回答 1

0

我不知道您尝试对宏执行的操作是否可行,我从未尝试过。但是,对我有用的是:

  • 创建一个“虚拟”主机并添加
    仅从活动主机使用 zabbix_send 报告的活动项目。被动监测
  • 使用分配给集群中活动节点的 IP 地址或
    通过将所有
    连接转发到活动节点的前端 (http) 代理进行监控。

我希望它有帮助

于 2014-02-01T08:56:54.790 回答