Wildcard Hostgroups

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
optionstechnology
Posts: 234
Joined: Thu Nov 17, 2016 11:26 am

Wildcard Hostgroups

Post by optionstechnology »

Is it possible to create hostgroups using wildcards?

I remember I used to be able to do it in core...
rkennedy
Posts: 6579
Joined: Mon Oct 05, 2015 11:45 am

Re: Wildcard Hostgroups

Post 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?
Former Nagios Employee
optionstechnology
Posts: 234
Joined: Thu Nov 17, 2016 11:26 am

Re: Wildcard Hostgroups

Post 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
avandemore
Posts: 1597
Joined: Tue Sep 27, 2016 4:57 pm

Re: Wildcard Hostgroups

Post 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
Previous Nagios employee
Locked