Xymon Mailing List Archive search

xymongrep for windows

7 messages in this thread

list Andy Smith · Thu, 27 Mar 2014 07:39:54 +0000 ·
Hi,

Has anyone already attempted to compile xymongrep as a standalone windows program under MinGW or some such?  I am looking to add externals under BBWin and have these externals configured from etc\hosts.cfg to make them as much like native Unix extensions as I can.

Thanks
-- 
Andy
list Henrik Størner · Thu, 27 Mar 2014 08:56:44 +0100 ·
quoted from Andy Smith
Den 2014-03-27 8:39, Andy Smith skrev:
Hi,

Has anyone already attempted to compile xymongrep as a standalone
windows program under MinGW or some such?  I am looking to add
externals under BBWin and have these externals configured from
etc\hosts.cfg to make them as much like native Unix extensions as I
can.
I'd guess that you could easily compile it with Cygwin. I have built 
the "xymon" tool in such an environment.


Regards,
Henrik
list Andy Smith · Thu, 27 Mar 2014 08:01:59 +0000 ·
quoted from Henrik Størner
Henrik Størner wrote:
Den 2014-03-27 8:39, Andy Smith skrev:
Hi,

Has anyone already attempted to compile xymongrep as a standalone
windows program under MinGW or some such?  I am looking to add
externals under BBWin and have these externals configured from
etc\hosts.cfg to make them as much like native Unix extensions as I
can.
I'd guess that you could easily compile it with Cygwin. I have built the "xymon" tool in such an environment.
That is good to know as my longstop, but I was after something less intrusive, I presume a Cygwin installation will require a bunch of libraries to be installed and all i need is a standalone xymongrep.exe
-- 
Andy
list Henrik Størner · Thu, 27 Mar 2014 09:05:16 +0100 ·
quoted from Andy Smith
Den 2014-03-27 9:01, Andy Smith skrev:
Henrik Størner wrote:
Den 2014-03-27 8:39, Andy Smith skrev:
Hi,

Has anyone already attempted to compile xymongrep as a standalone
windows program under MinGW or some such?  I am looking to add
externals under BBWin and have these externals configured from
etc\hosts.cfg to make them as much like native Unix extensions as I
can.
I'd guess that you could easily compile it with Cygwin. I have built 
the "xymon" tool in such an environment.
That is good to know as my longstop, but I was after something less
intrusive, I presume a Cygwin installation will require a bunch of
libraries to be installed and all i need is a standalone 
xymongrep.exe
It requires 2 DLL's. I don't know if MinGW supports the Unix socket 
API, but if it does then compiling it with MinGW should work fine.


Regards,
Henrik
list Hermann-Josef Beckers · Thu, 27 Mar 2014 09:24:58 +0100 ·
"Xymon" <xymon-bounces at xymon.com> schrieb am 27.03.2014 09:05:16:

...
Re: [Xymon] xymongrep for windows

Gesendet von:

"Xymon" <xymon-bounces at xymon.com>
quoted from Andy Smith

Den 2014-03-27 9:01, Andy Smith skrev:
Henrik Størner wrote:
Den 2014-03-27 8:39, Andy Smith skrev:
Hi,

Has anyone already attempted to compile xymongrep as a standalone
windows program under MinGW or some such?  I am looking to add
externals under BBWin and have these externals configured from
etc\hosts.cfg to make them as much like native Unix extensions as I
can.
May I suggest unxutils(.sourceforge.net) ? A combination of grep and awk 
does 
everything xymongrep does.

HTH
Hermann-Josef Beckers
list Henrik Størner · Thu, 27 Mar 2014 09:57:25 +0100 ·
quoted from Hermann-Josef Beckers
 

Den 2014-03-27 9:24, Hermann-Josef Beckers skrev: 
Has
anyone already attempted to compile xymongrep as a standalone
windows program under MinGW or some such? I am looking to add
externals under BBWin and have these externals configured from
etchosts.cfg to make them as much like native Unix extensions as I
can.
May I suggest unxutils(.sourceforge.net) ? A combination
of grep and awk does 
everything xymongrep does.
Not quite. Standard
grep / awk operates on local text files only, xymongrep retrieves the
hosts.cfg configuration directly from the Xymon server without using any
local files. 

Regards,
Henrik
list Andy Smith · Sat, 29 Mar 2014 12:32:21 +0000 ·
quoted from Henrik Størner

Henrik Størner wrote:
Den 2014-03-27 9:01, Andy Smith skrev:
Henrik Størner wrote:
Den 2014-03-27 8:39, Andy Smith skrev:
Hi,

Has anyone already attempted to compile xymongrep as a standalone
windows program under MinGW or some such?  I am looking to add
externals under BBWin and have these externals configured from
etc\hosts.cfg to make them as much like native Unix extensions as I
can.
I'd guess that you could easily compile it with Cygwin. I have built 
the "xymon" tool in such an environment.
That is good to know as my longstop, but I was after something less
intrusive, I presume a Cygwin installation will require a bunch of
libraries to be installed and all i need is a standalone xymongrep.exe
It requires 2 DLL's. I don't know if MinGW supports the Unix socket API, 
but if it does then compiling it with MinGW should work fine.


Regards,
Henrik
Looks like MinGW is not the way to go....

http://mingw-users.1079350.n2.nabble.com/sys-socket-h-td3255232.html
Other packages I'll be compiling need sys/socket.h, ...

Then you will not be compiling them with MinGW, unless you put in the
effort, and *port* them to use the WinSock API instead.  There is no
sys/socket.h among MinGW deliverables, nor will there be.
Does anyone have a Howto of any sort for building xymon under Cygwin then?

Thanks
-- 
Andy