local mode client
list Tracy di Marco White
One of my co-workers has installed xymon 4.3.7, and wants to use local
mode for configuration. The display server is not receiving anything
from his machine if things run normally, but when run by hand, xymon
can send data from his server (Solaris) to the display server. I
enabled xymond_client --debug in xymonclient.sh:
if test "$LOCALMODE" = "yes"; then
echo "@@" >> $MSGTMPFILE
$XYMONHOME/bin/xymond_client --debug --local
--config=$XYMONHOME/etc/localclient
.cfg <$MSGTMPFILE
And now I'm getting this:
+ ../bin/xymond_client --debug --local --config=../etc/localclient.cfg
11655 2012-02-14 16:20:29 Want msg 1, startpos 0, fillpos 0, endpos
-1, usedbytes=0, bufleft=528383
11655 2012-02-14 16:20:29 Got 161874 bytes
11655 2012-02-14 16:20:29 ../bin/xymond_client: Got message 1
@client#1|0|127.0.0.1|neptune.lib.iastate.edu|sunos
11655 2012-02-14 16:20:29 startpos 161874, fillpos 161874, endpos -1
11655 2012-02-14 16:20:29 Opening file ../etc/localclient.cfg
11655 2012-02-14 16:20:29 Compiling regex ^/zones.*/
11655 2012-02-14 16:20:29 Client report from host neptune.lib.iastate.edu
11655 2012-02-14 16:20:29 neptune.lib.iastate.edu: Duplicate client
message at time 0, seq 1, lastseq 0
11655 2012-02-14 16:20:29 Want msg 2, startpos 161874, fillpos 161874,
endpos -1, usedbytes=0, bufleft=366509
11655 2012-02-14 16:20:29 get_xymond_message: Returning NULL due to EOF
+ rm -f ../tmp/msg.neptune.lib.iastate.edu.txt
I'm not sure where to go from here. Does local mode still work for most people?
-Tracy
list Tracy di Marco White
Is a xymon client in local mode expected to work? On Tue, Feb 14, 2012 at 4:31 PM, Tracy Di Marco White
▸
<user-4d3c8321d54f@xymon.invalid> wrote:One of my co-workers has installed xymon 4.3.7, and wants to use local mode for configuration. The display server is not receiving anything from his machine if things run normally, but when run by hand, xymon can send data from his server (Solaris) to the display server. I enabled xymond_client --debug in xymonclient.sh: if test "$LOCALMODE" = "yes"; then echo "@@" >> $MSGTMPFILE $XYMONHOME/bin/xymond_client --debug --local --config=$XYMONHOME/etc/localclient .cfg <$MSGTMPFILE And now I'm getting this: + ../bin/xymond_client --debug --local --config=../etc/localclient.cfg 11655 2012-02-14 16:20:29 Want msg 1, startpos 0, fillpos 0, endpos -1, usedbytes=0, bufleft=528383 11655 2012-02-14 16:20:29 Got 161874 bytes 11655 2012-02-14 16:20:29 ../bin/xymond_client: Got message 1 @client#1|0|127.0.0.1|neptune.lib.iastate.edu|sunos 11655 2012-02-14 16:20:29 startpos 161874, fillpos 161874, endpos -1 11655 2012-02-14 16:20:29 Opening file ../etc/localclient.cfg 11655 2012-02-14 16:20:29 Compiling regex ^/zones.*/ 11655 2012-02-14 16:20:29 Client report from host neptune.lib.iastate.edu 11655 2012-02-14 16:20:29 neptune.lib.iastate.edu: Duplicate client message at time 0, seq 1, lastseq 0 11655 2012-02-14 16:20:29 Want msg 2, startpos 161874, fillpos 161874, endpos -1, usedbytes=0, bufleft=366509 11655 2012-02-14 16:20:29 get_xymond_message: Returning NULL due to EOF + rm -f ../tmp/msg.neptune.lib.iastate.edu.txt I'm not sure where to go from here. Does local mode still work for most people? -Tracy
list Guillaume Chanel
Hello, I might have found a solution to this old report. Actually the solution was given by the person hosting: http://terabithia.org/rpms/xymon/ So it consisted in changing the line in xymonclient.sh echo "@@client#1|0|127.0.0.1|$MACHINEDOTS|$SERVEROSTYPE" >> $MSGTMPFILE to echo "@@client#1|1|127.0.0.1|$MACHINEDOTS|$SERVEROSTYPE" >> $MSGTMPFILE And then data was sent to the server. Not sure what is going on here but that could help. Guillaume