Xymon Mailing List Archive search

xymonproxy SetUp Help Requested

6 messages in this thread

list Nick Pettefar · Wed, 13 Mar 2013 11:13:44 +0000 ·
I have an xymon client for a  NAS but the NAS is connected via another
xymon client and is not reachable from the xymon server.  How would I
set this up in the xymon server configuration - does it need a
hosts.cfg entry and if so, what would it look like?  On the client, do
I give it the address of the xymon client running xymonproxy or the
actual server?

Regards,

Nick Pettefar
list Vernon Everett · Wed, 13 Mar 2013 19:52:51 +0800 ·
I had a similar situation at a client a few years ago.
I wrote a script that ran on Xymon client foo, which collected info from
device/client bar
Client foo, then sent xymon status and data messages to the server as if
they were coming from client bar.
Very easy to do.
All you need to do is make sure that the $MACHINE value is set
appropriately.

Regards
Vernon
quoted from Nick Pettefar

On 13 March 2013 19:13, Nick Pettefar <user-2027539dd102@xymon.invalid> wrote:
I have an xymon client for a  NAS but the NAS is connected via another
xymon client and is not reachable from the xymon server.  How would I
set this up in the xymon server configuration - does it need a
hosts.cfg entry and if so, what would it look like?  On the client, do
I give it the address of the xymon client running xymonproxy or the
actual server?

Regards,

Nick Pettefar

-- 

"Accept the challenges so that you can feel the exhilaration of victory"
- General George Patton
list Steve Holmes · Wed, 13 Mar 2013 09:44:54 -0400 ·
quoted from Nick Pettefar
On Wed, Mar 13, 2013 at 7:13 AM, Nick Pettefar <user-2027539dd102@xymon.invalid> wrote:
I have an xymon client for a  NAS but the NAS is connected via another
xymon client and is not reachable from the xymon server.  How would I
set this up in the xymon server configuration - does it need a
hosts.cfg entry and if so, what would it look like?  On the client, do
I give it the address of the xymon client running xymonproxy or the
actual server?

Regards,

Nick Pettefar

If I understand your situation correctly: turn the server with connection
to the main xymon server into a proxy and point the NAS to that proxy. I
believe you would have to install the xymon server there (to provide the
xymonproxy utility) turn off everything you don't need in tasks.cfg and
turn on xymonproxy. The comments are good in the file about how to do this.
You may have to use the arg to xymonproxy to tell it to listen to a
different ip than the standard one if the server is dual homed and the NAS
is on, say, a private network.

I'm not sure if the proxy needs hosts.cfg. On my proxy it already does
because it was private network tester before it was a proxy.

HTH
Steve
Purdue

-- 
If they give you ruled paper, write the other way. -Juan Ramon Jimenez,
poet, Nobel Prize in literature (1881-1958)

I prayed for freedom for twenty years, but received no answer until I
prayed with my legs. -Frederick Douglass, Former slave, abolitionist,
editor, and orator (1817-1895)
list Nick Pettefar · Wed, 13 Mar 2013 14:04:05 +0000 ·
Hi, thanks for that.  I understand that but what I am wondering is
what to put in the actual server's hosts.cfg file.

Regards,

Nick Pettefar
quoted from Steve Holmes


On 13 March 2013 13:44, Steve Holmes <user-ec1bf77b1b44@xymon.invalid> wrote:

On Wed, Mar 13, 2013 at 7:13 AM, Nick Pettefar <user-2027539dd102@xymon.invalid> wrote:
I have an xymon client for a  NAS but the NAS is connected via another
xymon client and is not reachable from the xymon server.  How would I
set this up in the xymon server configuration - does it need a
hosts.cfg entry and if so, what would it look like?  On the client, do
I give it the address of the xymon client running xymonproxy or the
actual server?

Regards,

Nick Pettefar
If I understand your situation correctly: turn the server with connection to
the main xymon server into a proxy and point the NAS to that proxy. I
believe you would have to install the xymon server there (to provide the
xymonproxy utility) turn off everything you don't need in tasks.cfg and turn
on xymonproxy. The comments are good in the file about how to do this. You
may have to use the arg to xymonproxy to tell it to listen to a different ip
than the standard one if the server is dual homed and the NAS is on, say, a
private network.

I'm not sure if the proxy needs hosts.cfg. On my proxy it already does
because it was private network tester before it was a proxy.

HTH
Steve
Purdue

--
If they give you ruled paper, write the other way. -Juan Ramon Jimenez,
poet, Nobel Prize in literature (1881-1958)

I prayed for freedom for twenty years, but received no answer until I prayed
with my legs. -Frederick Douglass, Former slave, abolitionist, editor, and
orator (1817-1895)
list Steve Holmes · Wed, 13 Mar 2013 10:44:05 -0400 ·
quoted from Nick Pettefar
On Wed, Mar 13, 2013 at 10:04 AM, Nick Pettefar <user-2027539dd102@xymon.invalid> wrote:
Hi, thanks for that.  I understand that but what I am wondering is
what to put in the actual server's hosts.cfg file.

Regards,

Nick Pettefar


On 13 March 2013 13:44, Steve Holmes <user-ec1bf77b1b44@xymon.invalid> wrote:

On Wed, Mar 13, 2013 at 7:13 AM, Nick Pettefar <user-2027539dd102@xymon.invalid>
wrote:
I have an xymon client for a  NAS but the NAS is connected via another
xymon client and is not reachable from the xymon server.  How would I
set this up in the xymon server configuration - does it need a
hosts.cfg entry and if so, what would it look like?  On the client, do
I give it the address of the xymon client running xymonproxy or the
actual server?

Regards,

Nick Pettefar
If I understand your situation correctly: turn the server with
connection to
the main xymon server into a proxy and point the NAS to that proxy. I
believe you would have to install the xymon server there (to provide the
xymonproxy utility) turn off everything you don't need in tasks.cfg and
turn
on xymonproxy. The comments are good in the file about how to do this.
You
may have to use the arg to xymonproxy to tell it to listen to a
different ip
than the standard one if the server is dual homed and the NAS is on,
say, a
private network.

I'm not sure if the proxy needs hosts.cfg. On my proxy it already does
because it was private network tester before it was a proxy.

HTH
Steve
Purdue
Just treat it as if the NAS server were talking directly to the xymon
server.

Now, if the network tests can't get to the NAS from your main xymon server
then you would need to set up the server that we've been talking about as
the proxy to do the network tests. If you have to do this, it would have to
be configured to run xymonnet and have a copy of the hosts.cfg file. Set
the LOCATION variable in xymonserver.cfg on both servers (main and proxy)
and make them different (e.g. main and proxy), then on the host.cfg line
for the NAS server add the NET:proxy tag on both servers and in tasks.cfg
on the main server add the --test-untagged arg for xymonnet so you don't
have to add a NET:main on all of the other hosts.

Note that the xymonserver.cfg file on the proxy has to have the *main
server IP* value for the XYMSRV variable (IIR, I'm not working today :-).
quoted from Nick Pettefar

Steve
Purdue


-- 
If they give you ruled paper, write the other way. -Juan Ramon Jimenez,
poet, Nobel Prize in literature (1881-1958)

I prayed for freedom for twenty years, but received no answer until I
prayed with my legs. -Frederick Douglass, Former slave, abolitionist,
editor, and orator (1817-1895)
list Ryan Novosielski · Wed, 13 Mar 2013 10:46:12 -0400 ·
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

I too do this for one of my Solaris zones. It doesn't make too much
sense to have the alert come from the parent machine as only the one
zone is running on the machine (to isolate it from the hardware and a
more serious root breach), but the zone cannot read RAID status or the
like. The global zone runs the scripts, impersonating the local zone.
quoted from Vernon Everett

On 03/13/2013 07:52 AM, Vernon Everett wrote:
I had a similar situation at a client a few years ago. I wrote a
script that ran on Xymon client foo, which collected info from 
device/client bar Client foo, then sent xymon status and data
messages to the server as if they were coming from client bar. Very
easy to do. All you need to do is make sure that the $MACHINE value
is set appropriately.

Regards Vernon

On 13 March 2013 19:13, Nick Pettefar <user-2027539dd102@xymon.invalid 
<mailto:user-2027539dd102@xymon.invalid>> wrote:

I have an xymon client for a  NAS but the NAS is connected via
another xymon client and is not reachable from the xymon server.
How would I set this up in the xymon server configuration - does it
need a hosts.cfg entry and if so, what would it look like?  On the
client, do I give it the address of the xymon client running
xymonproxy or the actual server?

Regards,

Nick Pettefar _______________________________________________ Xymon
mailing list Xymon at xymon.com
quoted from Vernon Everett


-- "Accept the challenges so that you can feel the exhilaration of
victory" - General George Patton

- -- 
- ---- _  _ _  _ ___  _  _  _

|Y#| |  | |\/| |  \ |\ |  | |Ryan Novosielski - Sr. Systems Programmer
|$&| |__| |  | |__/ | \| _| |user-ae4522577e16@xymon.invalid - 973/972.0922 (2-0922)
\__/ Univ. of Med. and Dent.|IST/EI-Academic Svcs. - ADMC 450, Newark
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (GNU/Linux)
Comment: Using GnuPG with undefined - http://www.enigmail.net/

iEYEARECAAYFAlFAkTEACgkQmb+gadEcsb4CCQCfTW27NdLGTN5R/AAHm6LJECLO
H3kAn2tTGOxMjldZiLDnBqsc2D4bYqWP
=wAIF
-----END PGP SIGNATURE-----