Doubt about members in define hostgroups

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
Locked
praxtoneitor
Posts: 1
Joined: Tue Feb 14, 2017 6:56 am

Doubt about members in define hostgroups

Post by praxtoneitor »

Hello, I have a somewhat old version of nagios core, in it, I define the members of a group as follows

define hostgroup {
hostgroup_name Group1
alias Group1
members example_ *
}

I have several hosts with the names example1, example2, example3, etc ... but when compiling nagios, it throws the following error, but in the previous version it worked.
Error: Could not find any host matching 'example_ *'

Could you help me??, thanks
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Doubt about members in define hostgroups

Post by scottwilkerson »

wouldn't it need to be like this if they are named example1, example2, example3

Code: Select all

define hostgroup {
hostgroup_name Group1
alias Group1
members example*
}
Former Nagios employee
Creator:
ahumandesign.com
enneagrams.com
Locked