'xymond' in tasks.cfg?
list David Mills
All - In the process of trying to debug a problem, I've run across two questions about how xymond functions on servers... 1) I started adding in the '--debug' flag to xymond in the .../etc/tasks.cfg file ([xymond] stanza), only to notice that after restarting Xymon, 'xymond' did not have any of the new args, including '--debug'! I know from the documentation that xymonlaunch starts up xymond, but why isn't it using the params in the tasks.cfg? Where is it getting its parameter list from then? 2) In this posting from years gone-by, Henrik said: (from: http://lists.xymon.com/archive/2008-April/018734.html) All of the daemon programs (hobbitd, the various hobbitd_channel handlers etc.) support sending a SIGUSR2 signal to toggle debugging on/off. Henrik === And yet, when I try to turn on debugging on 'xymond', I see nothing in the xymond.log file... (This *is* where the debugging output should manifest, right?) TIA! david ~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~ David Mills Systems Administrator Northrop Grumman (XXX) XXX-XXXX (mobile)
list John Thurston
▸
On 12/14/2016 1:12 PM, Mills,David (HHSC Contractor) wrote:
1) I started adding in the ‘--debug' flag to xymond in the …/etc/tasks.cfg file ([xymond] stanza), only to notice that after restarting Xymon, ‘xymond’ did not have any of the new args, including ‘--debug'! I know from the documentation that xymonlaunch starts up xymond, but why isn’t it using the params in the tasks.cfg? Where is it getting its parameter list from then?
I suspect a syntax problem in the tasks.cfg Where on the line did you place the --debug ? Remember the "CMD" line is a single line, though frequently continued. For example, my "line" looks like:
CMD xymond --pidfile=$XYMONSERVERLOGS/xymond.pid \
--restart=$XYMONTMP/xymond.chk --checkpoint-file=$XYMONTMP/xymond.chk --checkpoint-interval=600 \
--log=$XYMONSERVERLOGS/xymond.log \
--admin-senders=127.0.0.1,$XYMONSERVERIP \
. . .
What version of the software, and under what operating system is it
running? I've just confirmed it works as expected on 4.3.26 under
Solaris 10.
--
Do things because you should, not just because you can.
John Thurston XXX-XXX-XXXX
user-ce4d79d99bab@xymon.invalid
Enterprise Technology Services
Department of Administration
State of Alaska
list David Mills
Hey, thx, John... That was exactly the problem -- lack of back-whacks half-way down the param list. Apparently Xymon just ignored the rest of the param lines... :-)
▸
-----Original Message-----
From: Xymon [mailto:xymon-bounces at xymon.com] On Behalf Of John Thurston
Sent: Thursday, December 15, 2016 3:27 PM
To: xymon at xymon.com
Subject: Re: [Xymon] 'xymond' in tasks.cfg?
On 12/14/2016 1:12 PM, Mills,David (HHSC Contractor) wrote:1) I started adding in the ‘--debug' flag to xymond in the …/etc/tasks.cfg file ([xymond] stanza), only to notice that after restarting Xymon, ‘xymond’ did not have any of the new args, including ‘--debug'! I know from the documentation that xymonlaunch starts up xymond, but why isn’t it using the params in the tasks.cfg? Where is it getting its parameter list from then?
I suspect a syntax problem in the tasks.cfg Where on the line did you place the --debug ? Remember the "CMD" line is a single line, though frequently continued. For example, my "line" looks like:
CMD xymond --pidfile=$XYMONSERVERLOGS/xymond.pid \
--restart=$XYMONTMP/xymond.chk --checkpoint-file=$XYMONTMP/xymond.chk --checkpoint-interval=600 \
--log=$XYMONSERVERLOGS/xymond.log \
--admin-senders=127.0.0.1,$XYMONSERVERIP \ . . .
What version of the software, and under what operating system is it running? I've just confirmed it works as expected on 4.3.26 under Solaris 10.
--
Do things because you should, not just because you can.
John Thurston XXX-XXX-XXXX
user-ce4d79d99bab@xymon.invalid
Enterprise Technology Services
Department of Administration
State of Alaska