On the client side, the only change was in /home/xymon/client/bin/xymonclient.sh.  See attached diff.  You'll need to fill in the destination server name.<div><br></div><div>On the server side, add the email alias to /etc/aliases and rebuild the db files:</div>
<div><br></div><div>     xymonmsg: |/usr/local/bin/xymonmsg.sh</div><div>     newaliases</div><div><br></div><div>Install the attached xymonmsg.sh script to match the above path.  Check permissions - it needs to be executable by your email receiver.</div>
<div><br></div><div>This is just a basic configuration.  Extra frills that could be added include:</div><div><br></div><div>     1) encrypt the payload, especially if you send logs.</div><div>     2) send a second message with a cryptographic signature for authentication</div>
<div>     3) add sequence numbers to the subject, then only accept a report with a higher number than the last, because emails are not guaranteed to arrive in the same order as they're sent.</div><div><br></div><div>Ralph Mitchell</div>
<div><br><div><div><br><div class="gmail_quote">On Sat, Mar 16, 2013 at 4:51 AM, Vernon Everett <span dir="ltr"><<a href="mailto:everett.vernon@gmail.com" target="_blank">everett.vernon@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Yes, I can see it.<br>It's working perfectly.<br>I forgot about using pipes and mail aliases, and my mind was darting off down the more difficult tracks.<br>
This is too easy.<br><br>So that Xymon server on you IP is receiving all it's status updates via email?<br>
Brilliant!<br><br>If you have any code snippets you can send me, it would be appreciated.<br>Thanks for bringing me back to the simple way of doing things.<br><br>Regards<span class="HOEnZb"><font color="#888888"><br>Vernon</font></span><div class="HOEnZb">
<div class="h5"><br><br><br><div class="gmail_quote">On 16 March 2013 15:16, Ralph Mitchell <span dir="ltr"><<a href="mailto:ralphmitchell@gmail.com" target="_blank">ralphmitchell@gmail.com</a>></span> wrote:<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div><div>my laptop, running the xymon client, delivering the standard status report via email to my server.  Both systems are on my home network.  The laptop is on a wifi link.  </div>

<div><br></div><div>The status message is about 80Kb, but I'm base64-encoding in-flight because there seems to be a line-length limit, probably enforced by mailx.</div><div><br></div><div>Details tomorrow, if you're interested.  It's past 3am, and I need sleep...</div>

<span><font color="#888888">
<div><br></div><div>Ralph Mitchell</div></font></span><div><div><div><br><br><div class="gmail_quote">On Fri, Mar 15, 2013 at 10:56 PM, Ralph Mitchell <span dir="ltr"><<a href="mailto:ralphmitchell@gmail.com" target="_blank">ralphmitchell@gmail.com</a>></span> wrote:<br>


<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">1) the xymon client script assembles the status report into a file, then transmits that to the server over port 1984 using the xymon client program.  You could pipe it through mailx instead, to send it to the xymon server.<div>



<br></div><div>2) on the Xymon server, use an email alias to pipe the incoming mail through a script.  Or use something like procmail to handle it.  Add an alias like this to /etc/aliases:</div><div><br></div><div>     xymonmsg: |/usr/local/bin/xymonmsg.sh</div>



<div><br></div><div>then run "newaliases" to recreate the alias db files.  Any email addressed to <a href="mailto:xymonmsg@your.server.com" target="_blank">xymonmsg@your.server.com</a> will be piped through that script.</div>


<div>
<br></div><div>In the email, everything up to the first blank line is a header.  After that blank line, the remainder is the body of the email, which would be the xymon report.  That can be broken out and passed through the xymon command.</div>



<div><br></div><div>I've done this to deliver logs, but the principal is sound for xymon reports as well.</div><span><font color="#888888"><div><br></div><div>Ralph Mitchell</div></font></span><div>
<div><div><br></div><div><br></div><div>On Fri, Mar 15, 2013 at 9:30 PM, Vernon Everett <span dir="ltr"><<a href="mailto:everett.vernon@gmail.com" target="_blank">everett.vernon@gmail.com</a>></span> wrote:<br>

<div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi Adam and everybody <br><br>You are of course completely correct, and confirmed what I knew, but didn't really want to accept.<br>



<br>IT people love problem solving within defined limited parameters, so let's see if we can come up with an elegant solution to this one, because I am sure I am not the first to encounter this.<br>
<br>The only "connection" I have between the sites, is email.<br>Is there a way to get the clients to send data to the server via emails?<br>Alternatively, we could get a local server instance to update the master server with consolidated data via email.<br>




<br>I am thinking the core of the problem is 2-fold.<br>1. Send the data via email from client or local server.<br>2. Receive and interpret the data at server side by parsing the incoming emails.<br><br>Unless I missed something, both these tasks are non-trivial.<br>




Any ideas?<br><br>Regards<span><font color="#888888"><br>Vernon</font></span><div><div><br><br><br><div class="gmail_quote">On 15 March 2013 08:53, Adam Goryachev <span dir="ltr"><<a href="mailto:mailinglists@websitemanagers.com.au" target="_blank">mailinglists@websitemanagers.com.au</a>></span> wrote:<br>




<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div>On 15/03/13 11:19, Vernon Everett wrote:<br>
> Hi all<br>
><br>
> Here's an interesting problem that has been put to me.<br>
> A potential customer has a number of independent IT installations,<br>
> with no always-on link between them or central IT.<br>
> If there is an issue at a site, support staff will connect using VPN<br>
> or Citrix over the interwebs.<br>
> Is it possible to set up a central Xymon server to monitor these<br>
> remote sites?<br>
> If yes, then how?<br>
> Has anybody done this before?<br>
<br>
</div>Do you mean the sites have no "always-on link" like a dial-up connection<br>
? or do you mean there is no VPN always on, but they always have working<br>
Internet?<br>
<br>
At the end of the day, if you want to get data out of the network to a<br>
remote location (whether you use xymon or any other widget), you will<br>
need to decide how that information gets there. Whether that is via the<br>
Internet or sneakernet is up to you, but obviously sneakernet will be<br>
less frequent and a bit more time consuming.<br>
<br>
Once you decide on how the data can be transported, it is just a matter<br>
of working out how to tell xymon to use that transport method. Let us<br>
know what you come up with, and I'm sure someone will be able to offer<br>
further advice.<br>
<br>
Regards,<br>
Adam<br>
<span><font color="#888888"><br>
--<br>
Adam Goryachev<br>
Website Managers<br>
<a href="http://www.websitemanagers.com.au" target="_blank">www.websitemanagers.com.au</a><br>
<br>
_______________________________________________<br>
Xymon mailing list<br>
<a href="mailto:Xymon@xymon.com" target="_blank">Xymon@xymon.com</a><br>
<a href="http://lists.xymon.com/mailman/listinfo/xymon" target="_blank">http://lists.xymon.com/mailman/listinfo/xymon</a><br>
</font></span></blockquote></div><br><br clear="all"><br></div></div><div><div>-- <br><span>"Accept the challenges so that you can feel the exhilaration of victory"</span><div><span>- General George Patton</span></div>




</div></div><br>_______________________________________________<br>
Xymon mailing list<br>
<a href="mailto:Xymon@xymon.com" target="_blank">Xymon@xymon.com</a><br>
<a href="http://lists.xymon.com/mailman/listinfo/xymon" target="_blank">http://lists.xymon.com/mailman/listinfo/xymon</a><br>
<br></blockquote></div><br></div>
</div></div></blockquote></div><br></div></div></div></div>
</blockquote></div><br><br clear="all"><br>-- <br><span>"Accept the challenges so that you can feel the exhilaration of victory"</span><div><span>- General George Patton</span></div>
</div></div></blockquote></div><br></div></div></div>