find-host/bbhostgrep with page/subpage and includes
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
On Sat, Apr 01, 2006 at 10:02:52AM +0200, Dominique Frise wrote:
--- bb-hosts --- 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 include bb-hosts.acadSys
--- bb-host.acadSys --- 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: [snip] Host uldns1 appears for times!
That's a bug. Attached a patch to fix it.
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?
This is really a configuration problem. When using the "prefer" tag, you also tell bbhostgrep to look at only the "preferred" entry in the bb-hosts file. So you really should have put the network tests on the preferred entry in bb-hosts.
bbtest-net takes a somewhat more cautious approach, and performs all of the network tests it sees.
But I agree that it is a trap that is easy to fall into. So perhaps bbhostgrep should ignore the "prefer" ? At least when looking for tests to run, which is what it will commonly be used to do. So I've added an enhancement to bbhostgrep which does that.
Henrik
Hi,
i have problems to see all the file system name for two hp box on disk graph. The name is cutted, and i see only the values cur, max and min. Anyone have the same problem? regards,
Marco
Henrik Stoerner wrote:
That's a bug. Attached a patch to fix it.
I would'nt expect such a quick reaction on saturdays! Thank you for the fix!
This is really a configuration problem. When using the "prefer" tag, you also tell bbhostgrep to look at only the "preferred" entry in the bb-hosts file. So you really should have put the network tests on the preferred entry in bb-hosts.
bbtest-net takes a somewhat more cautious approach, and performs all of the network tests it sees.
But I agree that it is a trap that is easy to fall into. So perhaps bbhostgrep should ignore the "prefer" ? At least when looking for tests to run, which is what it will commonly be used to do. So I've added an enhancement to bbhostgrep which does that.
Thanks again for all these explanations. The prefer tag is now on the network test line and bbhostgrep work as expected.
Dominique
participants (3)
-
Dominique.Frise@unil.ch
-
henrik@hswn.dk
-
marco.avvisano@regione.toscana.it