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
actions component
-
dwhitfield
- Former Nagios Staff
- Posts: 4583
- Joined: Wed Sep 21, 2016 10:29 am
- Location: NoLo, Minneapolis, MN
- Contact:
Re: actions component
Do you have use_regexp_matching=1 in config file? UPDATE per profile: Yes
When you say we gave you code, could you point us to a ticket or a thread? Alternatively, could you post the code? The tech that gave you the code may be busy or no longer here, so we'll need to take a look at it.
Lastly, could you post the statement you are trying to create. Thanks!
When you say we gave you code, could you point us to a ticket or a thread? Alternatively, could you post the code? The tech that gave you the code may be busy or no longer here, so we'll need to take a look at it.
Lastly, could you post the statement you are trying to create. Thanks!
Re: actions component
Here is the link to the original post.
https://support.nagios.com/forum/viewto ... 12#p188786
The statement that I am trying to create is the following:
If the hostname equals dmasynapse.healthone.org or WKENSYN*.* then show link = True else showlink = false.
Where WKENSYN*.* is wildcarded to apply to all servers that begin with that.
Thanks,
Greg
https://support.nagios.com/forum/viewto ... 12#p188786
The statement that I am trying to create is the following:
If the hostname equals dmasynapse.healthone.org or WKENSYN*.* then show link = True else showlink = false.
Where WKENSYN*.* is wildcarded to apply to all servers that begin with that.
Thanks,
Greg
-
dwhitfield
- Former Nagios Staff
- Posts: 4583
- Joined: Wed Sep 21, 2016 10:29 am
- Location: NoLo, Minneapolis, MN
- Contact:
Re: actions component
Could you PM me your profile? You can download it by going to Admin > System Config > System Profile and click the Download Profile button in the top right corner.
Please update this post after you've sent the profile.
UPDATE: Profile received and shared with techs.
Please update this post after you've sent the profile.
UPDATE: Profile received and shared with techs.