[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Is there a way to clone host definitions in bb-hosts?
- To: "Hobbit mailing list" <hobbit (at) hswn.dk>
- Subject: Is there a way to clone host definitions in bb-hosts?
- From: "John Burk" <john.d.burk (at) gmail.com>
- Date: Tue, 10 Jun 2008 16:29:21 -0700
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to :subject:mime-version:content-type:content-transfer-encoding :content-disposition; bh=6T4ltpMKXbBpCb7v5gA72utgmuTAvEgZitAaGFTSEXk=; b=Zlh3X+cpP+q8Ne7IF88tfK3vz0+E4nSussq/ZvoVhcprazWJFGw9hj0ufCSh46NCRX IO/zYwdn2WS0VYdRdmjdktj06ZGOVX8kx8mo8sEOob+EOzUJMXeCq581xPAR1uc50mTW 7KOgwlnVdOhi+gtXTxuJ1Bj/ZROBZzWTBpyCc=
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:mime-version:content-type :content-transfer-encoding:content-disposition; b=fZGJBkAh7eIjitscQFKAMvAC+GmAlnuDj77F4FNBWGc6U0C4YJnTtIqfWl9+cLTa4k 6llTwH8BODoubcIsvh34goD+W7AeLn1eWxWxlST+ePQr6/X/XXlO6zSnc6GvOW5em7lJ 6gb8XpncSgN3t+luZFjB7e35SeB0PbxB7LPjw=
I'm using hobbit for monitoring a compute cluster of nearly 1000
identical hosts. I'm using includes in my bb-hosts to keep the file
length down, but my included files are comprised of hundreds of hosts
all identical except for the ipaddresses and hostnames.
Surely there must be a way to template this, I just can't find it in
the bb-hosts manpage...
<< bb-hosts >>
==============================
172.16.133.45 spork # bbd http://spork/
group Qube Supervisor
172.16.136.68 greenjeans # conn mysql RAID
NOCOLUMNS:files,ports
TRENDS:*,vmstat:vmstat|vmstat5,mysql:mysql|mysqlthreadsconnected|mysqlthreadrunqueue|mysqlopenfiles|mysqlopentables|mysqlopenedtables|mysqlrestrictiontablerowcount
page farm Farm Hosts
include clients.d/opteron
include clients.d/rfl
include clients.d/hp_blade
==============================
Right now I'm doing this:
<< clients.d/hpblade >>
==============================
subpage chassis01 bladeChassis 01
172.16.131.20 rn0101 # NOPROPRED:+cpu NOPROPYELLOW:+memory
NOCOLUMNS:files,ports
172.16.131.21 rn0102 # NOPROPRED:+cpu NOPROPYELLOW:+memory
NOCOLUMNS:files,ports
172.16.131.22 rn0103 # NOPROPRED:+cpu NOPROPYELLOW:+memory
NOCOLUMNS:files,ports
172.16.131.23 rn0104 # NOPROPRED:+cpu NOPROPYELLOW:+memory
NOCOLUMNS:files,ports
172.16.131.24 rn0105 # NOPROPRED:+cpu NOPROPYELLOW:+memory
NOCOLUMNS:files,ports
172.16.131.25 rn0106 # NOPROPRED:+cpu NOPROPYELLOW:+memory
NOCOLUMNS:files,ports
172.16.131.26 rn0107 # NOPROPRED:+cpu NOPROPYELLOW:+memory
NOCOLUMNS:files,ports
172.16.131.27 rn0108 # NOPROPRED:+cpu NOPROPYELLOW:+memory
NOCOLUMNS:files,ports
172.16.131.28 rn0109 # NOPROPRED:+cpu NOPROPYELLOW:+memory
NOCOLUMNS:files,ports
172.16.131.29 rn0110 # NOPROPRED:+cpu NOPROPYELLOW:+memory
NOCOLUMNS:files,ports
172.16.131.30 rn0111 # NOPROPRED:+cpu NOPROPYELLOW:+memory
NOCOLUMNS:files,ports
172.16.131.31 rn0112 # NOPROPRED:+cpu NOPROPYELLOW:+memory
NOCOLUMNS:files,ports
172.16.131.32 rn0113 # NOPROPRED:+cpu NOPROPYELLOW:+memory
NOCOLUMNS:files,ports
172.16.131.33 rn0114 # NOPROPRED:+cpu NOPROPYELLOW:+memory
NOCOLUMNS:files,ports
172.16.131.34 rn0115 # NOPROPRED:+cpu NOPROPYELLOW:+memory
NOCOLUMNS:files,ports
172.16.131.35 rn0116 # NOPROPRED:+cpu NOPROPYELLOW:+memory
NOCOLUMNS:files,ports
subpage chassis02 bladeChassis 02
172.16.131.60 rn0201 # NOPROPRED:+cpu NOPROPYELLOW:+memory
NOCOLUMNS:files,ports
172.16.131.61 rn0202 # NOPROPRED:+cpu NOPROPYELLOW:+memory
NOCOLUMNS:files,ports
172.16.131.62 rn0203 # NOPROPRED:+cpu NOPROPYELLOW:+memory
NOCOLUMNS:files,ports
172.16.131.63 rn0204 # NOPROPRED:+cpu NOPROPYELLOW:+memory
NOCOLUMNS:files,ports
and so on in mind-numbing repetition...
==============================
I'd like to be able to define the tags in a template, and simply use
that template. Does this mechanism exist in bb-host? That way
if/when I need to change the tags for all my hosts, I only need to do
it in one place, and not on every line in 3 different files.
John Burk