Xymon Mailing List Archive search

--debug not working for xymonlaunch?

4 messages in this thread

list David Mills · Thu, 4 Apr 2013 14:49:04 +0000 ·
Hello, All...

We have a nasty problem ongoing flapping problem with our network-based tests (e.g. HTTP/SSH/DNS/etc. - see http://lists.xymon.com/archive/2013-March/037071.html) and last night I tried to use the "--debug" flag on "xymonlaunch". Unfortunately, nothing got sent to any files and nothing extra happened on STDOUT.

What did I do wrong?

Xymon 4.3.3 -

Updated "xymon.sh" like this:

...
/export/xymon-4.3.3/server/bin/xymonlaunch \
--config=/export/xymon-4.3.3/server/etc/tasks.cfg \
--env=/export/xymon-4.3.3/server/etc/xymonserver.cfg
--log=/var/log/xymon-4.3.3/xymonlaunch.log \
--pidfile=/var/log/xymon-4.3.3/xymonlaunch.pid \
--debug=/var/log/Xymon/xymonlaunch-debug.log            # This last switch was the addition
        echo "Xymon started"

~~~
Did a "xymon.sh restart" (several times) and no log file. Then I tried removing the "=....log" , with just the "... --debug" and stopped/restarted things. All with no success.
Any ideas?

Thanks!

david

~~~~~~~~~~~~~~~~~~~
David Mills
Systems Administrator
Northrop Grumman
XXX-XXX-XXXX
user-eb64c112f0e9@xymon.invalid
list David Mills · Thu, 4 Apr 2013 15:02:11 +0000 ·
quoted from David Mills
...

Updated "xymon.sh" like this:

...
/export/xymon-4.3.3/server/bin/xymonlaunch \
--config=/export/xymon-4.3.3/server/etc/tasks.cfg \
--env=/export/xymon-4.3.3/server/etc/xymonserver.cfg
--log=/var/log/xymon-4.3.3/xymonlaunch.log \
--pidfile=/var/log/xymon-4.3.3/xymonlaunch.pid \
--debug=/var/log/Xymon/xymonlaunch-debug.log            # This last switch was the addition
        echo "Xymon started"

~~~

Just noticed in my above-posting the absence of a "\" char after the ".../xymonserver.cfg " line. This was not missing when I executed the commands last night: sorry for the oversight in the posting...
list Japheth Cleaver · Thu, 4 Apr 2013 16:03:11 -0000 (UTC) ·
quoted from David Mills
...
/export/xymon-4.3.3/server/bin/xymonlaunch \
--config=/export/xymon-4.3.3/server/etc/tasks.cfg \
--env=/export/xymon-4.3.3/server/etc/xymonserver.cfg
--log=/var/log/xymon-4.3.3/xymonlaunch.log \
--pidfile=/var/log/xymon-4.3.3/xymonlaunch.pid \
--debug=/var/log/Xymon/xymonlaunch-debug.log            # This last switch
was the addition
        echo "Xymon started"

~~~
Did a "xymon.sh restart" (several times) and no log file. Then I tried
removing the "=....log" , with just the "... --debug" and
stopped/restarted things. All with no success.
Any ideas?

Thanks!

david

Simply a "--debug" is sufficient. The flag is set as soon as it's
encountered in the option list, so you should actually see output even
sooner if you put it first. Output should end up in xymonlaunch.log.

Also, for xymonlaunch I believe even in 4.3.3 sending it a -USR2 signal
will turn debugging on and off on the fly. Wherever it starts sending data
out to as a result of that should be where a '--debug' sends it to as
well.


HTH,
-jc
list David Mills · Thu, 4 Apr 2013 16:05:06 +0000 ·
Thx, JC!

;-)

-----Original Message-----
From: user-87556346d4af@xymon.invalid [mailto:user-87556346d4af@xymon.invalid] Sent: Thursday, April 04, 2013 11:03 AM
To: Mills, David (IS)
Cc: xymon at xymon.com
Subject: EXT :Re: [Xymon] --debug not working for xymonlaunch?
...
/export/xymon-4.3.3/server/bin/xymonlaunch \ --config=/export/xymon-4.3.3/server/etc/tasks.cfg \ --env=/export/xymon-4.3.3/server/etc/xymonserver.cfg
--log=/var/log/xymon-4.3.3/xymonlaunch.log \ --pidfile=/var/log/xymon-4.3.3/xymonlaunch.pid \
--debug=/var/log/Xymon/xymonlaunch-debug.log            # This last switch
was the addition
        echo "Xymon started"

~~~
Did a "xymon.sh restart" (several times) and no log file. Then I tried removing the "=....log" , with just the "... --debug" and stopped/restarted things. All with no success.
Any ideas?

Thanks!

david

Simply a "--debug" is sufficient. The flag is set as soon as it's encountered in the option list, so you should actually see output even sooner if you put it first. Output should end up in xymonlaunch.log.

Also, for xymonlaunch I believe even in 4.3.3 sending it a -USR2 signal will turn debugging on and off on the fly. Wherever it starts sending data out to as a result of that should be where a '--debug' sends it to as well.


HTH,
-jc