Page 2 of 2

Re: HostGroup and Hosts Auto Deleting

Posted: Wed Jul 15, 2015 1:55 pm
by tgriep
Yes, that is the proper way to define a hostgroup config. The members have to be a comma separated list of hostnames.

Code: Select all

define hostgroup {
        hostgroup_name                          linux-servers1
        alias                                   linux-servers1
        members                                 Centos7Core,localhost
        }
After adding the hostgroup file to the static folder, you need to restart nagios.

Code: Select all

service nagios restart

Re: HostGroup and Hosts Auto Deleting

Posted: Thu Jul 16, 2015 10:22 am
by haile711
Thxs everyone for helping out! I was able to successfully implemented this feature. This thread can be locked now.

Re: HostGroup and Hosts Auto Deleting

Posted: Thu Jul 16, 2015 2:04 pm
by tmcdonald
Glad we could help!