On Tue, Jan 24, 2012 at 11:43 AM, Asif Iqbal <vadud3 at gmail.com> wrote:
On Tue, Jan 24, 2012 at 11:24 AM, Asif Iqbal <vadud3 at gmail.com> wrote:
On Tue, Jan 24, 2012 at 11:13 AM, Root, Paul <Paul.Root at centurylink.com> wrote:
Hi, We are monitoring a particular port that we are having issues with. 8022, it's a proxy port for HP NA.
Anyway, I have an expect script that goes in and tests thefunctionality 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.
why not use ssh:8022:s in hosts.cfg ?
So, can I look at the port data before I try connecting, and ifthere are a bunch of TIME_WAIT connections, just skip the test entirely?
I'm running the test from the xymon server, so I was thinking ofpulling the data out of xymon directly. Would that by xymoncmd?
if you like to pursue your method and just want to count the number of TIME_WAIT for port 8022, you can run something like this from xymon server
xymon localhost "clientlog host.example.net section=ports" | grep 8022 | grep TIME_WAIT
This works too:
/home/xymon/server/bin/xymon localhost "xymondlog
server.domain.com.ports"
Ralph Mitchell