[Xymon] trigger linux clients to download scripts from server

Andy Smith abs at shadymint.com
Sat Jun 9 22:19:57 CEST 2018


On 9 June 2018 at 18:12, Kris Springer <kspringer at innovateteam.com> wrote:
>
> Anyone have a functioning way for the xymon server's client-local.cfg to trigger linux clients to download scripts into their ext folder?
>
>
> Thank you.
>
> ------------------------------------------------
>
> Kris Springer
>

#-------------------------------------------------------------------------------
# use this to demonstrate how to update a local client extension without
# needing to log into it.
#-------------------------------------------------------------------------------
file:`sum /apps/xymon/client/ext/xymon-prtdiag.ksh | grep '45529' >
/dev/null 2>&1 || (/apps/xymon/client/bin/xymon $XYMSRV "download
ext/xymon-prtdiag.ksh" > $XYMONTMP/xymon-prtdiag.ksh;sum
$XYMONTMP/xymon-prtdiag.ksh | grep '45529' > /dev/null 2>&1 && rm -f
$XYMONHOME/xymon-prtdiag.ksh && mv $XYMONTMP/xymon-prtdiag.ksh
$XYMONHOME/ext/xymon-prtdiag.ksh && chmod 755
$XYMONHOME/ext/xymon-prtdiag.ksh)`

#-------------------------------------------------------------------------------
-- 
Andy


More information about the Xymon mailing list