06-23-2008 07:25 AM
Hi,
I've have several services defined like so:
service sclivelink002:81
ip address 10.5.55.132
port 81
keepalive frequency 2
keepalive retryperiod 2
keepalive port 2199
keepalive type tcp
protocol tcp
add ssl-proxy-list SSL1
active
My question is how can I add addition keepalive ports to this service. I want to monitor it via pings to port 80 as well. I've looked at the 'ap-kal-pinglist' scripts, but just not sure how to modify it for additional ports. What about defining a critical service, can I do that ?
I'm looking for something like:
keepalive port 80, 81, 2199
Any info. would be great.
Thx,
Manjit.
06-23-2008 08:15 AM
Use the script descrived here
http://www.cisco.com/en/US/products/hw/contnetw/ps792/products_tech_note09186a00801e1e14.shtml
You will then be able to monitor multiple tcp ports.
Gilles.
06-23-2008 09:05 AM
Gilles,
The numbers in quotes, do I change them for my specific ports.
For ex)
set OUT-OF-SOCKETS "785"
set NO-CONNECT "774"
if ${ARGS}[#] "LT" "2"
socket connect host ${SERVICE} port ${TCP-PORT} tcp 2000
Also, how do I apply the script once created.
Cheers!!
06-23-2008 10:43 AM
don't change anything.
Copy the script in a file and copy it to your CSS via ftp into the script directory.
You then call the script from the service and provide the parameters IP PORT1 PORT2 ....
Gilles.
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide