host group regex revisited

This forum is intended for the discussion of Nagios Core development. Feature requests, patches, bug fixes, and all types of development-related discussions are welcome!

NOTE: The nagios-devel mailing list has been deprecated in favor of this forum in order to expedite support and provide additional features not available on the old mailing list.

host group regex revisited

Postby esantora » Sat Nov 17, 2018 9:09 am


I've read through previous regex posts on here, but still haven't found a solution to my issue.

I have the following set in my nagios.cfg:


I'm using the following regex for hostgroup members:


In Nagios, this matches:


but not:

I tested the regex on and it matches both formats. Am I missing something in Nagios?

Any help would be greatly appreciated!

Posts: 2
Joined: Sat Nov 17, 2018 8:18 am

Re: host group regex revisited

Postby cdienger » Mon Nov 19, 2018 2:54 pm

the $ is a special character in Nagios configs and it looks like that is where the problem occurs. Try dropping it:

As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
User avatar
Support Tech
Posts: 3143
Joined: Tue Feb 07, 2017 11:26 am

Return to Nagios Core Development

Who is online

Users browsing this forum: No registered users and 1 guest