Hello all
I am having a problem with achieving the following.
I have set up 2 proxies to monitor hosts. I am trying to create some global template that will allow me to add it to a host on both proxies so it will fill data in for me automatically.
I am using custom macros on the host like:
Host on Proxy1:
{$HOST.NAME} where it is visible name indicating proxy used as well (example: myhost-p1)
{$HOSTMAIN} original name only (example: myhost)
Host on Proxy2:
{$HOST.NAME} where it is visible name indicating proxy used as well (example: myhost-p2)
{$HOSTMAIN} original name only (example: myhost)
I have been adding triggers manually but since I want to deploy more hosts and save time is there any possibility to create and link template to use hosts from both proxies and report on state of the host {$HOSTMAIN}?
I know it is possible when using only one proxy, but with two I can't seem to manipulate macros, keys or triggers to incorporate this in a template and to be filled automatically.
My idea is to use the same host name and two macros from different proxies. Then based on proxies and the name of the host feed data into the template. I have tried several solutions but with not much luck.
Are you able to advise if this is possible at all or indicate if any or new approach is needed?
Or shall I stick to manual additions?
It would be nice if we could set more than one proxy on the host. That could make life easier creating the templates.
Here is the rough idea of what I am trying to achieve:
(({myhost-p1:sysUpTime.nodata(300s)}=1 or {myhost-p1:sysDescr.nodata(300s)}=1) and {myhost-p1:icmpping.max(120s)}<>0) and ({myhost-p2:sysUpTime.nodata(300s)}=1 or {myhost-p2:sysDescr.nodata(300s)}=1) and {myhost-p2:icmpping.max(120s)}<>0))
I am trying to probe cluster members from two different locations.
Thanks for any help in advance.
I am having a problem with achieving the following.
I have set up 2 proxies to monitor hosts. I am trying to create some global template that will allow me to add it to a host on both proxies so it will fill data in for me automatically.
I am using custom macros on the host like:
Host on Proxy1:
{$HOST.NAME} where it is visible name indicating proxy used as well (example: myhost-p1)
{$HOSTMAIN} original name only (example: myhost)
Host on Proxy2:
{$HOST.NAME} where it is visible name indicating proxy used as well (example: myhost-p2)
{$HOSTMAIN} original name only (example: myhost)
I have been adding triggers manually but since I want to deploy more hosts and save time is there any possibility to create and link template to use hosts from both proxies and report on state of the host {$HOSTMAIN}?
I know it is possible when using only one proxy, but with two I can't seem to manipulate macros, keys or triggers to incorporate this in a template and to be filled automatically.
My idea is to use the same host name and two macros from different proxies. Then based on proxies and the name of the host feed data into the template. I have tried several solutions but with not much luck.
Are you able to advise if this is possible at all or indicate if any or new approach is needed?
Or shall I stick to manual additions?
It would be nice if we could set more than one proxy on the host. That could make life easier creating the templates.
Here is the rough idea of what I am trying to achieve:
(({myhost-p1:sysUpTime.nodata(300s)}=1 or {myhost-p1:sysDescr.nodata(300s)}=1) and {myhost-p1:icmpping.max(120s)}<>0) and ({myhost-p2:sysUpTime.nodata(300s)}=1 or {myhost-p2:sysDescr.nodata(300s)}=1) and {myhost-p2:icmpping.max(120s)}<>0))
I am trying to probe cluster members from two different locations.
Thanks for any help in advance.