nv-l

Re: Monitoring TCP connectivity

2000-10-04 09:55:32
Subject: Re: Monitoring TCP connectivity
From: lclark AT us.ibm DOT com
To: nv-l AT lists.tivoli DOT 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>