Page 1 of 1
Wildcard Hostgroups
Posted: Tue Jan 17, 2017 5:02 am
by optionstechnology
Is it possible to create hostgroups using wildcards?
I remember I used to be able to do it in core...
Re: Wildcard Hostgroups
Posted: Tue Jan 17, 2017 10:28 am
by rkennedy
Are you looking to add * Hosts to a host group? You can do so from the Configure -> Core Config Manager -> Host Groups -> Add New -> Manage Hosts -> Add the '*'.
If not, could you please elaborate?
Re: Wildcard Hostgroups
Posted: Tue Jan 17, 2017 11:40 am
by optionstechnology
I want to create hostgroups where newly added hosts automatically get assigned to the correct hostgroup based on their name
So customer server 'xyzapp01' gets added to the 'xyz' hostgroup without me having to do it manually
Re: Wildcard Hostgroups
Posted: Tue Jan 17, 2017 5:52 pm
by avandemore
If you are thinking you can define a host group with members like:
Code: Select all
define hostgroup {
hostgroup_name test
alias test
members test*
}
Not exactly, lease see here on regular expressions:
https://assets.nagios.com/downloads/nag ... ricks.html
https://assets.nagios.com/downloads/nag ... gmain.html