|
Key
This line was removed.
This word was removed. This word was added.
This line was added.
|
Changes (1)
View Page History{code}
h2. Petals BC Soap services
To add services associated to the BC SOAP, you can add a service based on the following one that check the current number of allocated threads of the HTTP thread pool:
{code}
########################################################
#### Dedicated commands to monitor a Petals BC SOAP ####
########################################################
define command{
command_name petals_bcsoap_httpthreadpool_currentallocatedthreads
command_line /usr/lib/nagios/plugins/check_petals_bcsoap -h '$HOSTADDRESS$' -n '$_HOSTJMXPORT$' -u '$_HOSTJMXUSER$' -p '$_HOSTJMXPASSWORD$' --http-thread-pool-current-allocated-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 thread number.
# According to default value: Warining if > 40, critical if > 45.
define service{
use generic-service
hostgroup_name petals-esb
service_description Petals BC SOAP - HTTP Thread Pool - Current allocated thread
check_command petals_bcsoap_httpthreadpool_currentallocatedthreads!petals-bc-soap!40!45
servicegroups petals-services
}
{code}
where {{check_petals_bcsoap}} is a nagios plugin wrapping Petals CLI. You can get a such plugin here.
To add services associated to the BC SOAP, you can add a service based on the following one that check the current number of allocated threads of the HTTP thread pool:
{code}
########################################################
#### Dedicated commands to monitor a Petals BC SOAP ####
########################################################
define command{
command_name petals_bcsoap_httpthreadpool_currentallocatedthreads
command_line /usr/lib/nagios/plugins/check_petals_bcsoap -h '$HOSTADDRESS$' -n '$_HOSTJMXPORT$' -u '$_HOSTJMXUSER$' -p '$_HOSTJMXPASSWORD$' --http-thread-pool-current-allocated-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 thread number.
# According to default value: Warining if > 40, critical if > 45.
define service{
use generic-service
hostgroup_name petals-esb
service_description Petals BC SOAP - HTTP Thread Pool - Current allocated thread
check_command petals_bcsoap_httpthreadpool_currentallocatedthreads!petals-bc-soap!40!45
servicegroups petals-services
}
{code}
where {{check_petals_bcsoap}} is a nagios plugin wrapping Petals CLI. You can get a such plugin here.
h2. Restart Nagios