<div class="gmail_quote">On Tue, Jan 24, 2012 at 11:43 AM, Asif Iqbal <span dir="ltr"><<a href="mailto:vadud3@gmail.com">vadud3@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">
<div class="im">On Tue, Jan 24, 2012 at 11:24 AM, Asif Iqbal <<a href="mailto:vadud3@gmail.com">vadud3@gmail.com</a>> wrote:<br>
> On Tue, Jan 24, 2012 at 11:13 AM, Root, Paul <<a href="mailto:Paul.Root@centurylink.com">Paul.Root@centurylink.com</a>> wrote:<br>
>> Hi,<br>
>>        We are monitoring a particular port that we are having issues with. 8022, it's a proxy port for HP NA.<br>
>><br>
>>        Anyway, I have an expect script that goes in and tests the functionality of the port. But when it starts to go bad, this script get stuck in TIME_WAIT, along with the users connecting to the port.<br>
><br>
> why not use ssh:8022:s in hosts.cfg ?<br>
><br>
><br>
>><br>
>>        So, can I look at the port data before I try connecting, and if there are a bunch of TIME_WAIT connections, just skip the test entirely?<br>
>><br>
>>        I'm running the test from the xymon server, so I was thinking of pulling the data out of xymon directly. Would that by xymoncmd?<br>
<br>
</div>if you like to pursue your method and just want to count the number of<br>
TIME_WAIT for port 8022, you can run something like this from xymon<br>
server<br>
<br>
xymon localhost  "clientlog <a href="http://host.example.net" target="_blank">host.example.net</a> section=ports" | grep<br>
8022 | grep TIME_WAIT</blockquote><div><br></div><div><br></div><div><div>This works too:</div><div><br></div><div>     /home/xymon/server/bin/xymon localhost "xymondlog server.domain.com.ports"</div></div><div>
 </div><div>Ralph Mitchell</div></div>