<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=us-ascii">
<META NAME="Generator" CONTENT="MS Exchange Server version 6.5.7652.24">
<TITLE>RE: Re: [hobbit] Can hobbit server comprehense COMBO keywords like BB server</TITLE>
</HEAD>
<BODY>
<!-- Converted from text/rtf format -->

<P><FONT COLOR="#0000FF" SIZE=2 FACE="Arial">ON the note, the problem using ssh to get data from client side is that, server will not have any rrd data for graphs, right?</FONT></P>

<P><FONT SIZE=1 FACE="Tahoma">_____________________________________________ </FONT>

<BR><B><FONT SIZE=1 FACE="Tahoma">From:  </FONT></B> <FONT SIZE=1 FACE="Tahoma">Haubrich,Myra [Ontario]  </FONT>

<BR><B><FONT SIZE=1 FACE="Tahoma">Sent:  </FONT></B> <FONT SIZE=1 FACE="Tahoma">June 26, 2008 4:49 PM</FONT>

<BR><B><FONT SIZE=1 FACE="Tahoma">To:    </FONT></B> <FONT SIZE=1 FACE="Tahoma">'hobbit@hswn.dk'</FONT>

<BR><B><FONT SIZE=1 FACE="Tahoma">Subject:       </FONT></B> <FONT SIZE=1 FACE="Tahoma">Re: [hobbit] Can hobbit server comprehense COMBO keywords like BB server</FONT>
</P>

<P ALIGN=JUSTIFY><FONT FACE="Arial">=========<U></U></FONT><U><BR>
</U></P>

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

<P ALIGN=JUSTIFY><FONT SIZE=2 FACE="Arial"> ======</FONT></P>

<P ALIGN=JUSTIFY><FONT SIZE=2 FACE="Arial">The client host (a RHEL server) is behind firewalls, and I tried with hobbitfetch and msgcache, the normal hobbit way. I've checked with "lsof -i:1984" to make sure that msgcache is running on the client and hobbitfetch is running on hobbit server. It didn't work, most likely the firewall blocked it. </FONT></P>

<P ALIGN=JUSTIFY><FONT SIZE=2 FACE="Arial">Below is the configurations that I learned from the forum. Any suggestions?</FONT></P>

<P ALIGN=JUSTIFY><FONT SIZE=2 FACE="Courier New">> ===========</FONT></P>

<P ALIGN=JUSTIFY><FONT SIZE=2 FACE="Courier New">></FONT></P>

<P ALIGN=JUSTIFY><FONT SIZE=2 FACE="Courier New">> CLIENT SIDE</FONT></P>

<P ALIGN=JUSTIFY><FONT SIZE=2 FACE="Courier New">></FONT></P>

<P ALIGN=JUSTIFY><FONT SIZE=2 FACE="Courier New">> /etc/sysconfig/hobbit-cleint</FONT></P>

<P ALIGN=JUSTIFY><FONT SIZE=2 FACE="Courier New">> Hobbitserver="xx.xx.xx.xx 127.0.0.1" <-- hobbit server IP</FONT></P>

<P ALIGN=JUSTIFY><FONT SIZE=2 FACE="Courier New">></FONT></P>

<P ALIGN=JUSTIFY><FONT SIZE=2 FACE="Courier New">> hobbitclient.cfg</FONT></P>

<P ALIGN=JUSTIFY><FONT SIZE=2 FACE="Courier New">>   BBDISP="127.0.0.1"  <-- Changed from Hobbit server IP to localhost</FONT></P>

<P ALIGN=JUSTIFY><FONT SIZE=2 FACE="Courier New">></FONT></P>

<P ALIGN=JUSTIFY><FONT SIZE=2 FACE="Courier New">></FONT></P>

<P ALIGN=JUSTIFY><FONT SIZE=2 FACE="Courier New">> clientlaunch.cfg</FONT></P>

<P ALIGN=JUSTIFY><FONT SIZE=2 FACE="Courier New">>   [msgcache]</FONT></P>

<P ALIGN=JUSTIFY><FONT SIZE=2 FACE="Courier New">>         # DISABLED  <-- Comment it</FONT></P>

<P ALIGN=JUSTIFY><FONT SIZE=2 FACE="Courier New">>         ENVFILE $HOBBITCLIENTHOME/etc/hobbitclient.cfg</FONT></P>

<P ALIGN=JUSTIFY><FONT SIZE=2 FACE="Courier New">>         CMD $HOBBITCLIENTHOME/bin/msgcache --no-daemon </FONT></P>

<P ALIGN=JUSTIFY><FONT SIZE=2 FACE="Courier New">> --pidfile=$HOBBITCLIENTHOME/logs/msgcache.pid</FONT></P>

<P ALIGN=JUSTIFY><FONT SIZE=2 FACE="Courier New">>         LOGFILE $HOBBITCLIENTHOME/logs/msgcache.log</FONT></P>

<P ALIGN=JUSTIFY><FONT SIZE=2 FACE="Courier New">></FONT></P>

<P ALIGN=JUSTIFY><FONT SIZE=2 FACE="Courier New">>  [client]</FONT></P>

<P ALIGN=JUSTIFY><FONT SIZE=2 FACE="Courier New">>          ENVFILE $HOBBITCLIENTHOME/etc/hobbitclient.cfg</FONT></P>

<P ALIGN=JUSTIFY><FONT SIZE=2 FACE="Courier New">>          CMD $HOBBITCLIENTHOME/bin/hobbitclient.sh --local  <-- Add </FONT></P>

<P ALIGN=JUSTIFY><FONT SIZE=2 FACE="Courier New">> --local</FONT></P>

<P ALIGN=JUSTIFY><FONT SIZE=2 FACE="Courier New">>          LOGFILE $HOBBITCLIENTHOME/logs/hobbitclient.log</FONT></P>

<P ALIGN=JUSTIFY><FONT SIZE=2 FACE="Courier New">>          INTERVAL 5m</FONT></P>

<P ALIGN=JUSTIFY><FONT SIZE=2 FACE="Courier New">></FONT></P>

<P ALIGN=JUSTIFY><FONT SIZE=2 FACE="Courier New">></FONT></P>

<P ALIGN=JUSTIFY><FONT SIZE=2 FACE="Courier New">> SERVER SIDE</FONT></P>

<P ALIGN=JUSTIFY><FONT SIZE=2 FACE="Courier New">></FONT></P>

<P ALIGN=JUSTIFY><FONT SIZE=2 FACE="Courier New">> hobbitlaunch.cfg</FONT></P>

<P ALIGN=JUSTIFY><FONT SIZE=2 FACE="Courier New">>   [hobbitfetch]</FONT></P>

<P ALIGN=JUSTIFY><FONT SIZE=2 FACE="Courier New">>           # DISABLED  <-- Comment it</FONT></P>

<P ALIGN=JUSTIFY><FONT SIZE=2 FACE="Courier New">>           ENVFILE</FONT></P>

<P ALIGN=JUSTIFY><FONT SIZE=2 FACE="Courier New">> /home/users/hobbit/application/server/etc/hobbitserver.cfg</FONT></P>

<P ALIGN=JUSTIFY><FONT SIZE=2 FACE="Courier New">>           CMD $BBHOME/bin/hobbitfetch --server=XX.XX.XX.XX --no-daemon </FONT></P>

<P ALIGN=JUSTIFY><FONT SIZE=2 FACE="Courier New">> --pidfile=$BBSERVERLOGS/hobbitfetch.pid  <-- replace the IP by your </FONT></P>

<P ALIGN=JUSTIFY><FONT SIZE=2 FACE="Courier New">> Hobbit server one</FONT></P>

<P ALIGN=JUSTIFY><FONT SIZE=2 FACE="Courier New">>                 LOGFILE $BBSERVERLOGS/hobbitfetch.log</FONT></P>

<P ALIGN=JUSTIFY><FONT SIZE=2 FACE="Courier New">></FONT></P>

<P ALIGN=JUSTIFY><FONT SIZE=2 FACE="Courier New">> bb-hosts</FONT></P>

<P ALIGN=JUSTIFY><FONT SIZE=2 FACE="Courier New">> zz.zz.zz.zz  fqdn  # conn hobbitfetch pulldata</FONT></P>

<P ALIGN=JUSTIFY><FONT SIZE=2 FACE="Courier New">></FONT></P>

<P ALIGN=JUSTIFY><FONT SIZE=2 FACE="Courier New">> ==========</FONT></P>
<BR>

<P ALIGN=JUSTIFY><FONT SIZE=2 FACE="Arial">Anyhow, a perl script on client host sends status data as combo message to hobbit server via ssh. The combo message is now working with hobbit server. Thank you so much for your help!!!   </FONT></P>

<P ALIGN=JUSTIFY><FONT SIZE=2 FACE="Arial">MH.</FONT></P>
<BR>
<BR>

</BODY>
</HTML>