Xymon Mailing List Archive search

sending data without running a client

8 messages in this thread

list Elizabeth Jones · Mon, 21 May 2012 09:58:27 -0400 ·
Is it possible to send data directly to the xymon server from another server without having a xymon client sending it? We have some production servers where I am not comfortable installing the client because it wants packages that are not already installed on those servers. Can I have my own scripts send data directly?


Elizabeth Jones
list Oliver · Mon, 21 May 2012 10:10:35 -0400 ·
quoted from Elizabeth Jones
On Mon, May 21, 2012 at 9:58 AM, Jones, Elizabeth <user-f0dffc744f19@xymon.invalid> wrote:
Is it possible to send data directly to the xymon server from another server
without having a xymon client sending it? We have some production servers
where I am not comfortable installing the client because it wants packages
that are not already installed on those servers. Can I have my own scripts
send data directly?
It would probably be easier to use 'external' scripts on the server to
go and grab the data via ssh.  That way, you're only maintaining one
set of scripts
list Ralph Mitchell · Mon, 21 May 2012 10:13:18 -0400 ·
It is possible to replace the compiled binaries with scripts - I have a
bunch of client systems doing exactly that.  Some functionality is lost,
but so far that hasn't been a problem for me.  On the other hand, I've
gained the ability to deliver reports via secure https connection.

All you'll need is bash, cron & curl.  I know I've posted about this
before, but I'm not sure how much detail I gave.  I won't be able to get a
copy of the scripts cleaned up for distribution until sometime later today.

Ralph Mitchell
quoted from Oliver


On Mon, May 21, 2012 at 9:58 AM, Jones, Elizabeth <user-f0dffc744f19@xymon.invalid> wrote:
Is it possible to send data directly to the xymon server from another
server without having a xymon client sending it? We have some production
servers where I am not comfortable installing the client because it wants
packages that are not already installed on those servers. Can I have my own
scripts send data directly?****

** **

** **

----------****

Elizabeth Jones****

** **

** **

list Ralph Mitchell · Mon, 21 May 2012 10:32:26 -0400 ·
quoted from Oliver
On Mon, May 21, 2012 at 10:10 AM, oliver <user-c44cbd0c692f@xymon.invalid> wrote:
On Mon, May 21, 2012 at 9:58 AM, Jones, Elizabeth <user-f0dffc744f19@xymon.invalid> wrote:
Is it possible to send data directly to the xymon server from another
server
without having a xymon client sending it? We have some production servers
where I am not comfortable installing the client because it wants
packages
that are not already installed on those servers. Can I have my own
scripts
send data directly?
It would probably be easier to use 'external' scripts on the server to
go and grab the data via ssh.  That way, you're only maintaining one
set of scripts

Yep, done it that way too.  Put ssh keys out on all the clients, then pipe
the script over ssh.  Catch the output and deliver to xymon.  You'll want a
non-expiring password on the clients.  If it expires, ssh may not get in,
even with keys.

Ralph Mitchell
list Japheth Cleaver · Mon, 21 May 2012 08:37:33 -0700 (PDT) ·
quoted from Ralph Mitchell
It is possible to replace the compiled binaries with scripts - I have a
bunch of client systems doing exactly that.  Some functionality is lost,
but so far that hasn't been a problem for me.  On the other hand, I've
gained the ability to deliver reports via secure https connection.

All you'll need is bash, cron & curl.  I know I've posted about this
before, but I'm not sure how much detail I gave.  I won't be able to get a
copy of the scripts cleaned up for distribution until sometime later
today.

Ralph Mitchell


On Mon, May 21, 2012 at 9:58 AM, Jones, Elizabeth <user-f0dffc744f19@xymon.invalid> wrote:
Is it possible to send data directly to the xymon server from another
server without having a xymon client sending it? We have some production
servers where I am not comfortable installing the client because it
wants
packages that are not already installed on those servers. Can I have my
own
scripts send data directly?****
One pre-packaged script available is xymon-rclient.sh, at
http://tools.rebel-it.com.au/xymon-rclient/

from http://lists.xymon.com/archive/2011-November/033076.html


HTH,

-jc
list Asif Iqbal · Mon, 21 May 2012 14:49:33 -0400 ·
quoted from Japheth Cleaver
On Mon, May 21, 2012 at 9:58 AM, Jones, Elizabeth <user-f0dffc744f19@xymon.invalid> wrote:
Is it possible to send data directly to the xymon server from another
server without having a xymon client sending it? We have some production
servers where I am not comfortable installing the client because it wants
packages that are not already installed on those servers. Can I have my own
scripts send data directly?****

**
you cannot just compile a ``xymon'' bin and drop it in on all the other
servers?

then you could just use  $ cat statusmsg.txt | $XYMON $XYMSRV "@"


 **
** **

----------****

Elizabeth Jones****

** **

** **

-- 
Asif Iqbal
PGP Key: 0xE62693C5 KeyServer: pgp.mit.edu
A: Because it messes up the order in which people normally read text.
Q: Why is top-posting such a bad thing?
list Japheth Cleaver · Mon, 21 May 2012 13:22:12 -0700 (PDT) ·
quoted from Asif Iqbal
On Mon, May 21, 2012 at 9:58 AM, Jones, Elizabeth <user-f0dffc744f19@xymon.invalid> wrote:
Is it possible to send data directly to the xymon server from another
server without having a xymon client sending it? We have some production
servers where I am not comfortable installing the client because it
wants
packages that are not already installed on those servers. Can I have my
own
scripts send data directly?****

**
you cannot just compile a ``xymon'' bin and drop it in on all the other
servers?

then you could just use  $ cat statusmsg.txt | $XYMON $XYMSRV "@"
The client can also be compiled completely statically (I've done it with
dietlibc), so shouldn't pull in anything else really.

There are also ways to run the client without installing a local user, so
you can run it with any unprivileged account that has SSH or cron access.

-jc
list Benjamin P. August · Mon, 21 May 2012 13:28:18 -0700 (PDT) ·
There also used to be a perl-based client running around somewhere, maybe on deadcat. I thought about using it on some Mac servers I inherited, but then decided to install MacPorts and got the client that way. 
quoted from Japheth Cleaver

----- Original Message -----
From: user-87556346d4af@xymon.invalid
To: "Elizabeth Jones" <user-f0dffc744f19@xymon.invalid>
Cc: "Xymon at xymon.com" <xymon at xymon.com>
Sent: Monday, May 21, 2012 1:22:12 PM
Subject: Re: [Xymon] sending data without running a client
On Mon, May 21, 2012 at 9:58 AM, Jones, Elizabeth <user-f0dffc744f19@xymon.invalid> wrote:
Is it possible to send data directly to the xymon server from another
server without having a xymon client sending it? We have some production
servers where I am not comfortable installing the client because it
wants
packages that are not already installed on those servers. Can I have my
own
scripts send data directly?****

**
you cannot just compile a ``xymon'' bin and drop it in on all the other
servers?

then you could just use  $ cat statusmsg.txt | $XYMON $XYMSRV "@"
The client can also be compiled completely statically (I've done it with
dietlibc), so shouldn't pull in anything else really.

There are also ways to run the client without installing a local user, so
you can run it with any unprivileged account that has SSH or cron access.

-jc