The poor man's solution is an internal routine from the NetView library.
#!/bin/ksh
netcheck -o tcpPort=80 -t tcp $*
Use the MAN facility to read the documentation. The example above
checks whether the web server is active on the device pointed to by the
parameter passed. Use the LDAP port for the equivalent. The attached
file is a more extensive shell script which does the task using netcheck
and creates a trap if it fails. Run it from CRON.
My thanks again to the Tivoli NetView Support who pointed me to this
simple solution in the days before nvsniffer.
Bill Evans
-----Original Message-----
From: owner-nv-l@lists.us.ibm.com [mailto:owner-nv-l@lists.us.ibm.com]
On Behalf Of don.turrentine@amsouth.com
Sent: Friday, January 13, 2006 11:13 AM
To: Scott Hammons
Cc: nv-l@lists.us.ibm.com; owner-nv-l@lists.us.ibm.com
Subject: Re: [nv-l] Logical Port Monitoring with NetView
Depending on what release you are running you may want to look at
servmon or nvsniffer.
---
Don Turrentine
"Scott Hammons"
<shammons@aiscons
ulting.net>
To
Sent by: nv-l@lists.us.ibm.com
owner-nv-l@lists.
cc
us.ibm.com
Subject
[nv-l] Logical Port Monitoring
with
01/13/2006 10:06 NetView
AM
Please respond to
nv-l@lists.us.ibm
.com
Listers,
I probably already know the answer to this, but I thought I would throw
this question to the list to see if any has tried something similar. Is
it possible to configure NetView to monitor a logical port? For example
port 389 is the default communication port for LDAP servers, can I
configure NetView to monitor this port?
I'm thinking, I'd have to do the logging from the LDAP side, write to a
log file, and use something like the TEC log file adapter to do the
monitoring. However, I was just curious to see if it could be done
through NetView.
Thanks,
Scott
Scott Hammons
Principal Consultant
Advanced Integrated Solutions, Inc.
www.ais-consulting.net
Mobile: (210) 378-8229
wve-check-80.sh
Description: wve-check-80.sh
|