We are implementing a distributed monitoring platform, where we monitor ours hosts from two different locations via two different proxies. Because these are connected via VPN currently we aren't getting reliable data on devices as most of the time it is the VPN that has gone down instead of the device.
So we want to move to a solution where a device is monitored by two proxies and will only alert if both proxies detect the device as down.
It seems like we will have to define each node twice, one for each proxy, and then set the trigger if both proxies detect the device is down.
We have got that setup and working, the problem we are facing is defining a template that automatically add all the correct triggers. Currently we have a template that detects if ping fails:
{TestTemplate:icmpping.max(#3)}<1
So when it is applied to a host it looks like:
{Proxy1 - HostName:icmpping.max(#3)}<1
But then we have to manually add in the second trigger so it looks like this:
{Proxy1 - HostName:icmpping.max(#3)}<1 and {Proxy2 - HostName:icmpping.max(#3)}<1
We're trying to make a template so that it automatically checks the trigger against both proxies, but can't work out how to do it. Adding in manually for 1200 devices will be too time consuming.
Any help is much appreciated.
So we want to move to a solution where a device is monitored by two proxies and will only alert if both proxies detect the device as down.
It seems like we will have to define each node twice, one for each proxy, and then set the trigger if both proxies detect the device is down.
We have got that setup and working, the problem we are facing is defining a template that automatically add all the correct triggers. Currently we have a template that detects if ping fails:
{TestTemplate:icmpping.max(#3)}<1
So when it is applied to a host it looks like:
{Proxy1 - HostName:icmpping.max(#3)}<1
But then we have to manually add in the second trigger so it looks like this:
{Proxy1 - HostName:icmpping.max(#3)}<1 and {Proxy2 - HostName:icmpping.max(#3)}<1
We're trying to make a template so that it automatically checks the trigger against both proxies, but can't work out how to do it. Adding in manually for 1200 devices will be too time consuming.
Any help is much appreciated.
Comment