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
|
www.seamlessenterprise.com
One number. One voicemail. Seize the lead. Sprint Mobile Integration.
www.seamlessenterprise.com
One Number. One Voicemail.
Make it easier for clients to reach you. Turn your desk phone and mobile phone into one with Sprint Mobile Integration.
www.seamlessenterprise.com
One number. One voicemail. Sprint Mobile Integration.
www.seamlessenterprise.com
AT&T Synaptic Compute as a Service. Boost your power on demand.
Trial: IBM Cognos Express Reporting, Analysis & Planning
Learn benefits of Simpana software.
View the Gartner Video




print: 

Recent comments
14 hours 4 min ago
16 hours 48 min ago
22 hours 14 min ago
1 day 40 min ago
1 day 1 hour ago
1 day 2 hours ago
1 day 4 hours ago
1 day 10 hours ago
1 day 10 hours ago
1 day 14 hours ago