Site monitoring help needed


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers Site monitoring help needed
# 1  
Old 05-07-2010
Site monitoring help needed

Hi
I have developed a website. Now i would like to monitor the IP address of machines who are accessing the server.
The simplest possible solution to this that comes first into my mind is to use jsp inbuilt tags.

Code:
<%
out.print( request.getRemoteAddr() );
out.print( request.getRemoteHost() );
%>

but it has given me some other IP address(May be a proxy server's ip address)

So i was left with one choice is to run netstat on host server .
Here is what i have done.

Code:
netstat -an | grep 8080 (As tomcat runs on port 8080).

Should i modify the command or there is any other way around to monitor the IP address?

Last edited by zaxxon; 05-07-2010 at 08:42 AM.. Reason: use code tags please, ty
# 2  
Old 05-07-2010
If it's Apache you could parse access.log if that's an option.

---------- Post updated at 09:26 PM ---------- Previous update was at 01:45 PM ----------

Oh just noticed it's Tomcat, stupid me. Googling for "tomcat access" brought following:

Check the .conf/server.xml and uncomment the "AccessLogValve" parameter. More details should be in the official documentation for it I guess.
This User Gave Thanks to zaxxon For This Post:
 
Login or Register to Ask a Question

Previous Thread | Next Thread

9 More Discussions You Might Find Interesting

1. IP Networking

IPSec Openswan Site to Site VPN - Big Pain

Hi @all, I try to connect 2 LANs with IPSec/Openswan LAN 1: 192.168.0.0/24 LAN 2: 192.168.1.0/24 This is my Config: conn HomeVPN # # Left security gateway, subnet behind it, nexthop toward right. left=192.168.1.29 ... (1 Reply)
Discussion started by: bahnhasser83
1 Replies

2. IP Networking

Does cisco 1921 router support site to site VPNs using IPSec?

Q: "Does Cisco 1921 router support,, act as an endpoint for, site to site VPNs using IPSec? If so, how many? " A: If you get the Cisco 1921/k9 with the security services bundle then it will have built in security features. Cisco, typically includes IP Sec tunnels I believe as part of that... (0 Replies)
Discussion started by: Ayaerlee
0 Replies

3. Shell Programming and Scripting

Help needed to create a UNIX Space monitoring script

Hi All, Its urgent.. pls help me out.. I want to create a KSH which should generate a report with the list of users and the files larger than 5 GB created by them in a direcorty and send autogenerated e-mail to them. my input would be users list,directory path and the file size (say 5 GB) ... (11 Replies)
Discussion started by: anman0523
11 Replies

4. IP Networking

How to establish site to site vpn - Linux machine and cisco asa?

Hi, I am trying to establish vpn between my linux server and cisco asa at client side. I installed openswan on my cent os. Linux Server eth0 - 182.2.29.10 Gateway - 182.2.29.1 eth1 - 192.9.200.75 I have simple IPtables Like WAN="eth0" LAN="eth1" (0 Replies)
Discussion started by: ashokvpp
0 Replies

5. Shell Programming and Scripting

WPAR monitoring shell script suggestions needed

Hi All, This is for WPAR monitoring shell script, earlier opened thread was closed, had to open a new thread, as suggested I have used script as below, But am trying to get the output in below format, need suggestions with it. Below is the lswpar output, required output format. ... (7 Replies)
Discussion started by: aix_admin_007
7 Replies

6. Shell Programming and Scripting

help needed - log file monitoring script

hi Gurus, Need to pick your brains on this minor script project. I would like to continuously monitor a log file with sample log messages as below, and if PSOldGen percentage is either 99% or 100% for consecutively 10 times, alert someone. {Heap before gc invocations=46516: PSYoungGen ... (6 Replies)
Discussion started by: kenchen722
6 Replies

7. Shell Programming and Scripting

Performance monitoring help needed.

How would i check for following? 1)open ports in my linux machine. 2)Hard disk read speed. 3)Hard disk write speed. (2 Replies)
Discussion started by: pinga123
2 Replies

8. IP Networking

port access to site to site VPN

Setup a site to site VPN between two cisco routers. One of the site locations is unable to access ports such as https://example.com:9001 How do I let them go into port 9001? They can ssh, ftp, telnet and everything else. Is this a VPN issue or ACL access issue? I put permit ip host... (0 Replies)
Discussion started by: photon
0 Replies

9. HP-UX

Monitoring recommendations needed

Hello, I am a system's monitoring consultant but I am not very well acquainted with the Unix/Linux world. I am looking for a "best of breed" monitoring solution for Unix/Linux in general and HPUX/RH in particular. Something more "enterprise class" with a broad vision (towards BSM, CRM,... (1 Reply)
Discussion started by: xtrips
1 Replies
Login or Register to Ask a Question