Xymon Mailing List Archive search

trigger linux clients to download scripts from server

2 messages in this thread

list Kris Springer · Sat, 9 Jun 2018 10:12:17 -0700 ·
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

list Andy Smith · Sat, 9 Jun 2018 21:19:57 +0100 ·
quoted from Kris Springer
On 9 June 2018 at 18:12, Kris Springer <user-c2caa0a7a8d5@xymon.invalid> 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