[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [hobbit] Is there a way to clone host definitions in bb-hosts?
- To: hobbit (at) hswn.dk
- Subject: Re: [hobbit] 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 17:50:11 -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:in-reply-to:mime-version:content-type :content-transfer-encoding:content-disposition:references; bh=I7NG5+Y3/TAHc/jh9UGfosXWECDFa8FLxiImstMU8r0=; b=QfomMEnPiaycyP73V0mYg3nevvcob3dq0le0ehLIMthL/4zA7fFEsov0cNB27zPGsn /oZMy/YskPUyQzA7+8PM5uF41yTxlIj+4SaoYGCGEAK96FF6dTfpwEfALeYlFpM7Lz2Z QMOERTK4b35xpJwHrke7WU77q+Ng/MeLLlWdk=
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:in-reply-to:mime-version :content-type:content-transfer-encoding:content-disposition :references; b=MBpJIPY/GcXU12XfZjjZYq1IEfgVyktzU7rWKoz7/nEfYR7NP/9JMgD01UEYq2Kp9G xVQD2m3L07w7wdHSQPvP+7ve1nCbzf8niM6Mb7qeJcoVCuTz7CfK6GlVTDKJwfyVWbX5 giWBATCrhPpn50NDYZg6B0p97LdNMtxRLoFPU=
- References: <4608520a0806101629k6edd1ee6y61d7e18c0b28f402 (at) mail.gmail.com> <961092e10806101637j5fee9025q92c7e7514eb3b615 (at) mail.gmail.com>
let's just assume that after wrangling *nix machines for over 20 years
I'm familiar with a couple of shells.
What I'm looking for is a more helpful answer; loading several files
up into vi and doing a search and replace on all lines that match a
pattern feels kludgy to me.
2008/6/10 Josh Luthman <josh (at) imaginenetworksllc.com>:
> Get familiar with bash or tcsh =)
>
> On Tue, Jun 10, 2008 at 7:29 PM, John Burk <john.d.burk (at) gmail.com> wrote:
>> 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
>>
>> To unsubscribe from the hobbit list, send an e-mail to
>> hobbit-unsubscribe (at) hswn.dk
>>
>>
>>
>
>
>
> --
> Josh Luthman
> Office: 937-552-2340
> Direct: 937-552-2343
> 1100 Wayne St
> Suite 1337
> Troy, OH 45373
>
> Those who don't understand UNIX are condemned to reinvent it, poorly.
> --- Henry Spencer
>
> To unsubscribe from the hobbit list, send an e-mail to
> hobbit-unsubscribe (at) hswn.dk
>
>
>