<div class="gmail_quote">On Wed, Aug 1, 2012 at 1:47 AM, Joseph Acquisto <span dir="ltr"><<a href="mailto:joea@j4computers.com" target="_blank">joea@j4computers.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">

Recently moved to xymon 4.3.7 from hobbit 4.2<br>
<br>
All seems reasonable except for two things.<br>
<br>
- Due to firewall issues, some net tests do not work.</blockquote><div><br></div><div>Which net tests work and which don't work?  Do the working tests also come from the default IP address?</div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">

 I can see tcpdump tell me the source is still the original for the new server.   ??</blockquote><div><br></div><div>Try running the xymonnet command from the command-line with the "--no-update" switch, perhaps specifying a stripped-down hosts.cfg with only one host and test that is failing.  For example:</div>

<div><br></div><div>sudo -u xymon xymoncmd</div><div><div>echo "10.1.1.1 name-of-host # ssh" $HOSTSCFG > /tmp/hosts.cfg</div><div>HOSTSCFG=/tmp/hosts.cfg xymonnet --report --noping \</div><div>  --no-update --source-ip=10.2.2.2</div>

<div><br></div><div>See how you go.  If this works, then perhaps there's something wrong with how it's configured in tasks.cfg.</div><div><br></div><div>If it doesn't work, use strace (Linux) or truss (Solaris) and look for the "bind" system call:</div>

</div><div><br></div><div><div>HOSTSCFG=/tmp/hosts.cfg strace -f xymonnet --report --noping \</div><div>  --no-update --source-ip=10.2.2.2 2>&1 | grep bind</div><div><br></div><div>Output looks like:</div><div>bind(3, {sa_family=AF_INET, sin_port=htons(0), sin_addr=inet_addr("10.2.2.2")}, 16) = 0</div>

</div><div><br></div></div>