<div dir="ltr">Thanks for the all the responses and especially Henrik!    As usual, he connected all the pieces that were in my head and made a simple solution.<div><br></div><div>Have a great week!</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Feb 10, 2017 at 5:08 AM, Henrik Størner <span dir="ltr"><<a href="mailto:henrik@hswn.dk" target="_blank">henrik@hswn.dk</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><u></u>
<div>
<p>Hi,</p>
<p>If the PI can connect back to your Xymon server, then the easiest solution would be to install the "xymonnet" utility on the PI, configure it to run a limited set of network tests, and send the status messages back to the Xymon server.</p>
<p>If you use pre-packaged installations of Xymon, then you would install the "server" package on the PI, but disable everything in tasks.cfg except the client and xymonnet tasks (note that by default the xymonnet task has a dependency on xymond - you need to remove this when disabling xymond).</p>
<p>The key configuration items are:</p>
<ol>
<li>Configure xymonserver.cfg on the PI with the IP of the normal Xymon server in XYMSRV setting, so all status messages go to the normal Xymon server</li>
<li>Use the "NET" tag in hosts.cfg (on the normal Xymon server) to distinguish network tests which run on the PI from those running on your normal Xymon server. You can either add a "NET:primary" and "NET:backup" to all of the network tests, or use the "--test-untagged" option with xymonnet on the normal server and only add a "NET:backup" for the tests which should run on the PI.</li>
<li>Configure XYMONNETWORK=backup in xymonserver.cfg on the PI so it will run the network tests tagged with "NET:backup" (if you put a "NET:primary" on the normal tests, then of course also add a XYMONNETWORK=primary setting on the primary server).</li>
<li>Run Xymon on the PI.</li>
</ol>
<p>That should work. In the "old days", you would have to somehow get the hosts.cfg file across from the normal Xymon server to the PI (or have separate hosts.cfg files on each), but these days xymonnet will fetch hosts.cfg from the normal server instead of reading a local copy, so it should work and you only have to maintain the normal hosts.cfg file.</p>
<p>You can run a test on the PI to see what network tests it will perform - "xymoncmd xymonnet --no-update" will run the tests without sending any data to the server, so you can verify that the PI only runs the tests you intend it to.</p>
<p>The <a href="http://xymon.com" target="_blank">xymon.com</a> installation has this setup, since <a href="http://xymon.com" target="_blank">xymon.com</a> is hosted on a public server in Germany (at Hetzner), and my home network is behind a firewall but uses <a href="http://xymon.com" target="_blank">xymon.com</a> to collect data from the home network. So you can look at the configuration files on <a href="http://xymon.com" target="_blank">xymon.com</a> and see how I have a "NET:hetzner" and "NET:home" setting.</p>
<p>Regards,<br>Henrik</p><div><div class="h5">
<p>On 09-02-2017 20:21, Patrick Nixon wrote:</p>
<blockquote type="cite" style="padding-left:5px;border-left:#1010ff 2px solid;margin-left:5px;width:100%">
<div dir="ltr">Hey all,
<div>  I want to monitor my backup internet connection (simple ping test outbound is fine).   I'm going to throw a raspberry pi with dual interfaces on the network, one on the main network and one on the backup internet connection.</div>
<div> </div>
<div> What's the best way to implement a ping test from the PI and have it be part of the main server display?</div>
<div> Solutions I've considered so far:</div>
<div> - set up the PI as a xymon server and figure out how to get the test results to go back to the main server.</div>
<div> - setup the PI as a xymon client and write some sort of ping test that does the work</div>
<div> - something else I missed?</div>
<div> </div>
<div>Thanks!</div>
</div>
</blockquote>
<p> </p>
<div> </div>
</div></div></div>
<br>______________________________<wbr>_________________<br>
Xymon mailing list<br>
<a href="mailto:Xymon@xymon.com">Xymon@xymon.com</a><br>
<a href="http://lists.xymon.com/mailman/listinfo/xymon" rel="noreferrer" target="_blank">http://lists.xymon.com/<wbr>mailman/listinfo/xymon</a><br>
<br></blockquote></div><br></div>