|
Key
This line was removed.
This word was removed. This word was added.
This line was added.
|
Changes (6)
View Page HistoryAll these checks are grouped in the following [configuration|https://anonymous:anonymous@svn.petalslink.org/svnroot/trunk/product/dev/prod/petals/client-tools/petals-nagios/src/cfg/petals-esb-bcsoap.cfg] that you can put in the directory {{/etc/nagios3/conf.d}}.
The configuration uses a nNagios plugin wrapping Petals CLI: {{check_petals_bcsoap}}. You can get a such plugin [here|https://anonymous:anonymous@svn.petalslink.org/svnroot/trunk/product/dev/prod/petals/client-tools/petals-nagios/src/scripts/check_petals_bcsoap] and put it in your directory {{/usr/lib/nagios/plugins}}.
{tip}The Nagios plugin for Petals requires having install Petals CLI using Debian package, or having the Petals CLI in your path{tip}
h4. Checking the current number of allocated thread of the HTTP thread pool
# Define a service to check the HTTP Thread pool of the Petals BC SOAP against the current
# allocated thread number.
# allocated thread number.
# According to default value: Warining if > 40, critical if > 45.
define service{
use generic-service
hostgroup_name petals-esb
use generic-service
hostgroup_name petals-esb
service_description petals-esb-bcsoap-httpthreadpool-current-allocated BC SOAP - HTTP Server - Current allocated threads
display_name Petals BC SOAP - HTTP Thread Pool - Current allocated thread
check_command petals_bcsoap_httpthreadpool_currentallocatedthreads!petals-bc-soap!40!45
check_command petals_bcsoap_httpthreadpool_currentallocatedthreads!petals-bc-soap!40!45
{code}
h4. Checking the current number of message exchange acceptors
{code}
#
# Monitoring of the current message exchange acceptor thread
#
define command{
command_name petals_bcsoap_mex_current_acceptor_threads
command_line /usr/lib/nagios/plugins/check_petals_bcsoap -h '$HOSTADDRESS$' -n '$_HOSTJMXPORT$' -u '$_HOSTJMXUSER$' -p '$_HOSTJMXPASSWORD$' --mex_current_acceptor_threads -i '$ARG1$' -w '$ARG2$' -c '$ARG3$'
}
# Define a service to check the message exchange acceptor thread pool.
# According to default value: Warning if < 3, critical if < 2.
define service{
use generic-service
hostgroup_name petals-esb
service_description BC SOAP - Current MEX acceptor threads
display_name Petals BC SOAP - Message exchange acceptor thread pool
check_command petals_bcsoap_mex_current_acceptor_threads!petals-bc-soap!3!2
servicegroups petals-services
contact_groups petals-esb
}
{code}
#
# Monitoring of the current message exchange acceptor thread
#
define command{
command_name petals_bcsoap_mex_current_acceptor_threads
command_line /usr/lib/nagios/plugins/check_petals_bcsoap -h '$HOSTADDRESS$' -n '$_HOSTJMXPORT$' -u '$_HOSTJMXUSER$' -p '$_HOSTJMXPASSWORD$' --mex_current_acceptor_threads -i '$ARG1$' -w '$ARG2$' -c '$ARG3$'
}
# Define a service to check the message exchange acceptor thread pool.
# According to default value: Warning if < 3, critical if < 2.
define service{
use generic-service
hostgroup_name petals-esb
service_description BC SOAP - Current MEX acceptor threads
display_name Petals BC SOAP - Message exchange acceptor thread pool
check_command petals_bcsoap_mex_current_acceptor_threads!petals-bc-soap!3!2
servicegroups petals-services
contact_groups petals-esb
}
{code}
h3. Passive check