Xymon Mailing List Archive search

Hobbit server/client, Nagios server ?! (fwd)

6 messages in this thread

list Martin Flemming · Fri, 13 Mar 2009 00:05:59 +0100 (CET) ·
Hmm, please don't be angry,
that's my very last attemp ...

"Hobbit Server/Client and Nagios Server"

 I need something which triggers an alarm from an
hobbit-client or hobbitserver (prefer) to our NAGIOS-Server ..
I will be very happy, if only one hint came around ..

Now, it's a very favorable moment for this,
because we've got a student for some months,
who can spend time for it ...

It should not a be a pro/contra-discussion of Nagios vs. Xymon,
which will be always on side of Xymon, won't it ? :-)

It's only the technical question of the possibility ....
Unfortunately, Nagios is in our IT-Department the political first Montitoring-Tool,
but i want to share my advantage wit Xymon to the rest of our group ...

thanks

        Martin

---------- Forwarded message ----------
Date: Wed, 11 Feb 2009 15:10:22 +0100 (CET)
From: Martin Flemming <user-f286aaa49a76@xymon.invalid>
To: Hobbitmon-developer <user-f970bfd1395f@xymon.invalid>
Subject: Re: [Hobbitmon-developer] Hobbit server/client,  Nagios server ?!


Hi, again :-)

At the time i've got the answer from Martin Ward,
that it will be  trickier as his Nagios-client-to-Hobbit-server-proxy
(but not impossible), but probably
nobody has the time or pressure to develop it ...

Now, we've got possibly a student,
who could take this theme and make some deployments ...

Can somebody give me some hints or possible method of resolutions
which we can give him in the hand ...

thanks in advance & cheers

martin


On Wed, 12 Nov 2008, Martin Flemming wrote:
Hi, and sorry for mailing again ...

.. only want/need an hint or short answer, if it will be possible,
not now, in this moment but in the future .. :-)

The original thread with  Nagios-client and Hobbit-Server,
is also nice but no solution for my "problem" alternatively my IT-Department
Headquarters ... :-(


thanks & cheers

      martin

P.S.:
.. or should i posted another once to the list again,
maybe the euphoria of the Development and Status of Xymon and so on .. cover
some questions ...

Martin Flemming
DESY / IT          office : Building 2b / 008a
Notkestr. 85       phone  : XXX - XXXX - XXXX
22603 Hamburg      mail   : user-f286aaa49a76@xymon.invalid

---------- Forwarded message ----------
Date: Tue, 11 Nov 2008 23:03:53 +0100 (CET)
From: user-f286aaa49a76@xymon.invalid
To: user-ae9b8668bcde@xymon.invalid
Subject: Hobbit server/client,  Nagios server ?!


Hi !

... some spinning around this quite recently thread ....
  RE: [hobbit] Nagios client, Hobbit server anyone?

  http://www.hswn.dk/hobbiton/2008/11/msg00212.html

"Hobbit Server/Client and Nagios Server"

I need something which triggers an alarm from an
hobbit-client or hobbitserver (prefer) to our NAGIOS-Server ..

.. the reason ?

Our Operating-Crew and our hole IT-Division (execept me and my
Admin-Colleagues)

are using  NAGIOS as our first Monitoring-Tool, but i for my own use
Hobbit/Xymon ... :-)

So, after Hobbit is monitoring, maybe less fewer (?), the half of our 3000
Machines,

Hobbit/Xymon is switching from "My" to "OUR" Tool ... that's means
more,authoritative and accurate work for me ...

.. and using the big advantage of Hobbit/Xymon to adavance the Monitoring
of our whole Division "against" our Customers ...

... maybe something trigger an alarm while sending alarm-mails
or something around, as told several time before, i'm not a brillant coder
:-(

.. or maybe traps .. ?

Some suggestions ? .. are very welcome :-)


thanks & cheers

  martin
Create and Deploy Rich Internet Apps outside the browser with Adobe(R)AIR(TM)
software. With Adobe AIR, Ajax developers can use existing skills and code to
build responsive, highly engaging applications that combine the power of local
resources and data with the reach of the web. Download the Adobe AIR SDK and
Ajax docs to start building applications today-http://p.sf.net/sfu/adobe-com
list Martin Ward · Fri, 13 Mar 2009 15:11:07 -0000 ·
Hi Martin,
It should not a be a pro/contra-discussion of Nagios vs. Xymon, which will be always on side of Xymon, won't it ? :-)
I am sure Nagios has its benefits, as does Xymon, we're just more likely
to consider Xymon first.

You are asking about having a Nagios server talk to a Hobbit client,
yes? In this case what you are asking for is certainly possible, just
not simple.

Nagios is not a client-server application. It works by the server
initiating tests on the clients and reading the response. Xymon works by
listening on a port for data sent from the client, the client initiates
its own tests. With a Xymon server and a Nagios client it's fairly easy
(it must be since I have done it) to have a proxy server that initiates
the Nagios test on the client and report back to the Xymon server.

However, with a Nagios and a Xymon client it's more difficult. The
client would run when it was configured to and try to send data back to
the Nagios server, which isn't ready to accept data form the client
since it hasn't initiated a test.

If you really want to do this you are going to have to write (or get
your student to write) a proxy server that listens on port 1984 and
stores any client data from the Xymon client on disk. Then, when the
Nagios server initiates a test another program reads the data from the
disk and sends back the corresponding information.

How you tie up the data sent from the client to the data requested by
the server is up to you and your student to figure out.

|\/|artin
quoted from Martin Flemming

-----Original Message-----
From: Martin Flemming [mailto:user-f286aaa49a76@xymon.invalid] Sent: 12 March 2009 23:06
To: user-ae9b8668bcde@xymon.invalid
Subject: [hobbit] Re: Hobbit server/client, Nagios server ?! (fwd)


Hmm, please don't be angry,
that's my very last attemp ...

"Hobbit Server/Client and Nagios Server"

 I need something which triggers an alarm from an hobbit-client or >>> hobbitserver (prefer) to our NAGIOS-Server ..
I will be very happy, if only one hint came around ..

Now, it's a very favorable moment for this,
because we've got a student for some months,
who can spend time for it ...

It should not a be a pro/contra-discussion of Nagios vs. Xymon, which will be always on side of Xymon, won't it ? :-)

It's only the technical question of the possibility .... Unfortunately, Nagios is in our IT-Department the political first Montitoring-Tool, but i want to share my advantage wit Xymon to the rest of our group ...

thanks

        Martin
*************************************************************************************

The message is intended for the named addressee only and may not be disclosed to or used by anyone else, nor may it be copied in any way. 
The contents of this message and its attachments are confidential and may also be subject to legal privilege.  If you are not the named addressee and/or have received this message in error, please advise us by e-mailing user-61c7f445d564@xymon.invalid and delete the message and any attachments without retaining any copies. 
Internet communications are not secure and COLT does not accept responsibility for this message, its contents nor responsibility for any viruses. 
No contracts can be created or varied on behalf of COLT Telecommunications, its subsidiaries or affiliates ("COLT") and any other party by email Communications unless expressly agreed in writing with such other party.  
Please note that incoming emails will be automatically scanned to eliminate potential viruses and unsolicited promotional emails. For more information refer to www.colt.net or contact us on +44(0)20 7390 3900.
list Martin Flemming · Sat, 14 Mar 2009 11:42:52 +0100 (CET) ·
Hi, Martin .. again :-) !

Thanks a lot for answer and your informations .. !!

.. for my apology and i think you notice it, i'm not knowledgeable 
with the nagios-working-model ...
quoted from Martin Ward
You are asking about having a Nagios server talk to a Hobbit client,
yes?
Not quite correct, also the Xymon-Server could trigger the 
Nagios-Server, like the xymon-alert-mail to myself ... :-)

Damned, once more my misapprehension again,
about  nagios ( not a client-server-application), sorry !
quoted from Martin Ward
In this case what you are asking for is certainly possible, just
not simple.
I believe, and the other thought, with xymon-server to nagio-server
is not easier i think ..

There was a nebulous idea, that Nagios can get a xymon-alert for 
a host (from xymon-client or from server), and if you "click" on the 
alarm-icon on Nagios, you will be redirect to the  xymon-page or subpage 
or host-info-page ...

And you describe this very intelligible with this below, thanks ! :-)
quoted from Martin Ward
If you really want to do this you are going to have to write (or get
your student to write) a proxy server that listens on port 1984 and
stores any client data from the Xymon client on disk. Then, when the
Nagios server initiates a test another program reads the data from the
disk and sends back the corresponding information.

How you tie up the data sent from the client to the data requested by
the server is up to you and your student to figure out.
It seems ( this was apprehensive ) to be a bigger project :-(

Thanks a lot again for your answer !

.. but i still wonder, that i'm the only one, who wants/need this
connection between xymon and nagios ( ok, Xymon is the better  of 
application course, but nagios is more widespreaded , i think ...)

cheers,
 	martin
quoted from Martin Ward


On Fri, 13 Mar 2009, Ward, Martin wrote:
Hi Martin,
It should not a be a pro/contra-discussion of Nagios vs.
Xymon, which will be always on side of Xymon, won't it ? :-)
I am sure Nagios has its benefits, as does Xymon, we're just more likely
to consider Xymon first.

You are asking about having a Nagios server talk to a Hobbit client,
yes? In this case what you are asking for is certainly possible, just
not simple.

Nagios is not a client-server application. It works by the server
initiating tests on the clients and reading the response. Xymon works by
listening on a port for data sent from the client, the client initiates
its own tests. With a Xymon server and a Nagios client it's fairly easy
(it must be since I have done it) to have a proxy server that initiates
the Nagios test on the client and report back to the Xymon server.

However, with a Nagios and a Xymon client it's more difficult. The
client would run when it was configured to and try to send data back to
the Nagios server, which isn't ready to accept data form the client
since it hasn't initiated a test.

If you really want to do this you are going to have to write (or get
your student to write) a proxy server that listens on port 1984 and
stores any client data from the Xymon client on disk. Then, when the
Nagios server initiates a test another program reads the data from the
disk and sends back the corresponding information.

How you tie up the data sent from the client to the data requested by
the server is up to you and your student to figure out.

|\/|artin

-----Original Message-----
From: Martin Flemming [mailto:user-f286aaa49a76@xymon.invalid]
Sent: 12 March 2009 23:06
To: user-ae9b8668bcde@xymon.invalid
Subject: [hobbit] Re: Hobbit server/client, Nagios server ?! (fwd)


Hmm, please don't be angry,
that's my very last attemp ...

"Hobbit Server/Client and Nagios Server"

 I need something which triggers an alarm from an
hobbit-client or
hobbitserver (prefer) to our NAGIOS-Server ..
I will be very happy, if only one hint came around ..

Now, it's a very favorable moment for this,
because we've got a student for some months,
who can spend time for it ...

It should not a be a pro/contra-discussion of Nagios vs.
Xymon, which will be always on side of Xymon, won't it ? :-)

It's only the technical question of the possibility ....
Unfortunately, Nagios is in our IT-Department the political
first Montitoring-Tool, but i want to share my advantage wit
Xymon to the rest of our group ...

thanks

        Martin
*************************************************************************************
The message is intended for the named addressee only and may not be disclosed to or used by anyone else, nor may it be copied in any way.

The contents of this message and its attachments are confidential and may also be subject to legal privilege.  If you are not the named addressee and/or have received this message in error, please advise us by e-mailing user-61c7f445d564@xymon.invalid and delete the message and any attachments without retaining any copies.

Internet communications are not secure and COLT does not accept responsibility for this message, its contents nor responsibility for any viruses.

No contracts can be created or varied on behalf of COLT Telecommunications, its subsidiaries or affiliates ("COLT") and any other party by email Communications unless expressly agreed in writing with such other party.

Please note that incoming emails will be automatically scanned to eliminate potential viruses and unsolicited promotional emails. For more information refer to www.colt.net or contact us on +44(0)20 7390 3900.

list Carl Inglis · Sat, 14 Mar 2009 10:50:39 -0000 (UTC) ·
Hi all,

One point which I think has been missed - Nagios can accept "Passive
Checks", so in theory XyMon could report to Nagios:

On my nagios server the relevant documentation is found under:
http://[server]/nagios/docs/passivechecks.html

Hope that helps!

Regards,

Carl
list Ralph Mitchell · Sat, 14 Mar 2009 12:34:21 -0500 ·
quoted from Carl Inglis
On Sat, Mar 14, 2009 at 5:50 AM, carl Inglis <user-73848971e77b@xymon.invalid> wrote:
Hi all,

One point which I think has been missed - Nagios can accept "Passive
Checks", so in theory XyMon could report to Nagios:

On my nagios server the relevant documentation is found under:
http://[server]/nagios/docs/passivechecks.html

Hope that helps!

Regards,

Carl

I think I actually had this working at one time.  I used the NSCA addon to
feed Xymon info to Nagios in the form of passive checks.  I'm fairly sure I
used, or at least looked at using, the hobbitd_sample program to catch
status messages passing through Xymon.  See the man page here:

   http://hobbitmon.sourceforge.net/docs/man8/hobbitd_sample.8.html

The source for that is in the Xymon source tree, so it gets compiled and
installed along with everything else.  You could either alter the source to
make the send_nsca() call directly, or at least execute an external script
with appropriate arguments,

You'll also need to have the NSCA receiver running on the Nagios server, but
that might be there already.

I no longer have access to my old Hobbit server, but I might have a backup
copy somewhere...

Ralph Mitchell
list Martin Flemming · Wed, 18 Mar 2009 14:31:25 +0100 (CET) ·
Thanks a lot for your comments and hints !

I will check it out and we will see
if there come some output which we can use ...

thanks again & cheers

 	martin

p.s.: ... and Ralph, if you find sometimes or stumble about your 
done work in your old backup, please let me know :-)
quoted from Ralph Mitchell

On Sat, 14 Mar 2009, Ralph Mitchell wrote:
On Sat, Mar 14, 2009 at 5:50 AM, carl Inglis <user-73848971e77b@xymon.invalid> wrote:
Hi all,

One point which I think has been missed - Nagios can accept "Passive
Checks", so in theory XyMon could report to Nagios:

On my nagios server the relevant documentation is found under:
http://[server]/nagios/docs/passivechecks.html

Hope that helps!

Regards,

Carl

I think I actually had this working at one time.  I used the NSCA addon to
feed Xymon info to Nagios in the form of passive checks.  I'm fairly sure I
used, or at least looked at using, the hobbitd_sample program to catch
status messages passing through Xymon.  See the man page here:

  http://hobbitmon.sourceforge.net/docs/man8/hobbitd_sample.8.html

The source for that is in the Xymon source tree, so it gets compiled and
installed along with everything else.  You could either alter the source to
make the send_nsca() call directly, or at least execute an external script
with appropriate arguments,

You'll also need to have the NSCA receiver running on the Nagios server, but
that might be there already.

I no longer have access to my old Hobbit server, but I might have a backup
copy somewhere...

Ralph Mitchell
Gruss

        Martin Flemming
quoted from Martin Flemming


Martin Flemming
DESY / IT          office : Building 2b / 008a
Notkestr. 85       phone  : XXX - XXXX - XXXX
22603 Hamburg      mail   : user-f286aaa49a76@xymon.invalid