[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [hobbit] Hobbit with MYSQL
- To: hobbit (at) hswn.dk
- Subject: Re: [hobbit] Hobbit with MYSQL
- From: henrik (at) hswn.dk (Henrik Stoerner)
- Date: Thu, 4 Oct 2007 07:39:58 +0200
- References: <B229D801DD0B3841B2B247772CBF287D0276032B (at) EXCHANGEVS.ad.WrightExpress.com>
- User-agent: Mutt/1.5.13 (2006-08-11)
On Wed, Oct 03, 2007 at 11:35:09PM -0400, Vashisht, Ashish wrote:
> Has any one been able to get Hobbit data into MYSQL?
None that I know of, but for someone familiar with programming
for MySQL it shouldn't be difficult.
Basically, you would create a tool that reads the Hobbit data
off one of the hobbitd "channels" - those that feed you status
changes (for the history logs) or other kinds of data - and
then store it in the database. The data you get from the channel
looks like
@@stachg#1234|....|hostname|testname|....
status hostname.testname green 4 oct 2007 07:37 OK
This is the test result
@@
so write something in perl or whatever your favourite language is to
pick up those, and store it in the DB. There's a sample perl program
in the Hobbit source of the snapshots, snapshot/hobbitd/hobbitd_rootlogin.pl
Then run this program from hobbitlaunch with
hobbitd_channel --channel=stachg myprogram
Henrik