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
|