Monitoring Petals ESB with Nagios

compared with
Current by Christophe DENEUX
on Dec 18, 2015 16:02.

Key
This line was removed.
This word was removed. This word was added.
This line was added.

Changes (10)

View Page History
{info}Following examples are based on a Petals ESB topology composed of two nodes on the same host.{info}

{warning}In this documentation, the term "Allocated threads" must be understood as "Active threads", see [PETALSDISTRIB-37|https://jira.petalslink.com/browse/PETALSDISTRIB-37]. This naming error will be fixed in the next version.{warning}

h2. Nagios screenshots extract samples


To check the health of the BC SOAP, you can add several services to check:
* the current number of allocated active thread of the HTTP thread pool.
* the outgoing web-service client pools,
* the message exchange acceptor pool,
{tip}The Nagios plugin for Petals requires having installed Petals CLI using Debian package, or having the Petals CLI in your path{tip}

h4. Checking the current number of allocated thread active threads of the HTTP thread pool

{code}

#
# Monitoring of the current allocated active threads of the HTTP server thread pools
#
define command{
command_name petals_bcsoap_httpthreadpool_currentallocatedthreads command_name petals_bcsoap_httpthreadpool_currentactivethreads
command_line /usr/lib/nagios/plugins/check_petals_bcsoap -h '$HOSTADDRESS$' -n '$_HOSTJMXPORT$' -u '$_HOSTJMXUSER$' -p '$_HOSTJMXPASSWORD$' --http-thread-pool-current-allocated-threads --http-thread-pool-current-active-threads -i '$ARG1$' -w '$ARG2$' -c '$ARG3$'
}

# Define a service to check the HTTP Thread pool of the Petals BC SOAP against the current
# allocated active thread number.
# According to default value: Warning if > 40, critical if > 45.
define service{
use generic-service
hostgroup_name petals-esb
service_description BC SOAP - HTTP Server - Current allocated active threads
display_name Petals BC SOAP - HTTP Thread Pool - Current allocated active thread
check_command petals_bcsoap_httpthreadpool_currentallocatedthreads!petals-bc-soap!40!45 petals_bcsoap_httpthreadpool_currentactivethreads!petals-bc-soap!40!45
servicegroups petals-services
contact_groups petals-esb