On Monday, 8 July 2013, Root, Paul T  wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">





<div lang="EN-US" link="blue" vlink="purple">
<div>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">Why not just send the output to the server with the xymon command?</span></p></div></div></blockquote>
<div>Yeah, I like this idea.  The command can be sent as a supplementary client command like so:</div><div><br></div><div>*/5 * * * * ~xymon/client/bin/xymoncmd sh -c '{ echo client/dmraid $MACHINE; echo "[dmraid]"; /sbin/dmraid -r; } | $XYMON $XYMSRV @'</div>
<div><br></div><div>Then a script on the Xymon server can pull the dmraid output from the client data like so:</div><div><br></div><div>#!/bin/sh</div><div>DMRAID=`$XYMON $XYMSRV "clientlog name.of.host section=dmraid"`</div>
<div><br></div><div>This strategy means that all of the heavy lifting is done on the Xymon server, and the client needs only a fairly simple one-liner in a crontab.  Improvements to the script need only be applied to the Xymon server, instead of having to perform updates to (for some of us) dozens or more clients.</div>
<div><br></div><div>J</div><div><br></div>