Adding Tomcat Monitor

Adding Tomcat Monitor for Windows

Go to the Monitors menu and select Application Monitors->Tomcat.

Monitor_List_Tomcat_

The Add Application Monitor – Step 1 window will open.

Add_CPU_Monitor_step_1-new

If you have already downloaded and installed Smart Agent for Windows, select it from the Agent list.

Make sure that your Smart Agent for Windows is running, as shown under Agent Status. If the Agent is stopped, run it from Smart Agent Controller window (see Downloading, Installing and Running Smart Agent for Windows).
Monitis_Agent_Account

If you haven’t downloaded Smart Agent for Windows yet, click on the Download Agent button to download it. Follow the instructions under Downloading, Installing and Running Smart Agent for Windows.

Note that it may take up to 5 min for newly installed Agent to appear in the list (you can click Refresh to refresh the agent list).

Select the Windows Agent from the list, and click Next.

The Add Server/Device Monitor – Step 2 window will open.

Select from the Monitor Group combo box the monitor group for this monitor to be assigned to.

You can also create a new monitor group by clicking on the “+” icon next to Add Group.

Under the Host name enter the IP address of your server where Tomcat is hosted.
Enter the Tomcat port.

Under the User and Password enter the Tomcat credentials of the user with manager-jmx role (see Adding a manager-jmx User Role in Tomcat).

To add more Server-Device monitors of different types to the same Smart Agent, click the green “+” button under Add More Monitors (see Adding Multiple Server-Device and Application Monitors for the Same Agent).

Click Add when finished.

The Alert Configuration window will appear.

Alert_Configuration_

– Click Send to All Contacts if you want to send alerts for this monitor to all contacts.

– Click Custom Configuration (Advanced) to configure sending alerts for this monitor only to selected contacts.

The Alert Rules window will open. Click on the Add Alert Rule button to configure alert rule(s) for your monitor.

Set up the alert rule and click Add Rule. See Alert Rules in Alerts 2.0 for more info about alert rules.

Note: To be able to add alert rules, you need to set up thresholds (Critical or Warning) in your monitor first.

A threshold includes two conditions connected by a logical OR. If any of the conditions matches the monitor will enter your specified state.

  • Check fails (response timed out, connection failure, etc)
  • Any or all of your selected metrics meet the failure conditions you specified for them

See Thresholds for more info.

–  Click Don’t Send Alerts if you don’t want any alerts for this monitor to be sent.

Your newly created Tomcat monitor will appear in your Monitis Dashboard. Wait until it loads the first results.

Tomcat_Monitor_Data_Windows

 

Adding Tomcat Monitor for Linux

Go to the Monitors menu and select Application Monitors->Tomcat.

The Add Application Monitor – Step 1 window will open.

Add_CPU_Monitor_Step_1_Linux-new

If you have already downloaded and installed Smart Agent for Linux, select it from the Agent list.

Make sure that your Smart Agent for Linux is running, as shown under Agent Status. If the Agent is stopped, run it on your Linux machine (see Downloading, Installing and Running Smart Agent for Linux).
http://www.monitis.com/support/wp-content/uploads/2016/06/word-image-15.png

If you haven’t downloaded Smart Agent for Linux yet, click on the Download Agent button to download it. Follow the instructions under Downloading, Installing and Running Smart Agent for Linux.

Note that it may take up to 5 min for newly installed Agent to appear in the list (you can click Refresh to refresh the agent list).

Select the Linux Agent from the list, and click Next.

The Add Server/Device Monitor – Step 2 window will open.

Select from the Monitor Group combo box the monitor group for this monitor to be assigned to.

You can also create a new monitor group by clicking on the “+” icon next to Add Group.

Under the Host name enter the IP address of your server where Tomcat is hosted.
Enter the Tomcat port.

Under the User and Password enter the Tomcat credentials of the user with manager-jmx role (see Adding a manager-jmx User Role in Tomcat).

To add more Server-Device monitors of different types to the same Smart Agent, click the green “+” button under Add More Monitors (see Adding Multiple Server-Device and Application Monitors for the Same Agent).

Click Add when finished.

The Alert Configuration window will appear.

Alert_Configuration_

– Click Send to All Contacts if you want to send alerts for this monitor to all contacts.

– Click Custom Configuration (Advanced) to configure sending alerts for this monitor only to selected contacts.

The Alert Rules window will open. Click on the Add Alert Rule button to configure alert rule(s) for your monitor.

Set up the alert rule and click Add Rule. See Alert Rules in Alerts 2.0 for more info about alert rules.

Note: To be able to add alert rules, you need to set up thresholds (Critical or Warning) in your monitor first.

A threshold includes two conditions connected by a logical OR. If any of the conditions matches the monitor will enter your specified state.

  • Check fails (response timed out, connection failure, etc)
  • Any or all of your selected metrics meet the failure conditions you specified for them

See Thresholds for more info.

–  Click Don’t Send Alerts if you don’t want any alerts for this monitor to be sent.

Your newly created Tomcat monitor will appear in your Monitis Dashboard. Wait until it loads the first results.

Tomcat Monitor

 

Metrics

Monitis Tomcat Monitor tracks the following Apache Tomcat metrics:

  • Bytes Sent – the amount of bytes sent by Tomcat server to its clients per second (responses).
  • Bytes Received – the amount of bytes received by Tomcat server from its clients per second (requests).
  • Average Response Time – the average response processing time for a request per second.
  • Error Count – the number of errors while requests were processing during the predefined period.
  • Max Time – maximum time it took to process a request during the predefined period.
  • Request Count – the number of requests processed during the predefined period.
  • Max Threads – maximum  number of threads that can be allocated for the ThreadPool during the predefined period.
  • Current Threads Busy – the number of current busy threads.
  • Current Thread Count – the number of current threads.
  • Used Heap Memory – the current heap memory usage.
  • Committed Heap Memory – the current allocated heap memory. This amount of memory is guaranteed for the Java virtual machine to use.
  • Uptime – the duration of uninterruptable Tomcat Server work.

 

Dashboard

Once you create a Tomcat monitor it will appear in your Monitis Dashboard.

Tomcat Monitor

When you switch from the line chart view to the table view for the first time, you will see a pop-up window, where you can select the metrics to display.

Select Displayed Metrics

Select the metrics and click OK. The table view will open, showing your selected metrics.

Note: if you roll the mouse over a column name, and then click the arrow that will appear next to the column name, the list of the metrics will open where you can select to show/hide any of the metrics. Note that the columns will be shown/hidden persistently: next time you open the table view they will show as per your last selection. You can then show/hide the columns again as you like.

Tomcat Monitor Table

You can use the Settings menu to change at any time MySQL monitor setup data: server host, port and user.

Tomcat_Monitor_Settings_