Monitoring Tomcat 5.0 on Ubuntu - Page 3
3 Configure Tomcat 5.0 for Log TrackingTo enable Log Tracking in HQ, Tomcat must be configured with log4j. These steps are based on the standard Tomcat documentation. 3.1 Set Up log4jOn a blank Ubuntu-Installation /usr/lib/tomcat5/common/classes/log4j.properties does not exist, so create one with the following example contents: #These properties can be modified. The only requirement is that the
#ConversionPattern includes the priority (%p)
log4j.rootLogger=INFO, R
log4j.appender.R.File=${catalina.home}/logs/tomcat.log
log4j.appender.R.MaxBackupIndex=1
log4j.appender.R.MaxFileSize=5000KB
log4j.appender.R.layout.ConversionPattern=%d %-5p [%c{1}] %m%n
log4j.appender.R.layout=org.apache.log4j.PatternLayout
log4j.appender.R=org.apache.log4j.RollingFileAppender
Next, copy the following jars unless they have already been installed: cp pdk/lib/log4j.jar /usr/lib/tomcat5/common/lib Restart Tomcat for the changes to take effect: /etc/init.d/tomcat5 restart 4 Start the HQ Server and AgentsTo log in and see your monitoring metrics, we must first start the HQ Server and Agent. 4.1 Start The HQ ServerStart the server with the following command: /home/hyperic/server-n.n.n/bin/hq-server.sh start The initial startup should look like this: Starting HQ server... Login to HQ at: http://127.0.0.1:7080/ Note: The first start will take more time as usual. 4.2 Start The HQ AgentStart the agent with the following command: /home/hyperic/agent-n.n.n/hq-agent.sh start The initial startup should look like this: Starting agent Follow the rest of the directions as prompted. Confirm the Agent Registered ProperlyOnce the installation and startup is complete, confirm the agent registered itself with the host. It should look like this: - Received temporary auth token from agent 5 Using the HQ ServerYour setup is complete! You are now ready to monitor all the technologies, including your enabled Tomcat server with your Hyperic HQ Server. 5.1 Access the Hyperic HQ ServerTo access the HQ Server with a browser of your choice at http://127.0.0.1:7080 on the host-system, or using another computer, at http://%hostip%:7080. 5.2 Discovering More FeaturesHyperic HQ is packed with capabilities. For a good tour of the features and further setup instructions, check out the Hyperic Test Ride Guide. 5.3 Essential CommandsWhen managing your HQ environment, keep in mind the following commands: Start the HQ Server: /home/hyperic/server-n.n.n/bin/hq-server.sh start Start the HQ Agent: /home/hyperic/agent-n.n.n/hq-agent.sh start Stop the HQ Agent: /home/hyperic/agent-n.n.n/hq-agent.sh stop Stop the HQ Server: /home/hyperic/server-n.n.n/bin/hq-server.sh stop
|
Join the discussion.
www.seamlessenterprise.com
IP Convergence
Integrate your wireless and wireline networks.
Learn how from the experts at Sprint.
www.seamlessenterprise.com
Wireless & Wireline Integration
Thoughts, strategies and solutions: join the discussion
www.seamlessenterprise.com
Unified Communications 2009
Join the Discussion. Now.
www.seamlessenterprise.com
Red Hat Virtual Experience - a free virtual event. Dec. 9th





print: 
Recent comments
12 hours 29 sec ago
17 hours 48 min ago
19 hours 40 min ago
21 hours 24 min ago
1 day 1 hour ago
1 day 7 hours ago
1 day 7 hours ago
1 day 11 hours ago
1 day 17 hours ago
1 day 22 hours ago