<div dir="ltr">On 22 April 2013 14:54, Jeremy Laidman <span dir="ltr"><<a href="mailto:jlaidman@rebel-it.com.au" target="_blank">jlaidman@rebel-it.com.au</a>></span> wrote:<br><div class="gmail_extra"><div class="gmail_quote">

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div class="im"><span style="color:rgb(34,34,34)">config files on the Xymon server.  For example, something like this in client-local.cfg:</span><br>

</div><div class="gmail_extra"><div class="gmail_quote">
<div><br></div><div>log:`if [ -f /tmp/pw.rep ]; then if grep '^[0-9]' /tmp/pw.rep | tail -n +3 | grep ^ >/dev/null; then cp /dev/null /tmp/pw.rep; fi; diff /tmp/pw.old /etc/passwd >> /tmp/pw.rep; else touch /tmp/pw.rep; fi; cp /etc/passwd /tmp/pw.old; echo /tmp/pw.rep`:2048</div>


<div></div></div></div></div></blockquote><div><br></div><div style>and</div><div style> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div class="gmail_extra">

<div class="gmail_quote"><div>Note: untested.<br></div></div></div></div></blockquote><div><br></div><div style>This is now tested, and IMHO it works well.  The only problem is that the "TEXT=" modifier in analysis.cfg doesn't seem to work at all, and I just get the text "Warnings in /tmp/pw.rep" instead.  But it shows the accounts added or removed, which is the important thing.</div>

<div style><br></div><div style>J</div><div style><br></div></div></div></div>