actions component
Posted: Tue Nov 15, 2016 3:30 pm
I have been using the actions component to create a link to specific escalation procedures. Within a host group there could be multiple escalation procedures that need to be linked to specific hosts. At the time
you gave me code which has been working perfectly. Basically it was if hostname = this or hostname = that then show link else showlink equals false.
Now what I am trying to do is the following:
I have a hostgroup with 24 hosts.
I have 19 hosts that begin with WKENSYN.
I have 1 host that is dmasynapse.healthone.org
There are 3 other members that are getting a link from another hostgroup.
The statement that I am trying to code is the following:
If the hostname equals dmasynapse.healthone.org or WKENSYN*.* then show link else showlink equals false.
The part I am having problems with is composing a statement with a wildcard in it - WKENSYN*.*
Thanks,
Greg
you gave me code which has been working perfectly. Basically it was if hostname = this or hostname = that then show link else showlink equals false.
Now what I am trying to do is the following:
I have a hostgroup with 24 hosts.
I have 19 hosts that begin with WKENSYN.
I have 1 host that is dmasynapse.healthone.org
There are 3 other members that are getting a link from another hostgroup.
The statement that I am trying to code is the following:
If the hostname equals dmasynapse.healthone.org or WKENSYN*.* then show link else showlink equals false.
The part I am having problems with is composing a statement with a wildcard in it - WKENSYN*.*
Thanks,
Greg