<html><body><p><font size="2" face="Courier 10 Pitch">Hm,</font><br><font size="2" face="Courier 10 Pitch">this was a tricky one, but Thomas pointed me to the environment check which then leads to the solution. Thanks!</font><br><font size="2" face="Courier 10 Pitch">I double checked the env for the xymon:</font><br><br><font size="2" face="Courier 10 Pitch">$ xymoncmd /usr/bin/env | egrep -i home</font><br><font size="2" face="Courier 10 Pitch">PATH=</font><b><font size="2" face="Courier 10 Pitch">/home/xymon/client/bin</font></b><font size="2" face="Courier 10 Pitch">:/bin:/usr/bin:/sbin:/usr/sbin:/etc</font><br><font size="2" face="Courier 10 Pitch">PWD=/home/xymon</font><br><font size="2" face="Courier 10 Pitch">HOME=/home/xymon</font><br><font size="2" face="Courier 10 Pitch">_=/home/xymon/server/bin/xymoncmd</font><br><b><font size="2" face="Courier 10 Pitch">XYMONHOME=/home/xymon/client</font></b><br><font size="2" face="Courier 10 Pitch">XYMONCLIENTHOME=/home/xymon/client</font><br><font size="2" face="Courier 10 Pitch">XYMON=/home/xymon/client/bin/xymon</font><br><font size="2" face="Courier 10 Pitch">XYMONTMP=/home/xymon/client/tmp</font><br><font size="2" face="Courier 10 Pitch">XYMONCLIENTLOGS=/home/xymon/client/logs</font><br><font size="2" face="Courier 10 Pitch">XYMONRUNDIR=/home/xymon/client/logs</font><br><font size="2" face="Courier 10 Pitch">LOCAL_CLIENTCONFIG=/home/xymon/client/etc/localclient.cfg</font><br><font size="2" face="Courier 10 Pitch">LOCAL_LOGFETCHCFG=/home/xymon/client/etc/logfetch.cfg</font><br><font size="2" face="Courier 10 Pitch">HOBBITCLIENTHOME=/home/xymon/client</font><br><font size="2" face="Courier 10 Pitch">BBHOME=/home/xymon/client</font><br><font size="2" face="Courier 10 Pitch">BB=/home/xymon/client/bin/xymon</font><br><font size="2" face="Courier 10 Pitch">BBTMP=/home/xymon/client/tmp</font><br><font size="2" face="Courier 10 Pitch">BBCLIENTLOGS=/home/xymon/client/logs</font><br><br><font size="2" face="Courier 10 Pitch">XYMONHOME points to the client dir, even if in xymonserver.cfg is defined:</font><br><font size="2" face="Courier 10 Pitch">XYMONHOME="/home/xymon/server"                          # The Xymon server directory, where programs and configurations </font><br><br><font size="2" face="Courier 10 Pitch">So the serverprogs use the binaries from the client?</font><br><font size="2" face="Courier 10 Pitch">This also explains why some commands were not found or only worked with relative path, because they do not exist in a usual client bin dir.</font><br><br><font size="2" face="Courier 10 Pitch">It was a fresh compiled xymon, so i checked the binaries.</font><br><font size="2" face="Courier 10 Pitch">I then found out that the XYMONHOME is compiled into the binaries. During manual copy of the different progs into the client and server bin dirs (it is a hardened environment were i don't have root access even for xymon install) obviously i mixed up some client binaries into server bindir.</font><br><font size="2" face="Courier 10 Pitch">This then leads to those strange effects.</font><br><font size="2" face="Courier 10 Pitch">Now i replaced the server bins with the ones from the common dir in source tree, and all is good.</font><br><br><font size="2" face="Courier 10 Pitch">$ xymoncmd /usr/bin/env | egrep -i home</font><br><font size="2" face="Courier 10 Pitch">PATH=</font><b><font size="2" face="Courier 10 Pitch">/home/xymon/server/bin</font></b><font size="2" face="Courier 10 Pitch">:/usr/local/bin:/usr/sbin:/usr/bin:/bin</font><br><font size="2" face="Courier 10 Pitch">PWD=/home/xymon/server/logs</font><br><font size="2" face="Courier 10 Pitch">HOME=/home/xymon</font><br><font size="2" face="Courier 10 Pitch">_=/home/xymon/server/bin/xymoncmd</font><br><font size="2" face="Courier 10 Pitch">OLDPWD=/home/xymon</font><br><font size="2" face="Courier 10 Pitch">XYMONHOME=</font><b><font size="2" face="Courier 10 Pitch">/home/xymon/server</font></b><br><font size="2" face="Courier 10 Pitch">XYMONCLIENTHOME=/home/xymon/client</font><br><font size="2" face="Courier 10 Pitch">XYMONSERVERROOT=/home/xymon/server</font><br><font size="2" face="Courier 10 Pitch">XYMONSERVERLOGS=/home/xymon/server/logs</font><br><font size="2" face="Courier 10 Pitch">XYMONRUNDIR=/home/xymon/server/run</font><br><font size="2" face="Courier 10 Pitch">XYMONTMP=/home/xymon/server/tmp</font><br><font size="2" face="Courier 10 Pitch">HOSTSCFG=/home/xymon/server/etc/hosts.cfg</font><br><font size="2" face="Courier 10 Pitch">XYMON=/home/xymon/server/bin/xymon</font><br><br><font size="2" face="Courier 10 Pitch">I wonder if it is necessary to have those path hardcoded, or if this can be replaced by generally using the environment vars?</font><br><font size="2" face="Courier 10 Pitch">Then we don't need to deal with different binaries for client and server with the same name.</font><br><br><font size="2" face="Courier 10 Pitch">But as always, thx for the great tool and the help of the community!</font><br><font size="2" face="Courier 10 Pitch">Norbert</font><br><br><br><img width="16" height="16" src="cid:1__=4EBB0B2CDFADAAD48f9e8a93df938690918c4EB@" border="0" alt="Inactive hide details for Norbert Kriegenburg---19/10/2017 18:19:24---Hi Thomas, thank you for your hints."><font size="2" color="#424282">Norbert Kriegenburg---19/10/2017 18:19:24---Hi Thomas, thank you for your hints.</font><br><br><font size="2" color="#5F5F5F">From:        </font><font size="2">Norbert Kriegenburg/Germany/IBM</font><br><font size="2" color="#5F5F5F">To:        </font><font size="2">Thomas Eckert <thomas.eckert@it-eckert.de></font><br><font size="2" color="#5F5F5F">Cc:        </font><font size="2">xymon <xymon@xymon.com></font><br><font size="2" color="#5F5F5F">Date:        </font><font size="2">19/10/2017 18:19</font><br><font size="2" color="#5F5F5F">Subject:        </font><font size="2">Re: [Xymon] no client results arrive, lot of TIME_WAIT at server</font><br><hr width="100%" size="2" align="left" noshade style="color:#8091A5; "><br><br><font size="2" face="Courier 10 Pitch">Hi Thomas,</font><br><br><font size="2" face="Courier 10 Pitch">thank you for your hints.</font><br><font size="2" face="Courier 10 Pitch">Lets go through your suggestions:</font><br><br><font size="2" face="Courier 10 Pitch">- you were right with the INTERVAL. This was added by accident, but doesn't harm (no more channels are started), removed, no effect</font><br><font size="2" face="Courier 10 Pitch">- yes, server process was restartet at 5:13am </font><b><font size="2" face="Courier 10 Pitch">UTC</font></b><br><br><font size="2" face="Courier 10 Pitch">1.</font><br><font size="2" face="Courier 10 Pitch">- environment looks as expected:</font><br><font size="2" face="Courier 10 Pitch">$ xymoncmd /usr/bin/env | egrep -i 'xymsrv|xymonservers|bbdisp'</font><br><font size="2" face="Courier 10 Pitch">XYMONSERVERS=10.137.56.43</font><br><font size="2" face="Courier 10 Pitch">XYMSRV=10.137.56.43</font><br><font size="2" face="Courier 10 Pitch">BBDISP=10.137.56.43</font><br><font size="2" face="Courier 10 Pitch">BBDISPLAYS=10.137.56.43</font><br><br><font size="2" face="Courier 10 Pitch">2. <br>- unfortunately i don't have root access here for a tcpdump</font><br><br><font size="2" face="Courier 10 Pitch">3. </font><br><font size="2" face="Courier 10 Pitch">- now it gets strange:<br>if i try your suggestion i get this (doublechecked at other server and the syntax works ok):</font><br><font size="2" face="Courier 10 Pitch"><br>$ xymoncmd xymond_channel --channel=client cat</font><br><font size="2" face="Courier 10 Pitch">2017-10-19 15:58:58.843500 execvp() failed: No such file or directory</font><br><font size="2" face="Courier 10 Pitch">(but of curse xymoncmd is in the path)<br></font><br><font size="2" face="Courier 10 Pitch">if i try with relative path i get this (run from bin path):<br>$ ./xymoncmd ./xymond_channel --channel=client cat</font><br><font size="2" face="Courier 10 Pitch">2017-10-19 16:01:02.173601 Could not get shm of size 524288: No such file or directory</font><br><font size="2" face="Courier 10 Pitch">2017-10-19 16:01:02.173943 Channel not available</font><br><br><font size="2" face="Courier 10 Pitch">some of these messages i can find in some logs:</font><br><br><font size="2" face="Courier 10 Pitch">$ grep "Could not get shm" *<br>alert.log:2017-10-19 10:38:00.733526 Could not get shm of size 1048576: No such file or directory</font><br><font size="2" face="Courier 10 Pitch">history.log:2017-10-19 10:38:00.730686 Could not get shm of size 1048576: No such file or directory</font><br><font size="2" face="Courier 10 Pitch">hostdata.log:2017-10-19 10:38:00.730538 Could not get shm of size 524288: No such file or directory</font><br><font size="2" face="Courier 10 Pitch">rrd-data.log:2017-10-19 10:38:00.734198 Could not get shm of size 524288: No such file or directory</font><br><br><font size="2" face="Courier 10 Pitch">I searched the web for those messages, and found some in hobbit/xymon mailing list, but no details or solution.</font><br><a href="http://lists.xymon.com/oldarchive/2008/06/msg00183.html"><font size="2" face="Courier 10 Pitch">http://lists.xymon.com/oldarchive/2008/06/msg00183.html</font></a><br><br><font size="2" face="Courier 10 Pitch">But: the client messages from server still arrive and the tests are all visible...</font><br><font size="2" face="Courier 10 Pitch">very strange</font><br><br><font size="2" face="Courier 10 Pitch">Norbert</font><br><br><br><br><br><img width="16" height="16" src="cid:1__=4EBB0B2CDFADAAD48f9e8a93df938690918c4EB@" border="0" alt="Inactive hide details for Thomas Eckert ---19/10/2017 16:42:24---> On 19 Oct 2017, at 14:49, Norbert Kriegenburg <norbert.krieg"><font size="2" color="#424282">Thomas Eckert ---19/10/2017 16:42:24---> On 19 Oct 2017, at 14:49, Norbert Kriegenburg <norbert.kriegenburg@de.ibm.com> wrote: ></font><br><br><font size="2" color="#5F5F5F">From:        </font><font size="2">Thomas Eckert <thomas.eckert@it-eckert.de></font><br><font size="2" color="#5F5F5F">To:        </font><font size="2">xymon <xymon@xymon.com></font><br><font size="2" color="#5F5F5F">Date:        </font><font size="2">19/10/2017 16:42</font><br><font size="2" color="#5F5F5F">Subject:        </font><font size="2">Re: [Xymon] no client results arrive, lot of TIME_WAIT at server</font><br><font size="2" color="#5F5F5F">Sent by:        </font><font size="2">"Xymon" <xymon-bounces@xymon.com></font><br><hr width="100%" size="2" align="left" noshade style="color:#8091A5; "><br><br>
<ul><ul>On 19 Oct 2017, at 14:49, Norbert Kriegenburg <<a href="mailto:norbert.kriegenburg@de.ibm.com"><u><font color="#0000FF">norbert.kriegenburg@de.ibm.com</font></u></a>> wrote:<br>
<p><font size="2">Yes,<br>that's what i checked at first. But i assume that also the info from the servers own client data are captured by the same client channel listener, and that obviously works.</font></ul></ul>valid point
<ul><ul><font size="2">Nothing in the clientdata.log, even if i activate the DEBUG mode with a<br>kill -USR2 PID<br><br>My clientdata section:<br># The client back-end module. You need this if you are running the Xymon client on any system.<br>[clientdata]<br>ENVFILE $XYMONSERVERHOME/etc/xymonserver.cfg<br>NEEDS xymond<br>CMD /home/xymon/server/bin/xymond_channel --channel=client \<br>--log=$XYMONSERVERLOGS/clientdata.log xymond_client \<br>--no-clear-files \<br>--no-clear-ports \<br>--no-port-listing \<br>--uptime-status<br>INTERVAL 2m</font></ul></ul>The `INTERVAL` here is not im my and <a href="http://xymon.com/"><u><font color="#0000FF">xymon.com</font></u></a>’s-version of tasks.cfg— not sure if it does harm (it _may_ try to start a new channel every 2 minutes).
<ul><ul><font size="2">ps listing:<br>$ ps -ef|grep "xymond_channel --channel=client"|grep -v grep<br>xymon 18865 18705 0 05:13 ? 00:00:00 /home/xymon/server/bin/xymond_channel --channel=client --log=/home/xymon/server/logs/clientdata.log xymond_client --no-clear-files --no-clear-ports --no-port-listing --uptime-status</font></ul></ul>If this process does not change it should be fine; your xymon server was restarted 5:13 this morning?
<ul><ul><font size="2">I have a lot of TIME_WAITS from time to time, no idea why this goes up and down:</font><br><font size="2"><br>$ netstat -atn|grep 1984<br>tcp 0 0 0.0.0.0:1984 0.0.0.0:* LISTEN<br>tcp 0 0 10.137.56.43:37752 10.137.56.43:1984 TIME_WAIT<br>tcp 0 0 10.137.56.43:37822 10.137.56.43:1984 TIME_WAIT<br>...</font><br><font size="2"><br>10.137.56.43 is the Xymon server IP.<br><br>$ netstat -atn|grep 1984|wc -l<br>165<br>(sometimes much much more)<br><br>(But goes down to 7 after some mins)</font></ul></ul>Looks like internal xymon-communication. As long as the TIME_WAIT-count does not go >20k  that should not be the cause.<br><br>Thing’s I’d try from here:<br><br>1. double-check the XYMSRV / XYMONSERVERS setting on the client(s), e.g. with:<br><br>xymoncmd /usr/bin/env | egrep -i 'xymsrv|xymonservers|bbdisp’<br><br>2. just to double-check: tcpdump on xymon server and a client to check for tcp/1984 communication<br><br>3. run a channel-listener an the server to see if the client messages (other than the ones from the local client) make it <br><br>xymoncmd xymond_channel --channel=client cat | grep ‘^client '<br>xymoncmd xymond_channel --channel=client cat<br><br>The latter might be very noisy — the former just prints the “header”/1st line of each connection.<br>There should be one message for each client sending data every 5 minutes.<br><br>HTH<br>Thomas
<ul><ul><graycol.gif><font size="2" color="#424282">Thomas Eckert ---19/10/2017 11:14:56---Norbert, I assume your manual (BB way) is something like `xymon 1.2.3.4 “status example.com.test …”`</font><br><font size="2" color="#5F5F5F"><br>From: </font><font size="2">Thomas Eckert <</font><a href="mailto:thomas.eckert@it-eckert.de"><u><font size="2" color="#0000FF">thomas.eckert@it-eckert.de</font></u></a><font size="2">></font><font size="2" color="#5F5F5F"><br>To: </font><font size="2">xymon <</font><a href="mailto:xymon@xymon.com"><u><font size="2" color="#0000FF">xymon@xymon.com</font></u></a><font size="2">></font><font size="2" color="#5F5F5F"><br>Date: </font><font size="2">19/10/2017 11:14</font><font size="2" color="#5F5F5F"><br>Subject: </font><font size="2">Re: [Xymon] no client results arrive, lot of TIME_WAIT at server</font><font size="2" color="#5F5F5F"><br>Sent by: </font><font size="2">"Xymon" <</font><a href="mailto:xymon-bounces@xymon.com"><u><font size="2" color="#0000FF">xymon-bounces@xymon.com</font></u></a><font size="2">></font><p><hr width="100%" size="2" align="left" noshade style="color:#000000; "><br><br><br>Norbert,<br><br>I assume your manual (BB way) is something like `xymon 1.2.3.4 “status example.com.test …”`.<br><br>The xymon-client send `clientdata` that is processed by a “channel listener” and _that_ sends status-messages similar to above (a bit simplified).<br><br>That channel-listener may not be running/crashing:<br>Check our `tasks.cfg` for the section `[clientdata]` and verify, if the `xymond_channel`-process is running (I suspect it’s not). Maybe the `clientdata.log` helps with debugging. You may also run the task manually to get further information.<br><br>What’s your problem with the "lot of TIME_WAIT”? Are these just for tcp/1984-connections?<br><br>Cheers<br>Thomas
<ul><ul><ul><ul>On 19 Oct 2017, at 07:30, Norbert Kriegenburg <<a href="mailto:norbert.kriegenburg@de.ibm.com"><u><font color="#0000FF">norbert.kriegenburg@de.ibm.com</font></u></a>> wrote:
<p><font size="2" face="Courier 10 Pitch">experts,<br><br>i have a new (not my first) Xymon installation (4.3.28 on RH 7.4, self compiled).<br>All looks good, but the clients only show the network tests (conn, ssh). Only the Xymon server itself shows everything (disk, cpu,...).<br>- all clients are RH 7.4, same install image used (i just copied over the client part with client config, create a cronjob for automatic start, so no root access nor extra install needed)<br>- nothing suspicious in server or client logs (even in debug mode)<br>- no ghosts<br>- if i send a test manually (the old BB way) this shows at Xymon immediately (so the client settings are ok)<br>- if i shutdown the xymond at server, the client logs complains:<br><br>2017-10-19 05:09:18.051994 Whoops ! Failed to send message (Connection failed)<br>2017-10-19 05:09:18.052104 -> Could not connect to Xymon </font><a href="mailto:daemon@10.137.56.43"><u><font size="2" color="#0000FF" face="Courier 10 Pitch">daemon@10.137.56.43</font></u></a><font size="2" face="Courier 10 Pitch">:1984 (Connection refused)<br><br>(so obviously they communicate)<br><br>Querying the xymond shows:<br>xymon 127.0.0.1 "query clientname.ssh"<br>green <!-- [flags:OrdastLe] --> Thu Oct 19 05:21:29 2017 ssh ok<br>is ok, but<br>xymon 127.0.0.1 "query clientname.disk"<br>shows nothing<br><br>Any ideas?<br><br>Norbert</font><p>_______________________________________________<br>Xymon mailing list<u><font color="#0000FF"><br></font></u><a href="mailto:Xymon@xymon.com"><u><font color="#0000FF">Xymon@xymon.com</font></u></a><u><font color="#0000FF"><br></font></u><a href="http://lists.xymon.com/mailman/listinfo/xymon"><u><font color="#0000FF">http://lists.xymon.com/mailman/listinfo/xymon</font></u></a></ul></ul></ul></ul><tt><font size="2">_______________________________________________<br>Xymon mailing list</font></tt><tt><u><font size="2" color="#0000FF"><br></font></u></tt><a href="mailto:Xymon@xymon.com"><tt><u><font size="2" color="#0000FF">Xymon@xymon.com</font></u></tt></a><tt><u><font size="2" color="#0000FF"><br></font></u></tt><a href="http://lists.xymon.com/mailman/listinfo/xymon"><tt><u><font size="2" color="#0000FF">http://lists.xymon.com/mailman/listinfo/xymon</font></u></tt></a><br><br><br><br><br>_______________________________________________<br>Xymon mailing list<u><font color="#0000FF"><br></font></u><a href="mailto:Xymon@xymon.com"><u><font color="#0000FF">Xymon@xymon.com</font></u></a><br><a href="http://lists.xymon.com/mailman/listinfo/xymon">http://lists.xymon.com/mailman/listinfo/xymon</a></ul></ul><tt><font size="2">_______________________________________________<br>Xymon mailing list<br>Xymon@xymon.com<br></font></tt><tt><font size="2"><a href="http://lists.xymon.com/mailman/listinfo/xymon">http://lists.xymon.com/mailman/listinfo/xymon</a></font></tt><tt><font size="2"><br></font></tt><br><br><br><BR>
</body></html>