Xymon Mailing List Archive search

Repeat: Client test problems on Xymon server 4.2.3

6 messages in this thread

list Ryan Novosielski · Thu, 13 Jan 2011 16:09:59 -0500 ·
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

I had posted a message on this before and never really got anywhere with
it. I just re-read all of the replies from last time and none of them
really gave me anything to go on (they say look at logs, but none end up
being created).

First off, here is the section that starts the Xymon client from within
the Xymon server's hobbitlaunch.cfg:

# "hobbitclient" runs the Xymon client. The client is installed
automatically
# when you install a Xymon server (presumably, you do want to monitor the
# Xymon server ?), but there's no need to have two hobbitlaunch instances
# running at the same time. So we'll just run it from here.
# Note: If you are using another client package, you should disable this
one.

[hobbitclient]
        ENVFILE /opt/xymon-4.2.3/client/etc/hobbitclient.cfg
        NEEDS hobbitd
        CMD /opt/xymon-4.2.3/client/bin/hobbitclient.sh
        LOGFILE $BBSERVERLOGS/hobbitclient.log
        INTERVAL 5m

I checked to see where this LOGFILE is supposed to be going:
BBSERVERLOGS="/opt/xymon-4.2.3/log"

So I looked in there:
ls -la /opt/xymon-4.2.3/log/
total 3228
drwxr-xr-x   2 xymon    daemon       512 Jan 13 15:48 .
drwxr-xr-x   9 root     root         512 Sep 16  2009 ..
- -rw-r--r--   1 xymon    daemon   1550037 Dec 23 15:47 bb-network.log
- -rw-r--r--   1 xymon    daemon     74080 Jul 26 16:39 bb-retest.log
- -rw-r--r--   1 xymon    daemon      9314 Jan 13 15:48 hobbitlaunch.log
- -rw-r--r--   1 xymon    daemon         5 Jan 13 15:48 hobbitlaunch.pid

No such file. So I checked the hobbitlaunch.log sitting here:

2011-01-13 15:48:06 hobbitlaunch starting
2011-01-13 15:48:06 Loading tasklist configuration from
/opt/xymon-4.2.3/server/etc/hobbitlaunch.cfg

That file exists, as I copied the above [hobbitclient] section out of
t.The last thing I can think of is that maybe $BBSERVERLOGS is not
defined in the context in which it is needed. Beyond that, I'm totally
out of ideas. It appears as if this section is completely ignored. On
both of my machines, if I don't start the client (by changing to the
client directory and doing ./runclient.sh start), it doesn't get started.

Any clues?

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

iEYEARECAAYFAk0vaiYACgkQmb+gadEcsb5WSwCeNzzzTOQU5SClMug8YmPC1W7l
bJoAn1jmSvfOtVnT3eYa1VGtnztSrTcG
=2fSo
-----END PGP SIGNATURE-----
list Chris Morris · Fri, 14 Jan 2011 08:59:56 -0000 ·
Perhaps the salient point here is "That file exists, as I copied the
above [hobbitclient] section out of t."

To where? Where are you trying to invoke the client from? 
quoted from Ryan Novosielski

-----Original Message-----
From: Ryan Novosielski [mailto:user-ae4522577e16@xymon.invalid] 
Sent: 13 January 2011 21:10
To: xymon at xymon.com
Subject: [xymon] Repeat: Client test problems on Xymon server 4.2.3

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

I had posted a message on this before and never really got anywhere with
it. I just re-read all of the replies from last time and none of them
really gave me anything to go on (they say look at logs, but none end up
being created).

First off, here is the section that starts the Xymon client from within
the Xymon server's hobbitlaunch.cfg:

# "hobbitclient" runs the Xymon client. The client is installed
automatically # when you install a Xymon server (presumably, you do want
to monitor the # Xymon server ?), but there's no need to have two
hobbitlaunch instances # running at the same time. So we'll just run it
from here.
# Note: If you are using another client package, you should disable this
one.

[hobbitclient]
        ENVFILE /opt/xymon-4.2.3/client/etc/hobbitclient.cfg
        NEEDS hobbitd
        CMD /opt/xymon-4.2.3/client/bin/hobbitclient.sh
        LOGFILE $BBSERVERLOGS/hobbitclient.log
        INTERVAL 5m

I checked to see where this LOGFILE is supposed to be going:
BBSERVERLOGS="/opt/xymon-4.2.3/log"

So I looked in there:
ls -la /opt/xymon-4.2.3/log/
total 3228
drwxr-xr-x   2 xymon    daemon       512 Jan 13 15:48 .
drwxr-xr-x   9 root     root         512 Sep 16  2009 ..
- -rw-r--r--   1 xymon    daemon   1550037 Dec 23 15:47 bb-network.log
- -rw-r--r--   1 xymon    daemon     74080 Jul 26 16:39 bb-retest.log
- -rw-r--r--   1 xymon    daemon      9314 Jan 13 15:48 hobbitlaunch.log
- -rw-r--r--   1 xymon    daemon         5 Jan 13 15:48 hobbitlaunch.pid

No such file. So I checked the hobbitlaunch.log sitting here:

2011-01-13 15:48:06 hobbitlaunch starting
2011-01-13 15:48:06 Loading tasklist configuration from
/opt/xymon-4.2.3/server/etc/hobbitlaunch.cfg

That file exists, as I copied the above [hobbitclient] section out of
t.The last thing I can think of is that maybe $BBSERVERLOGS is not
defined in the context in which it is needed. Beyond that, I'm totally
out of ideas. It appears as if this section is completely ignored. On
both of my machines, if I don't start the client (by changing to the
client directory and doing ./runclient.sh start), it doesn't get
started.

Any clues?

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

iEYEARECAAYFAk0vaiYACgkQmb+gadEcsb5WSwCeNzzzTOQU5SClMug8YmPC1W7l
bJoAn1jmSvfOtVnT3eYa1VGtnztSrTcG
=2fSo
-----END PGP SIGNATURE-----


**************************************************************************** 

The information contained in this email is intended only for the use of the intended recipient at the email address to which it has been addressed. If the reader of this message is not an intended recipient, you are hereby notified that you have received this document in error and that any review, dissemination or copying of the message or associated attachments is strictly prohibited. If you have received this email in error, please contact the sender by return email or call 01793 877777 and ask for the sender and then delete it immediately from your system.Please note that neither the RWE Group of Companies nor the sender accepts any responsibility for viruses and it is your responsibility to scan attachments (if any). 

*****************************************************************************
list Henrik Størner · Fri, 14 Jan 2011 11:56:14 +0000 (UTC) ·
quoted from Ryan Novosielski
In <user-5dbee792cf6d@xymon.invalid> Ryan Novosielski <user-ae4522577e16@xymon.invalid> writes:
[hobbitclient]
       ENVFILE /opt/xymon-4.2.3/client/etc/hobbitclient.cfg
       NEEDS hobbitd
       CMD /opt/xymon-4.2.3/client/bin/hobbitclient.sh
       LOGFILE $BBSERVERLOGS/hobbitclient.log
       INTERVAL 5m
I checked to see where this LOGFILE is supposed to be going:
BBSERVERLOGS="/opt/xymon-4.2.3/log"
So I looked in there:
ls -la /opt/xymon-4.2.3/log/
total 3228
drwxr-xr-x   2 xymon    daemon       512 Jan 13 15:48 .
drwxr-xr-x   9 root     root         512 Sep 16  2009 ..
- -rw-r--r--   1 xymon    daemon   1550037 Dec 23 15:47 bb-network.log
- -rw-r--r--   1 xymon    daemon     74080 Jul 26 16:39 bb-retest.log
- -rw-r--r--   1 xymon    daemon      9314 Jan 13 15:48 hobbitlaunch.log
- -rw-r--r--   1 xymon    daemon         5 Jan 13 15:48 hobbitlaunch.pid
No such file. 

The "NEEDS hobbitd" line means that the "hobbitd" task must be started,
before "hobbitclient" will run. Since there is no "hobbitd.log" in 
that directory either, I assume you have disabled the "hobbitd" task.
Perhaps this is a server that only runs network tests ?

Anyway, remove the "NEEDS hobbitd" line, and it should start up
just fine.


Regards,
Henrik
list Ryan Novosielski · Fri, 14 Jan 2011 09:55:45 -0500 ·
Ah! Yes it is. It did not occur to me that the network test machines didn't run hobbitd. I will give that a try.

Note that I can't get the machine that DOES run hobbitd to work right in this regard either, but I'll ask another question about that if need be.

-- Sent from my Palm Pre
On Jan 14, 2011 6:58, Henrik Størner &lt;user-ce4a2c883f75@xymon.invalid&gt; wrote: 

In &lt;user-5dbee792cf6d@xymon.invalid&gt; Ryan Novosielski &lt;user-ae4522577e16@xymon.invalid&gt; writes:


&gt;[hobbitclient]

&gt;        ENVFILE /opt/xymon-4.2.3/client/etc/hobbitclient.cfg

&gt;        NEEDS hobbitd

&gt;        CMD /opt/xymon-4.2.3/client/bin/hobbitclient.sh

&gt;        LOGFILE $BBSERVERLOGS/hobbitclient.log

&gt;        INTERVAL 5m


&gt;I checked to see where this LOGFILE is supposed to be going:

&gt;BBSERVERLOGS="/opt/xymon-4.2.3/log"


&gt;So I looked in there:


&gt;&gt; ls -la /opt/xymon-4.2.3/log/

&gt;total 3228

&gt;drwxr-xr-x   2 xymon    daemon       512 Jan 13 15:48 .

&gt;drwxr-xr-x   9 root     root         512 Sep 16  2009 ..

&gt;- -rw-r--r--   1 xymon    daemon   1550037 Dec 23 15:47 bb-network.log

&gt;- -rw-r--r--   1 xymon    daemon     74080 Jul 26 16:39 bb-retest.log

&gt;- -rw-r--r--   1 xymon    daemon      9314 Jan 13 15:48 hobbitlaunch.log

&gt;- -rw-r--r--   1 xymon    daemon         5 Jan 13 15:48 hobbitlaunch.pid


&gt;No such file. 
quoted from Henrik Størner


The "NEEDS hobbitd" line means that the "hobbitd" task must be started,

before "hobbitclient" will run. Since there is no "hobbitd.log" in 

that directory either, I assume you have disabled the "hobbitd" task.

Perhaps this is a server that only runs network tests ?


Anyway, remove the "NEEDS hobbitd" line, and it should start up

just fine.


Regards,

Henrik
list Ryan Novosielski · Fri, 14 Jan 2011 11:23:20 -0500 ·
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Sorry that wasn't clearer. I was/am trying to invoke the client as part
of the server, so it is in hobbitlaunch.cfg -- the mention of "copying"
was about having copied it to this e-mail for people to look at.

Henrik appears to have proposed the solution. I shall report if it works.
quoted from Chris Morris

On 1/14/2011 3:59 AM, user-e510f6c03e57@xymon.invalid wrote:
Perhaps the salient point here is "That file exists, as I copied the
above [hobbitclient] section out of t."

To where? Where are you trying to invoke the client from? 

-----Original Message-----
From: Ryan Novosielski [mailto:user-ae4522577e16@xymon.invalid] 
Sent: 13 January 2011 21:10
To: xymon at xymon.com
Subject: [xymon] Repeat: Client test problems on Xymon server 4.2.3

I had posted a message on this before and never really got anywhere with
it. I just re-read all of the replies from last time and none of them
really gave me anything to go on (they say look at logs, but none end up
being created).

First off, here is the section that starts the Xymon client from within
the Xymon server's hobbitlaunch.cfg:

# "hobbitclient" runs the Xymon client. The client is installed
automatically # when you install a Xymon server (presumably, you do want
to monitor the # Xymon server ?), but there's no need to have two
hobbitlaunch instances # running at the same time. So we'll just run it
from here.
# Note: If you are using another client package, you should disable this
one.

[hobbitclient]
        ENVFILE /opt/xymon-4.2.3/client/etc/hobbitclient.cfg
        NEEDS hobbitd
        CMD /opt/xymon-4.2.3/client/bin/hobbitclient.sh
        LOGFILE $BBSERVERLOGS/hobbitclient.log
        INTERVAL 5m

I checked to see where this LOGFILE is supposed to be going:
BBSERVERLOGS="/opt/xymon-4.2.3/log"

So I looked in there:
ls -la /opt/xymon-4.2.3/log/
total 3228
drwxr-xr-x   2 xymon    daemon       512 Jan 13 15:48 .
drwxr-xr-x   9 root     root         512 Sep 16  2009 ..
-rw-r--r--   1 xymon    daemon   1550037 Dec 23 15:47 bb-network.log
-rw-r--r--   1 xymon    daemon     74080 Jul 26 16:39 bb-retest.log
-rw-r--r--   1 xymon    daemon      9314 Jan 13 15:48 hobbitlaunch.log
-rw-r--r--   1 xymon    daemon         5 Jan 13 15:48 hobbitlaunch.pid

No such file. So I checked the hobbitlaunch.log sitting here:

2011-01-13 15:48:06 hobbitlaunch starting
2011-01-13 15:48:06 Loading tasklist configuration from
/opt/xymon-4.2.3/server/etc/hobbitlaunch.cfg

That file exists, as I copied the above [hobbitclient] section out of
t.The last thing I can think of is that maybe $BBSERVERLOGS is not
defined in the context in which it is needed. Beyond that, I'm totally
out of ideas. It appears as if this section is completely ignored. On
both of my machines, if I don't start the client (by changing to the
client directory and doing ./runclient.sh start), it doesn't get
started.

Any clues?
****************************************************************************

The information contained in this email is intended only for the use of
the intended recipient at the email address to which it has been
addressed. If the reader of this message is not an intended recipient,
you are hereby notified that you have received this document in error
and that any review, dissemination or copying of the message or
associated attachments is strictly prohibited. If you have received this
email in error, please contact the sender by return email or call 01793
877777 and ask for the sender and then delete it immediately from your
system.Please note that neither the RWE Group of Companies nor the
sender accepts any responsibility for viruses and it is your
responsibility to scan attachments (if any).

*****************************************************************************


- -- 
- ---- _  _ _  _ ___  _  _  _
|Y#| |  | |\/| |  \ |\ |  | |Ryan Novosielski - Sr. Systems Programmer
|$&| |__| |  | |__/ | \| _| |user-ae4522577e16@xymon.invalid - 973/972.0922 (2-0922)
\__/ Univ. of Med. and Dent.|IST/CST-Academic Svcs. - ADMC 450, Newark
-----BEGIN PGP SIGNATURE-----

Version: GnuPG v2.0.14 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAk0weHgACgkQmb+gadEcsb5DvgCg1uBT2OIUwK1JNqG65CcwEnZK
/iwAn3qopdf31xzQBzb/7wL6Z7MQb9WB
=YeIk
-----END PGP SIGNATURE-----
list Ryan Novosielski · Fri, 14 Jan 2011 12:26:46 -0500 ·
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

This did the trick. THANKS!
quoted from Ryan Novosielski

On 1/14/2011 9:55 AM, Ryan Novosielski wrote:
Ah! Yes it is. It did not occur to me that the network test machines
didn't run hobbitd. I will give that a try.

Note that I can't get the machine that DOES run hobbitd to work right in
this regard either, but I'll ask another question about that if need be.

-- Sent from my Palm Pre

On Jan 14, 2011 6:58, Henrik Størner <user-ce4a2c883f75@xymon.invalid> wrote:

In <user-5dbee792cf6d@xymon.invalid> Ryan Novosielski <user-ae4522577e16@xymon.invalid>
writes:
[hobbitclient]
ENVFILE /opt/xymon-4.2.3/client/etc/hobbitclient.cfg
NEEDS hobbitd
CMD /opt/xymon-4.2.3/client/bin/hobbitclient.sh
LOGFILE $BBSERVERLOGS/hobbitclient.log
INTERVAL 5m
I checked to see where this LOGFILE is supposed to be going:
BBSERVERLOGS="/opt/xymon-4.2.3/log"
So I looked in there:
ls -la /opt/xymon-4.2.3/log/
total 3228
drwxr-xr-x 2 xymon daemon 512 Jan 13 15:48 .
drwxr-xr-x 9 root root 512 Sep 16 2009 ..
- -rw-r--r-- 1 xymon daemon 1550037 Dec 23 15:47 bb-network.log
- -rw-r--r-- 1 xymon daemon 74080 Jul 26 16:39 bb-retest.log
- -rw-r--r-- 1 xymon daemon 9314 Jan 13 15:48 hobbitlaunch.log
- -rw-r--r-- 1 xymon daemon 5 Jan 13 15:48 hobbitlaunch.pid
No such file.

The "NEEDS hobbitd" line means that the "hobbitd" task must be started,
before "hobbitclient" will run. Since there is no "hobbitd.log" in
that directory either, I assume you have disabled the "hobbitd" task.
Perhaps this is a server that only runs network tests ?

Anyway, remove the "NEEDS hobbitd" line, and it should start up
just fine.


Regards,
Henrik

- -- 
- ---- _  _ _  _ ___  _  _  _
|Y#| |  | |\/| |  \ |\ |  | |Ryan Novosielski - Sr. Systems Programmer
|$&| |__| |  | |__/ | \| _| |user-ae4522577e16@xymon.invalid - 973/972.0922 (2-0922)
\__/ Univ. of Med. and Dent.|IST/CST-Academic Svcs. - ADMC 450, Newark
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.14 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAk0wh1YACgkQmb+gadEcsb7qpwCfUOMlwq+29xJlrgMWwQgEoByP
A4YAoLLVlGKoctPQsGd0M+dp+6GHyh7g
=F2tn
-----END PGP SIGNATURE-----