Imported Upstream version 1.12
This commit is contained in:
13
config/websphere/appstate.cfg
Normal file
13
config/websphere/appstate.cfg
Normal file
@@ -0,0 +1,13 @@
|
||||
# ---------------------------------------
|
||||
# Check of the application state
|
||||
#
|
||||
# $0: application name
|
||||
<Check was_application_state>
|
||||
MBean WebSphere:j2eeType=J2EEApplication,J2EEName=${0},*
|
||||
Attribute state
|
||||
|
||||
Critical = ${1:1}
|
||||
Label = $0 : status = %v
|
||||
Name = $0-state
|
||||
</Check>
|
||||
|
||||
129
config/websphere/http.cfg
Normal file
129
config/websphere/http.cfg
Normal file
@@ -0,0 +1,129 @@
|
||||
# ============================================
|
||||
# HTTP Checks
|
||||
|
||||
include threads.cfg
|
||||
|
||||
# HTTP Thread Pool Utilization
|
||||
# Check of relative pool size, i.e. the ratio between actual created threads
|
||||
# to the number of maximal available threads.
|
||||
<Check was_http_pool_size>
|
||||
Use was_thread_pool_size('WebContainer',$0,$1)
|
||||
</Check>
|
||||
|
||||
# Relative check of all active threads out of the threadpool for the web container
|
||||
<Check was_http_pool_active>
|
||||
Use was_thread_pool_active('WebContainer',$0,$1)
|
||||
</Check>
|
||||
|
||||
# Web-Sessions
|
||||
|
||||
# Check for the number of session uses. The maximal number of sessions is not available
|
||||
# and should be provided as argument to this check (default is 200).
|
||||
#
|
||||
# A unique part of the name contained in the 'mbeanIdentifier' key of the MBean
|
||||
# must be used for the name (e.g. 'jolokia' for the Jolokia agent).
|
||||
#
|
||||
# $0: Unique part of the name of the web app (see above)
|
||||
# $1: Maximum number of session (default: 200)
|
||||
# $2: Critical (default: 90%)
|
||||
# $3: Warning (default: 80%)
|
||||
<Check was_http_session_count>
|
||||
MBean WebSphere:type=SessionManager,mbeanIdentifier=*${0}*,*
|
||||
Attribute stats
|
||||
Path */*/statistics/LiveCount/current
|
||||
|
||||
# Base value as the number of maximal possible sessions
|
||||
# (or if a proper MBean attribute is found, this could be inserted here)
|
||||
Base ${1:200}
|
||||
|
||||
Critical ${2:90}
|
||||
Warning ${3:80}
|
||||
|
||||
Label $0 : %.2r% sessions in use (%v / %b)
|
||||
Name ${0}-http-sessions
|
||||
</Check>
|
||||
|
||||
# HTTP Request Count
|
||||
# Check for the number of requests per minute for a specific servlet.
|
||||
#
|
||||
# $0: Part of the servlet name (see above)
|
||||
# $1: Critical as requests / minute (no default)
|
||||
# $2: Warning as requests / minute (no default)
|
||||
<Check was_http_request_count>
|
||||
Use was_request_count($0,$1,$2)
|
||||
MBean WebSphere:type=Servlet,mbeanIdentifier=*${0}*,*
|
||||
</Check>
|
||||
|
||||
# Check for the number of requests per minute for a specific JSP
|
||||
#
|
||||
# $0: Part of the JSP name (see above)
|
||||
# $1: Critical as requests / minute (1000)
|
||||
# $2: Warning as requests / minute (800)
|
||||
<Check was_jsp_request_count>
|
||||
Use was_request_count($0,$1,$2)
|
||||
MBean WebSphere:type=JSP,mbeanIdentifier=*${0}*,*
|
||||
</Check>
|
||||
|
||||
# Base Check for requests counts (servlet or JSPs)
|
||||
# $0: Part of the servlet name (see above)
|
||||
# $1: Critical as requests / minute (1000)
|
||||
# $2: Warning as requests / minute (800)
|
||||
<Check was_request_count>
|
||||
Attribute stats
|
||||
Path */*/statistics/RequestCount/count
|
||||
Delta 60
|
||||
|
||||
Critical ${1:1000}
|
||||
Warning ${2:800}
|
||||
|
||||
Label $0 : %2.2q requests / minute
|
||||
Name ${0}-request-count
|
||||
</Check>
|
||||
|
||||
# HTTP Service Time
|
||||
#
|
||||
# Check of average processing time per request for a servlet.
|
||||
#
|
||||
# $0: Part of the servlet name (see above)
|
||||
# $1: Critical (default: 10000ms)
|
||||
# $2: Warning (default: 5000ms)
|
||||
<Check was_http_service_time>
|
||||
Use was_service_time($0,$1,$2)
|
||||
MBean WebSphere:type=Servlet,mbeanIdentifier=*${0}*,*
|
||||
BaseMBean WebSphere:type=Servlet,mbeanIdentifier=*${0}*,*
|
||||
</Check>
|
||||
|
||||
# Check of average processing time per request for a JSP
|
||||
#
|
||||
# $0: Part of JSP name (see above)
|
||||
# $1: Critical (default: 10000ms)
|
||||
# $2: Warning (default: 5000ms)
|
||||
<Check was_jsp_service_time>
|
||||
Use was_service_time($0,$1,$2)
|
||||
MBean WebSphere:type=JSP,mbeanIdentifier=*${0}*,*
|
||||
BaseMBean WebSphere:type=JSP,mbeanIdentifier=*${0}*,*
|
||||
</Check>
|
||||
|
||||
# Base check for total service time checks (suggestion for
|
||||
# improvements: Currently the overall average is measured. It would be
|
||||
# much better to use only the average till the last
|
||||
# measurement. Therefore a "Delta" should be used (without
|
||||
# normalization), but unfortunately the base value is not used as 'delta'
|
||||
# yet.
|
||||
<Check was_service_time>
|
||||
Attribute stats
|
||||
Path */*/statistics/ServiceTime/totalTime
|
||||
|
||||
BaseAttribute stats
|
||||
BasePath */*/statistics/ServiceTime/count
|
||||
|
||||
Delta
|
||||
|
||||
# * 100 because the value is a 'relative' check typical used for percentages
|
||||
Critical{1:1000000}
|
||||
Warning ${2:500000}
|
||||
|
||||
Label %2.2q ms ∅ processing time per request (%v ms total for %b requests)
|
||||
Name $0-request-processing-time
|
||||
</Check>
|
||||
|
||||
43
config/websphere/jca.cfg
Normal file
43
config/websphere/jca.cfg
Normal file
@@ -0,0 +1,43 @@
|
||||
# ===============================================================
|
||||
# JCA
|
||||
|
||||
# JCA connector pool usage
|
||||
#
|
||||
# ${0} : part of the JCA connector name
|
||||
# ${1} : Managed Connection Factory Name (JCA)
|
||||
# ${2} : Critical (default: 90 percent)
|
||||
# ${3} : Warning (default: 80 percent)
|
||||
<Check was_jca_percent_used>
|
||||
MBean WebSphere:j2eeType=JCAResource,mbeanIdentifier=*${0}*,*
|
||||
Attribute stats
|
||||
Path */*/connectionPools/${1}/statistics/PercentUsed/current
|
||||
|
||||
Critical ${2:90}
|
||||
Warning ${3:80}
|
||||
|
||||
Label $1 : %2.0f% connections used
|
||||
Name jca-${1}-${0}-pool
|
||||
</Check>
|
||||
|
||||
# Average waiting time until a JCA connector is available
|
||||
#
|
||||
# ${0} : part of the JCA resource name as it appears in the mbeanIdentifier
|
||||
# ${1} : Managed Connection Factory Name (JCA)
|
||||
# ${2} : Critical (default: 10s)
|
||||
# ${3} : Warning (default: 5s)
|
||||
<Check was_jca_wait_time>
|
||||
MBean WebSphere:j2eeType=JCAResource,mbeanIdentifier=*${0}*,*
|
||||
Attribute stats
|
||||
Path */*/connectionPools/${1}/statistics/WaitTime/totalTime
|
||||
|
||||
BaseMBean WebSphere:j2eeType=JCAResource,mbeanIdentifier=${0},*
|
||||
BaseAttribute stats
|
||||
BasePath */*/connectionPools/${1}/statistics/WaitTime/count
|
||||
|
||||
Critical ${2:10000}
|
||||
Warning ${3:5000}
|
||||
|
||||
Label $1: %2.2q ms ∅ wait time (%v ms total for %b requests)
|
||||
Name jca-${1}-${0}-wait-time
|
||||
</Check>
|
||||
|
||||
88
config/websphere/jdbc.cfg
Normal file
88
config/websphere/jdbc.cfg
Normal file
@@ -0,0 +1,88 @@
|
||||
# ==============================================================================
|
||||
# JDBC Datasources
|
||||
|
||||
# JDBC Poolsize Check. This check requires two parameters at least:
|
||||
# The name of th JDBC Provider and the data source name. It must be ensured that
|
||||
# the pattern used in this check must result in a single data source only.
|
||||
#
|
||||
# In order to specify this even further, a fourth parameter can be used to
|
||||
# match on part of the mbeanIdentifier.
|
||||
#
|
||||
# ${0} : Name of the JDBC Provider
|
||||
# ${1} : DataSource Name
|
||||
# ${2} : Critical (default: 90%)
|
||||
# ${3} : Warning (default: 80%)
|
||||
# ${4} : Part of mbeanIdentifier (default: *)
|
||||
|
||||
<Check was_jdbc_percent_used>
|
||||
MBean WebSphere:j2eeType=JDBCResource,name=${0},mbeanIdentifier=${4:*},*
|
||||
Attribute stats
|
||||
Path */*/connectionPools/${1}/statistics/PercentUsed/current
|
||||
|
||||
Critical ${2:90}
|
||||
Warning ${3:80}
|
||||
|
||||
Label $1 : %2.0f % DB Connections used
|
||||
Name jdbc-$0-connections
|
||||
</Check>
|
||||
|
||||
# Average wait time until a connection is obtained
|
||||
|
||||
# ${0} : Name of the JDBC Provider
|
||||
# ${1} : Datasource name
|
||||
# ${2} : Critical (default: 10s)
|
||||
# ${3} : Warning (default: 5s)
|
||||
# ${4} : Part of mbeanIdentifier (default: *)
|
||||
<Check was_jdbc_wait_time>
|
||||
MBean WebSphere:j2eeType=JDBCResource,name=${0},mbeanIdentifier=${4:*},*
|
||||
Attribute stats
|
||||
Path */*/connectionPools/${1}/statistics/WaitTime/totalTime
|
||||
|
||||
BaseMBean WebSphere:j2eeType=JDBCResource,name=${0},mbeanIdentifier=${4:*},*
|
||||
BaseAttribute stats
|
||||
BasePath */*/connectionPools/${1}/statistics/WaitTime/count
|
||||
|
||||
Critical ${2:10000}
|
||||
Warning ${3:5000}
|
||||
|
||||
Label $1: %2.2q ms ∅ waiting time (%v ms total for %b requests)
|
||||
Name jdbc-$0-average-wait-time
|
||||
</Check>
|
||||
|
||||
# Check for the number of rolled back transactions
|
||||
#
|
||||
# $0: Part of the MBean identifier
|
||||
# $1: Critical as rollback count / minute
|
||||
# $2: Warning as rollback count / minute
|
||||
<Check was_transaction_rollback_count>
|
||||
Use was_transaction_count($0,"RolledbackCount",$1,$2)
|
||||
</Check>
|
||||
|
||||
# Check for the number of active transactions
|
||||
#
|
||||
# $0: Part of the MBean identifier
|
||||
# $1: Critical as rollback count / minute
|
||||
# $2: Warning as rollback count / minute
|
||||
<Check was_transaction_active_count>
|
||||
Use was_transaction_count($0,"ActiveCount",$1,$2)
|
||||
</Check>
|
||||
|
||||
# Base-Check for the number of transactions
|
||||
#
|
||||
# $0: Part of the MBean identifier
|
||||
# $1: Attribute name
|
||||
# $2: Critical as rollback count / minute
|
||||
# $3: Warning as rollback count / minute
|
||||
<Check was_transaction_count>
|
||||
MBean WebSphere:type=TransactionService,mbeanIdentifier=*${0}*,*
|
||||
Attribute stats
|
||||
Path */*/statistics/${1}/count
|
||||
Delta 60
|
||||
|
||||
Critical ${2:10}
|
||||
Warning ${3:5}
|
||||
|
||||
Label $0 : %2.2q ${1} / minute
|
||||
Name $1-$0-transaction
|
||||
</Check>
|
||||
|
||||
44
config/websphere/jms.cfg
Normal file
44
config/websphere/jms.cfg
Normal file
@@ -0,0 +1,44 @@
|
||||
# =======================================================
|
||||
# WebSphere JMS checks
|
||||
|
||||
# Check the number of message in a queue
|
||||
#
|
||||
# $0: Queue Name
|
||||
# $1: Critical Threshold (default: 10)
|
||||
# $2: Warning Threshold (default: 5)
|
||||
<Check was_jms_depth>
|
||||
MBean WebSphere:type=SIBQueuePoint,name=${0},*
|
||||
Attribute depth
|
||||
|
||||
# Messages Thresshold
|
||||
Critical ${1:10}
|
||||
Warning ${2:5}
|
||||
|
||||
Label %v messages in queue ${0}
|
||||
Name jms-{0}-queue
|
||||
</Check>
|
||||
|
||||
# PMI metrics available over UI but not still via JMX ? -->
|
||||
|
||||
# Queues.QueueStats.LocalProducerAttachesCount
|
||||
# Queues.QueueStats.LocalProducerCount
|
||||
# Queues.QueueStats.LocalConsumerAttachesCount
|
||||
# Queues.QueueStats.LocalConsumerCount
|
||||
# Queues.QueueStats.TotalMessagesProducedCount
|
||||
# Queues.QueueStats.BestEffortNonPersistentMessagesProducedCount
|
||||
# Queues.QueueStats.ExpressNonPersistentMessagesProducedCount
|
||||
# Queues.QueueStats.ReliableNonPersistentMessagesProducedCount
|
||||
# Queues.QueueStats.ReliablePersistentMessagesProducedCount
|
||||
# Queues.QueueStats.AssuredPersistentMessagesProducedCount
|
||||
# Queues.QueueStats.TotalMessagesConsumedCount
|
||||
# Queues.QueueStats.BestEffortNonPersistentMessagesConsumedCount
|
||||
# Queues.QueueStats.ExpressNonPersistentMessagesConsumedCount
|
||||
# Queues.QueueStats.ReliableNonPersistentMessagesConsumedCount
|
||||
# Queues.QueueStats.ReliablePersistentMessagesConsumedCount
|
||||
# Queues.QueueStats.AssuredPersistentMessagesConsumedCount
|
||||
# Queues.QueueStats.ReportEnabledMessagesExpiredCount
|
||||
# Queues.QueueStats.AggregateMessageWaitTime
|
||||
# Queues.QueueStats.LocalMessageWaitTime
|
||||
# Queues.QueueStats.LocalOldestMessageAge
|
||||
# Queues.QueueStats.AvailableMessageCount
|
||||
# Queues.QueueStats.UnavailableMessageCount
|
||||
45
config/websphere/threads.cfg
Normal file
45
config/websphere/threads.cfg
Normal file
@@ -0,0 +1,45 @@
|
||||
# ============================================
|
||||
# Thread Pool Checks
|
||||
|
||||
# Generic Thread-Pool Check for the size of a Thread-Pool
|
||||
#
|
||||
# $0: Name of ThreadPool (z.B. "WebContainer")
|
||||
# $1: Critical (default: 90%)
|
||||
# $2: Warning (default: 80%)
|
||||
<Check was_thread_pool_size>
|
||||
Use was_thread_pool($0,'PoolSize',$1,$2)
|
||||
Label $0: %2.2r% threads used (%v / %b)
|
||||
</Check>
|
||||
|
||||
# Generic Thread-Pool Check for the number of active threads
|
||||
# within the thread pool
|
||||
#
|
||||
# $0: Name of ThreadPool (z.B. "WebContainer")
|
||||
# $1: Critical (default: 90%)
|
||||
# $2: Warning (default: 80%)
|
||||
<Check was_thread_pool_active>
|
||||
Use was_thread_pool($0,'ActiveCount',$1,$2,)
|
||||
Label $0: %2.2r% active threads (%v / %b)
|
||||
</Check>
|
||||
|
||||
# Base Check for thread-pools checks
|
||||
# $0: Name of ThreadPool (z.B. "WebContainer")
|
||||
# $1: Attribute (PoolSize or ActiveCount)
|
||||
# $2: Critical (default: 90%)
|
||||
# $3: Warning (default: 80%)
|
||||
<Check was_thread_pool>
|
||||
MBean WebSphere:name=${0},type=ThreadPool,*
|
||||
Attribute stats
|
||||
Path */*/statistics/${1}/current
|
||||
|
||||
BaseMBean WebSphere:name=${0},type=ThreadPool,*
|
||||
BaseAttribute stats
|
||||
BasePath */*/statistics/${1}/upperBound
|
||||
|
||||
Critical ${2:90}
|
||||
Warning ${3:80}
|
||||
|
||||
Label = ${0}: %.2r% Threads [${1}] (%v / %b)
|
||||
Name = ${0}-${1}-threadpool
|
||||
</Check>
|
||||
|
||||
Reference in New Issue
Block a user