On Wed, 26 Jul 2006, Henrik Stoerner wrote:
Secondly, is there a way to generate a similar log with a summary of the event attached at the end?
Try running (as the hobbit user): bbcmd hobbitd_channel --channel=stachg cat What you'll get is a message whenever there is a test changes status. The message begins with a line like
@@stachg#67898|1153893946.152988|10.29.75.39||myhost|disk|1153895746|red|yellow|1153892146|0||0|0
[snip]
After this line comes the full text of the status message, and the message ends with a line containing only "@@"
Brilliant - thanks!
Gobbling up these messages is fairly simple - there's a hobbitd_sample utility included with Hobbit that does it in C, but I'm sure anyone with a bit of experience could implement it in Perl.
Or python.. In time I think I'll probably try to implement a "hobbit" plugin for Supybot, one that can do more than just tailing a log :) -- Kolbjørn Barmen UNINETT Driftsenter