Re: How can I use the check_tomcat script to monitor ?
Posted: Sun Sep 06, 2015 8:01 pm
Accroding to the PDF: Monitoring JMX with Nagios XI
I use this command,Please see picture 27,it's OK now.
I install rrdtool+pnp4nagios on nagios server.
Then the picture 28 , 29 show the photo of the cpu , memory status.
I configure the content of the services.cfg on nagios server is:
#######################################################################
define service{
use local-service,srv-pnp
host_name cmmsgplm.ECMMS.FOXCONN
service_description check-CPULOAD
check_period 24x7
max_check_attempts 4
normal_check_interval 3
retry_check_interval 2
contact_groups GROUP
notification_interval 10
notification_period 24x7
notification_options w,u,c,r
check_command check_nt!CPULOAD!-l 5,80,90
}
define service{
use srv-pnp
host_name cmmsgplm.ECMMS.FOXCONN
service_description check-MEMINFO
check_period 24x7
max_check_attempts 4
normal_check_interval 3
retry_check_interval 2
contact_groups GROUP
notification_interval 10
notification_period 24x7
notification_options w,u,c,r
check_command check_nt!MEMUSE!-w 80 -c 90
}
##############################################################################
Now I want to show the JMX status photo on the nagios web interface ,include Heap Memory Usage , Threads, CPU Usage.
How could I configure the services.cfg to finish this goal ?
I use this command,Please see picture 27,it's OK now.
I install rrdtool+pnp4nagios on nagios server.
Then the picture 28 , 29 show the photo of the cpu , memory status.
I configure the content of the services.cfg on nagios server is:
#######################################################################
define service{
use local-service,srv-pnp
host_name cmmsgplm.ECMMS.FOXCONN
service_description check-CPULOAD
check_period 24x7
max_check_attempts 4
normal_check_interval 3
retry_check_interval 2
contact_groups GROUP
notification_interval 10
notification_period 24x7
notification_options w,u,c,r
check_command check_nt!CPULOAD!-l 5,80,90
}
define service{
use srv-pnp
host_name cmmsgplm.ECMMS.FOXCONN
service_description check-MEMINFO
check_period 24x7
max_check_attempts 4
normal_check_interval 3
retry_check_interval 2
contact_groups GROUP
notification_interval 10
notification_period 24x7
notification_options w,u,c,r
check_command check_nt!MEMUSE!-w 80 -c 90
}
##############################################################################
Now I want to show the JMX status photo on the nagios web interface ,include Heap Memory Usage , Threads, CPU Usage.
How could I configure the services.cfg to finish this goal ?