nv-l
[Top] [All Lists]

Re: Monitoring TCP connectivity

To: nv-l@lists.tivoli.com
Subject: Re: Monitoring TCP connectivity
From: lclark@us.ibm.com
Date: Wed, 4 Oct 2000 09:55:32 -0400

See the man page for the netcheck command. That might do it for you, in
a script. Like:
=============================
#!/bin/ksh
# Http servers
#set -x
HTTPSERVERS = `nvUtil l HTTPServers`

for i in $HTTPSERVERS;
    do
    OUT=`/usr/OV/bin/netcheck -o tcpPort=80  -t tcp $i | grep OK | wc -l`;
    if  [ $OUT -eq "0" ] ; then
       echo "Send some event for down HTTP service on $i "
    fi ;
    done
exit
===============================
Assuming you used nvsniffer to set up the Smartsets of http servers.
Check that /usr/OV/conf/nvdbtools/nvsniffer.conf is checking the ports you
want,
and then check those same ports with the netcheck command.
Of course on Netview for NT, nvsniffer already handles ongoing status.

Cordially,

Leslie A. Clark
IBM Global Services - Systems Mgmt & Networking
(248) 552-4968 Voicemail, Fax, Pager


<Prev in Thread] Current Thread [Next in Thread>

Archive operated by Skills 1st Ltd

See also: The NetView Web