Host and service grouping in 2.04b

Andreas Ericsson ae at op5.se
Wed Nov 16 21:26:16 CET 2005


Ben O'Hara wrote:
> Hi,
> 
> I recently upgraded to 2.04b and ive noticed a possible bug.
> 
> I have 2 hosts defined under a hostgroup.
> 
> Hostgroup is "Public Checks"
> 
> And the 2 hosts are
> 
> live-sites
> as-live-sites
> 
> The "live-sites" hosts has 6 services defined under it, and the
> "as-live-sites" has 1 service defined.
> 
> However, when viewing nagios via the web interface "as-live-sites"
> shows 7 services and "live-sites" shows 6.
> 
> It appears that the hostname is being matched so that "as-live-sites"
> has its 1 service but also the 6 services defined under "live-sites"
> aswell.
> 
> Im sure this didnt occour in 1.2, is this a feature or a  bug?
> 

It's a bug. I'm sure some strcmp() somewhere has turned to a strstr().

> I can get around it by renaming "live-sites" to something different
> that wouldnt overlap "as-live-sites"
> 

as-live-Sites (capitalization) should fix it.

-- 
Andreas Ericsson                   andreas.ericsson at op5.se
OP5 AB                             www.op5.se
Tel: +46 8-230225                  Fax: +46 8-230231


-------------------------------------------------------
This SF.Net email is sponsored by the JBoss Inc.  Get Certified Today
Register for a JBoss Training Course.  Free Certification Exam
for All Training Attendees Through End of 2005. For more info visit:
http://ads.osdn.com/?ad_id=7628&alloc_id=16845&op=click




More information about the Developers mailing list