Skip to content

Sample code how to monitor wildfly instances in domain mode with zabbix

License

Notifications You must be signed in to change notification settings

gimmesomethinggood/wildfly-jvm-monitor

 
 

Repository files navigation

Provides basic jvm stats monitoring for wildfly with two slaves

The following components of wildfly are monitored through this script collection:

  • host controller
  • process controller
  • slave100
  • slave200

where slave100 and slave200 are the names of the two servers configured on the monitored host. While a more generic approach to server monitoring would be certainly a good idea, I won't be able to provide it due to time constraints. I will happily accept patches that do though.

Usage

In order to work this collection of scripts require the use of a zabbix_agent.d configuration (/etc/zabbix/zabbix_agentd.d/userparameter_jvm.conf) as follows:

# JVM user parameter
UserParameter=jvm.processcontroller.running[*],/opt/jvm-monitor/monitor-jvm.sh "$1"
UserParameter=jvm.processcontroller.limittrapstarter[*],/opt/jvm-monitor/monitor-jvm-limits.sh "$1"

Requirements

The script collection has been tested on CentOS 6, 7 and SmartOS using an Oracle 1.7 jdk. Some script pathes are hardcoded due to timeconstraints which implies that the scripts in their current state have to be located in the folder /opt/jvm-monitor.

Disclaimer

These scripts are provided as is and come with no warranty and no further documentation. They can't be deployed and run out-of-the-box. You will need to be familiar with wildfly, bash and zabbix to make use of it. They weren't intended for public release when written. I've published them upon request by: https://issues.jboss.org/browse/WFCORE-974#

About

Sample code how to monitor wildfly instances in domain mode with zabbix

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Shell 100.0%