Using regex host matches in service definition s

Andreas Ericsson ae at op5.se
Wed Aug 24 21:50:18 CEST 2005


Tedman Eng wrote:
>>-----Original Message-----
>>From: Dominic J. Eidson [mailto:deidson at seton.org]
>>Sent: Wednesday, August 24, 2005 8:11 AM
>>To: nagios-users at lists.sourceforge.net
>>Subject: Re: [Nagios-users] Using regex host matches in service
>>definitions
>>
> 
> 
>>Yes, I'm familiar with the difference between regex and 
>>globbing. As you 
>>can see above, though - the documentation has an incorrect 
>>example, and 
>>that was what I was going by.
>>
>>I tried your ^.*$ - and it works like a charm.
>>
>>It would be worth for someone to fix the docs, though.... ;)
>>
> 
> 
> 
> The docs are not worded wrong (perhaps not completely intuitive, but not
> wrong).  
> Re-read the first statement in that section:
> 
> "Regular Expression Matching 
> ---------------------------
> The examples I give below use "standard" matching of object names."
> 

But what's "standard" matching in a section about regular expressions? 
It seems a bit unclear, and the syntax in the example doesn't work (no 
fnmatch(3) matching is done anywhere in Nagios).

I suppose I could hack up some glob()-like wildcard support, but it 
seems a waste when regex-matching is already in.

> <examples>
> host_name      *
> 
> 
> 
> -------------------------------------------------------
> SF.Net email is Sponsored by the Better Software Conference & EXPO
> September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
> Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA
> Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf
> _______________________________________________
> Nagios-users mailing list
> Nagios-users at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/nagios-users
> ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. 
> ::: Messages without supporting info will risk being sent to /dev/null
> 

-- 
Andreas Ericsson                   andreas.ericsson at op5.se
OP5 AB                             www.op5.se
Lead Developer


-------------------------------------------------------
SF.Net email is Sponsored by the Better Software Conference & EXPO
September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA
Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf
_______________________________________________
Nagios-users mailing list
Nagios-users at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. 
::: Messages without supporting info will risk being sent to /dev/null





More information about the Users mailing list