<div dir="ltr">On 24 August 2013 03:53, Shackelford, Ken <span dir="ltr"><<a href="mailto:ken.shackelford@siemens.com" target="_blank">ken.shackelford@siemens.com</a>></span> wrote:<br><div class="gmail_extra"><div class="gmail_quote">

<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">






<div>
<font face="Calibri"><span style="font-size:11pt">
<div><span style="font-size:11pt">I’ve found the “xymonnet” program</span><br></div>
<div>that does much the same thing as bb-network.sh, but there is no way to specify a different configuration file other than hosts.cfg.</div></span></font></div></blockquote><div><br></div><div>Yes there is.</div><div> </div>

<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><font face="Calibri"><span style="font-size:11pt">
<div><span style="font-size:11pt">        In short, is there a way to have a second IP address for a system and have Xymon produce a second “conn” (or whatever</span><br></div>
<div>name) column for that IP?   I know I could just add two entries to hosts.cfg (“machine” and “machine.serial” or some such), but that</div>
<div>seems a bit like a kludge.</div></span></font></blockquote><div><br></div><div>I would think that running xymonnet with a different hosts.cfg file is a bigger kludge.  But I think this option is better for operators.</div>

<div><br></div><div>You can run xymonnet and specify HOSTSCFG to point to the hosts.cfg file you want.  The default setting, defined in xymonserver.cfg is "$XYMONHOME/etc/hosts.cfg".  In the same way you can define a different column for ping tests, as defined by the CONNTEST environment variable.  So you could run a second xymonnet out of tasks.cfg/tasks.d like so:</div>

<div><br></div><div> [xymonnetping2]</div><div>        ENVFILE /usr/lib/xymon/server/etc/xymonserver.cfg</div><div>        NEEDS xymond</div><div>        CMD HOSTSCFG=$XYMONHOME/etc/hosts2.cfg xymonnet CONNTEST=conn2 --report --ping --dns-timeout=3</div>

<div>        LOGFILE $XYMONSERVERLOGS/xymonnet.log</div><div>        INTERVAL 5m</div><div><br></div><div>J</div><div><br></div></div></div></div>