I was experimenting with WAMP on my laptop, not a big deal in itself, but when I rebooted the Apache server failed to start.
Event logs showed something else had already been binded to port 80.
Quick Fix was to determine which PID had it by running the following:
netstat -ano
From there you can use task manager, determine the conflicting process, kill the PID.
(If you had CYGWIN installed)
netstat -ano | grep :80
ps -Wef | grep <pid> # To determine the process
kill -9 <pid>
Tags: ano, Apache, apache server, binded, cygwin, Event, event logs, Fix, grep, laptop, lt, manager, netstat, PID, port, process, server, task, task manager, WAMP, Wef
Posted in Non-Tivoli, WindozeMiscellaneous | Comments (0)
Reference: http://help.mosso.com/article.php?id=180
Your script is calling for the “REMOTE_ADDR” and receives the IP of a server in front of one of our back-end servers. The web facing server is then passing the scripts output without giving the expected REMOTE_ADDR of the visitor. In order for your scripts to recognize that they are on a cluster and log the correct IP of your visitors, you will need to replace and add the code below.
For PHP:
Locate any lines of code that are similar to this snippet of code,
$_SERVER['REMOTE_ADDR'];
And replace it with this snippet of code,
$_SERVER['HTTP_X_CLUSTER_CLIENT_IP'];
For ASP:
Locate any lines of code that are similar to this snipper of code,
Request.ServerVariables(“REMOTE_ADDR”)
And replace it with this snipper of code,
Request.ServerVariables(“HTTP_X_CLUSTER_CLIENT_IP”)
My fix for this required a unix shell (if you’re on a Windows look at installing cygwin on your system.
# Ftp your web content down to your local system
$ for file in `find <path_to_files> -exec grep -l REMOTE_ADDR {} \;`; do base=`basename $file`; sed ‘s/REMOTE_ADDR/HTTP_X_CLUSTER_CLIENT_IP/g’ $file > /tmp/$base; grep HTTP_X_CLUSTER_CLIENT_IP /tmp/$base >/dev/null 2>&1 && grep REMOTE_ADDR $file && echo “Updated $base” && mv
/tmp/$base $file; done
# Then simply upload the changed files to your system.
Tags: ADDR, amp, base, CLIENT, cluster, code, code request, code server, correct ip, cygwin, exec grep, file, g file, grep, HTTP, local system, Locate, lt, mosso, mv, Reference, REMOTE, remote addr, remote_addr, Request, request servervariables, Scripts, server, servers, ServerVariables, shell, snipper, snippet, statistics, system, tmp, unix, unix shell, web, web content
Posted in web_programming | Comments (0)
Based on http://publib.boulder.ibm.com/infocenter/tivihelp/v24r1/index.jsp?topic=/com.ibm.itm.doc/itm_admin_6284.htm
The following table describes the meaning of the situation event statuses and the setting of the common slots in the generated Tivoli Enterprise Console event.
Read the rest of this entry »
Tags: Ack, Console, ditto, Enterprise, Event, flag, hub, infocenter, integration, itm, jsp, master, meaning, monitoring server, N
None, N, publib boulder, R
Ditto, reset, S
None, server, server hub, server startup, setting, sfo, situation, slots, startup, status, statuses, table, TEC, time, Tivoli, tivoli enterprise, true hub, type, type situation, U
A
None, U
E
None, U
F, U
N
None, U
P
None, X
None
Posted in ITM, TEC | Comments (0)