[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: "Josh Luthman" <josh (at) imaginenetworksllc.com>
- Date: Tue, 10 Jun 2008 19:37:46 -0400
- References: <4608520a0806101629k6edd1ee6y61d7e18c0b28f402 (at) mail.gmail.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