[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [hobbit] Can hobbit server comprehense COMBO keywords like BB server
- To: hobbit (at) hswn.dk
- Subject: Re: [hobbit] Can hobbit server comprehense COMBO keywords like BB server
- From: Henrik Stoerner <henrik (at) hswn.dk>
- Date: Thu, 26 Jun 2008 17:47:33 +0200
- References: <E8B3278ECE94054D82D097CC5BBAEC9B022F1E67 (at) OntExch3.ontario.int.ec.gc.ca>
- User-agent: Mutt/1.5.17+20080114 (2008-01-14)
On Thu, Jun 26, 2008 at 09:42:19AM -0400, Haubrich,Myra [Ontario] wrote:
> Thank you for your reply!
>
> I've tried with
>
> # nc localhost 1984 < test.txt
>
> Where test.txt contents:
> combo
>
> status server1,xx,xx,xx,xx.cpu green Tue Jun 24 19:59:34 UTC 2008 up: 5
> days, 2 users, 119 procs, load=17
>
> LOAD AVG on server1,xx,xx,xx,xx is 17
>
> status server1,xx,xx,xx,xx.disk green Tue Jun 24 19:59:34 UTC 2008 -
> Disk partitions on server1,xx,xx,xx,xx OK
>
> /dev/cciss/c0d1p1 100790004 9644576 86025516 11% /home
> /dev/cciss/c0d0p3 5036316 44476 4736008 1% /tmp
> /dev/cciss/c0d0p1 101086 19502 76365 21% /boot
> /dev/cciss/c0d0p6 40670524 2182592 36421976 6% /
> /dev/cciss/c0d0p2 20161204 988424 18148640 6% /var
You have some new-line problems there. The layout of a combo
message should be
combo<newline>
status ........
<newline>
<newline>
status ......
So your first blank line between the "combo" and the "status" should
not be there. Not sure if this is what causes the problem, though...
It could also be that your "test.txt" file has DOS/Windows style
line termination (carriage-return + newline), this would also
cause problems.
Hobbit might be a bit more finicky about this than BB, but it
was tested with the Big Brother "bb" client. And Hobbit does use
combo messages internally, e.g. for all of the network test
status messages (try running "bbcmd bbtest-net --no-update" and
see the messages that get sent to the Hobbit server).
The data you're sending looks pretty much like a standard Unix client
report. Any particular reason why you're not just using the normal
Hobbit client and the "bb" utility to send the data ?
Regards,
Henrik