--debug not working for xymonlaunch?
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 512-595-1238 david.mills at ngc.com
...
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...
... /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
Thx, JC!
;-)
-----Original Message----- From: cleaver at terabithia.org [mailto:cleaver at terabithia.org] 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
participants (2)
-
cleaver@terabithia.org
-
David.Mills@ngc.com