xymond option --merge-clientlocal and clientupdate
list Alexander Bech
Fri, 20 Jun 2014 13:22:41 +0200
Message-Id: <user-59f75e0ec991@xymon.invalid>
Hi Henrik,
If xymond is started with the "--merge-clientlocal" option
and returns more than one clientversion: lines then clientupdate on xymon client not works properly.
////According to the rule "host before class before os"
the following modificationof xymonclient.sh would be correct:
- SERVERVERSION=`grep "^clientversion:" $LOGFETCHCFG | cut -d: -f2`
+ SERVERVERSION=`grep "^clientversion:" $LOGFETCHCFG | cut -d: -f2 | head -n1`
In the xymond manpage must be also "--merge-clientlocal" instead of "--merge-clientconfig".
Thanks
Alex