find-host/bbhostgrep with page/subpage and includes

Dominique Frise Dominique.Frise at unil.ch
Sat Apr 1 10:02:52 CEST 2006


Hi,

--- bb-hosts ---
title Common Services
#
page comServDNS DNS
group-only conn|dns DNS
130.223.8.20   uldns1     # dhcp dns smtp 
ldap://uldns1/o=universite%20de%20lausanne,c=ch
130.223.4.5    uldns2     # dhcp dns smtp 
ldap://uldns2/o=universite%20de%20lausanne,c=ch
#
page acadServDir Directories
group-only conn|ldap Academic Directories
130.223.8.20   uldns1     # noconn
130.223.4.5    uldns2     # noconn
#
page acadServMail Mail
group-only conn|http|imaps|pop3s|smtp|sslcert|webmailn Academic Mail
130.223.8.20   uldns1     # noconn
130.223.4.5    uldns2     # noconn
#
page acadServOther Other
group-only afp|conn|dhcp|ftp|lic|smb Academic Other
130.223.8.20   uldns1     # noconn
130.223.4.5    uldns2     # noconn
#
title <br>Systems
#
page acadSys Academic
title Academic Systems
include bb-hosts.acadSys
-----------------------

--- bb-host.acadSys ---
group-only bckp|cpu|disk|ifmx|info|memory|msgs|orcl|procs|svm|trends|vx 
Solaris
130.223.8.20   uldns1     # prefer noconn COMMENT:"Prim. DNS/DHCP/People 
LDAP/MailGateway"
130.223.4.5    uldns2     # prefer noconn COMMENT:"Sec. DNS/DHCP/People 
LDAP/MailGateway"
-----------------------


With the simplified configuration above, when I look for "uldns1" with 
find-host I have following result:

Hostname (DisplayName)	Location (Group Name)
uldns1 	                DNS
                         Other
                         Mail
                         Directories
uldns1 	                Other
                         Mail
                         Directories
uldns1 	                Mail
                         Directories
uldns1 	                Directories



Host uldns1 appears for times!
The page/subpage on the info column is correct.


Also bbhostgrep in custom script doesn't show what I would expect:
[bb at iris etc]$ bbhostgrep dhcp


When I put "dispinclude" instead of "include" in bb-hosts, I have:
[bb at iris etc]$ bbhostgrep dhcp
130.223.8.20 uldns1 # dhcp
130.223.4.5 uldns2 # dhcp


Am I missing something?

Thanks for any tips (I am using snapshot of the 31 march)

Dominique



More information about the Xymon mailing list