sending data without running a client
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
On Mon, May 21, 2012 at 9:58 AM, Jones, Elizabeth <Ejones at egov.com> 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
On Mon, May 21, 2012 at 10:10 AM, oliver <ohemming at gmail.com> wrote:
On Mon, May 21, 2012 at 9:58 AM, Jones, Elizabeth <Ejones at egov.com> 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
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 <Ejones at egov.com> 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****
Xymon mailing list Xymon at xymon.com http://lists.xymon.com/mailman/listinfo/xymon
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 <Ejones at egov.com> 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
On Mon, May 21, 2012 at 9:58 AM, Jones, Elizabeth <Ejones at egov.com> 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****
Xymon mailing list Xymon at xymon.com http://lists.xymon.com/mailman/listinfo/xymon
-- 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?
On Mon, May 21, 2012 at 9:58 AM, Jones, Elizabeth <Ejones at egov.com> 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
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.
----- Original Message ----- From: cleaver at terabithia.org To: "Elizabeth Jones" <ejones at egov.com> 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 <Ejones at egov.com> 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
Xymon mailing list Xymon at xymon.com http://lists.xymon.com/mailman/listinfo/xymon
participants (6)
-
baugust@stanford.edu
-
cleaver@terabithia.org
-
Ejones@egov.com
-
ohemming@gmail.com
-
ralphmitchell@gmail.com
-
vadud3@gmail.com