Is it possible to create hostgroups using wildcards?
I remember I used to be able to do it in core...
Wildcard Hostgroups
Re: Wildcard Hostgroups
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?
If not, could you please elaborate?
Former Nagios Employee
-
optionstechnology
- Posts: 234
- Joined: Thu Nov 17, 2016 11:26 am
Re: Wildcard Hostgroups
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
So customer server 'xyzapp01' gets added to the 'xyz' hostgroup without me having to do it manually
-
avandemore
- Posts: 1597
- Joined: Tue Sep 27, 2016 4:57 pm
Re: Wildcard Hostgroups
If you are thinking you can define a host group with members like:
Not exactly, lease see here on regular expressions: https://assets.nagios.com/downloads/nag ... ricks.html
https://assets.nagios.com/downloads/nag ... gmain.html
Code: Select all
define hostgroup {
hostgroup_name test
alias test
members test*
}https://assets.nagios.com/downloads/nag ... gmain.html
Previous Nagios employee