Xymon Mailing List Archive search

ver 4.3 and socket server

11 messages in this thread

list John P. Fisher · Fri, 20 Jun 2008 11:24:29 -0700 ·
Hi folks, I want to make a simple demo that shows a proof-of-concept,
and I need some advice and news of possible hobbit 4.3 ver socket
connections.

I have an embedded linux device and a linux server. I have installed
both hobbit server and client ver 4.2 successfully.

Now what I want to show is a socket server running on the client ( the
embedded device) pushing data to the hobbit server, and thence to my
browser on a third machine. I have built a crude socket server for the
hobbit client  that will do for the demo. So I need to listen on a
socket at the server, and write the data to the web page.

1) Is there any fundamental issue that I need to know about, or can I
just slog through the man pages and code and get what I want?
2) Any suggestions that would help me out?
3) I don't see CVS instructions for getting the tip of the tree- is
there a beta 4.3 that might help me?

thanks very much
John
list Buchan Milne · Mon, 23 Jun 2008 08:37:26 +0200 ·
quoted from John P. Fisher
On Friday 20 June 2008 20:24:29 John P. Fisher wrote:
Hi folks, I want to make a simple demo that shows a proof-of-concept,
and I need some advice and news of possible hobbit 4.3 ver socket
connections.

I have an embedded linux device and a linux server. I have installed
both hobbit server and client ver 4.2 successfully.

Now what I want to show is a socket server running on the client ( the
embedded device) pushing data to the hobbit server, and thence to my
browser on a third machine. I have built a crude socket server for the
hobbit client  that will do for the demo. So I need to listen on a
socket at the server, and write the data to the web page.
Maybe you want to tell us more about what you are trying to achieve.

Are you trying to monitor the embedded device? Or, are you trying to use it to 
monitor specific hosts and report to the hobbit server?

There may be other solutions to your problem, but I can't understand from the 
description of your proposed solution what your original problem was.

Regards,
Buchan
list John P. Fisher · Mon, 23 Jun 2008 11:07:07 -0700 ·
******Sorry for being unclear. Yes, Buchan the eventual product would
monitor data on the embedded device, and use Hobbit or some equivalent,
as a platform for display. It looks to me like Hobbit is powerful/easily
customizable for the display part, but the connection-to-data-source
part uses polling, which may be fine for some data, but other data in
our world should be pushed down to the humans. For this task I don't
care what the data is, I am just making a proof-of-concept.

No I don't need the embedded device to act as a server. I am content
with a separate Hobbit server.

So on the Hobbit server I need to get incoming data from a socket and
put it into the Hobbit display, then send it down to the browser. I
think I can use a Flash-based model to push data to the browser. This
means including a small flash app in the web page that Hobbit assembles,
like several chat servers do. So I want to piggyback on the standard
Hobbit server by adding to the Hobbit web page with a flash applet that
can push data down to the browser.

This means I am asking about adding html/flash and data to the Hobbit
server web page. What I am asking for is, advice, suggestions, 'I did it
already this way' and so forth.
I am also asking if there is a socket system in version 4.3 of Hobbit
that would be useful.

Hoping this makes more sense than the first time...
John
quoted from John P. Fisher

On Friday 20 June 2008 20:24:29 John P. Fisher wrote:
Hi folks, I want to make a simple demo that shows a proof-of-concept,
and I need some advice and news of possible hobbit 4.3 ver socket
connections.

I have an embedded linux device and a linux server. I have installed
both hobbit server and client ver 4.2 successfully.

Now what I want to show is a socket server running on the client ( the
embedded device) pushing data to the hobbit server, and thence to my
browser on a third machine. I have built a crude socket server for the
hobbit client  that will do for the demo. So I need to listen on a
socket at the server, and write the data to the web page.
Maybe you want to tell us more about what you are trying to achieve.

Are you trying to monitor the embedded device? Or, are you trying to use it to 
monitor specific hosts and report to the hobbit server?

There may be other solutions to your problem, but I can't understand from the 
description of your proposed solution what your original problem was.

Regards,
Buchan
list John P. Fisher · Mon, 23 Jun 2008 11:10:32 -0700 ·
I can't see how to get a CVS connection to get the latest code for Hobbit.
Maybe the instruction is in plain sight, but I can't see it.
Where's the repository and whats the login?

thanks
John
list Josh Luthman · Mon, 23 Jun 2008 17:45:41 -0400 ·
It's a sourceforge project.  They always make it easy =)

http://sourceforge.net/cvs/?group_id=128058

Josh Luthman
Office: XXX-XXX-XXXX
Direct: XXX-XXX-XXXX
XXXX Wayne St
Suite XXXX
Troy, OH XXXXX

Those who don't understand UNIX are condemned to reinvent it, poorly.
--- Henry Spencer

On Mon, Jun 23, 2008 at 2:10 PM, John P. Fisher <user-4aee993d7605@xymon.invalid>
quoted from John P. Fisher
wrote:
I can't see how to get a CVS connection to get the latest code for Hobbit.
Maybe the instruction is in plain sight, but I can't see it.
Where's the repository and whats the login?

thanks
John

list Buchan Milne · Tue, 24 Jun 2008 08:53:43 +0200 ·
On Monday 23 June 2008 23:45:41 Josh Luthman wrote:
It's a sourceforge project.  They always make it easy =)

http://sourceforge.net/cvs/?group_id=128058
Except that Henrik doesn't use CVS, and the only content that *is* in CVS on 
sourceforge.net seems to be some unmaintained Hobbit client ...
list Paul Krash · Tue, 24 Jun 2008 06:51:27 -0500 ·
What protocol is the device using to send its data to hobbit?

I have (crude) code that pulls data from a hobbit fed mysql dbase then client flash makes graph. Not embedded into hobbit server pages but seperate web server.
Paul Krash, system administrator, Exegy, Inc.; XXX-XXX-XXXX x 666
 
This e-mail and any documents accompanying it may contain legally privileged and/or confidential information belonging to Exegy, Inc. Such information may be protected from disclosure by law. The information is intended for use by only the addressee. If you are not the intended recipient, you are hereby notified that any disclosure or use of the information is strictly prohibited. If you have received this e-mail in error, please immediately contact the sender by e-mail or phone regarding instructions for return or destruction and do not use or disclose the content to others.
list John P. Fisher · Tue, 24 Jun 2008 10:07:30 -0700 ·
At the moment I have a crude c-based socket server that can pump <some
data> to a socket on another host. So far I just used the socket utility
to connect, but I can make a socket-receiver for the hobbit server, in
fact I should go ahead and build one.

So you use a separate URL entirely, and don't display the default hobbit
data, or do you grab that too and display on your own custom site? That
might be easier than learning about hobbit's display?

PLEASE cc user-d0dae575063d@xymon.invalid (at) znyx (dot) com - something's not
right with my getting mail from this list...

John

Paul said:
quoted from Paul Krash
What protocol is the device using to send its data to hobbit?

I have (crude) code that pulls data from a hobbit fed mysql dbase then client flash makes graph. Not embedded into hobbit server pages but seperate web server.
Paul Krash, system administrator, Exegy, Inc.; XXX-XXX-XXXX x 666
list John P. Fisher · Tue, 24 Jun 2008 10:34:54 -0700 ·
oh no wonder I couldn't get a tree.
thanks to both of you.
quoted from Buchan Milne

Buchan Milne wrote:

On Monday 23 June 2008 23:45:41 Josh Luthman wrote:
It's a sourceforge project.  They always make it easy =)

http://sourceforge.net/cvs/?group_id=128058
Except that Henrik doesn't use CVS, and the only content that *is* in CVS on 
sourceforge.net seems to be some unmaintained Hobbit client ...
list Henrik Størner · Tue, 24 Jun 2008 23:29:31 +0200 ·
quoted from John P. Fisher
On Fri, Jun 20, 2008 at 11:24:29AM -0700, John P. Fisher wrote:
Hi folks, I want to make a simple demo that shows a proof-of-concept,
and I need some advice and news of possible hobbit 4.3 ver socket
connections.
For a simple proof-of-concept / demonstration system, why don't you just
grab a copy of the "netcat" utility and use that ? This will let you set
up a simple TCP server or client.

http://netcat.sourceforge.net/

For a programming introduction to socket programming, check out
http://beej.us/guide/bgnet/output/html/singlepage/bgnet.html
(just skimmed it after doing a Google search for "unix socket
 programming", but it seems sensible).


Regards,
Henrik
list John Fisher · Fri, 27 Jun 2008 10:50:48 -0700 ·
sorry this got lost in a spam-storm

Thanks for the suggestion.

John
quoted from Henrik Størner

Henrik Stoerner wrote:
On Fri, Jun 20, 2008 at 11:24:29AM -0700, John P. Fisher wrote:
  
Hi folks, I want to make a simple demo that shows a proof-of-concept,
and I need some advice and news of possible hobbit 4.3 ver socket
connections.
    
For a simple proof-of-concept / demonstration system, why don't you just
grab a copy of the "netcat" utility and use that ? This will let you set
up a simple TCP server or client.

http://netcat.sourceforge.net/

For a programming introduction to socket programming, check out
http://beej.us/guide/bgnet/output/html/singlepage/bgnet.html
(just skimmed it after doing a Google search for "unix socket
 programming", but it seems sensible).


Regards,
Henrik