Setup
Prerequisites
Plugin installation
- Create a folder named glassfish.
- Download the glassfish.py and the glassfish.cfg files from our GitHub repository and place them in the glassfish folder.
wget https://raw.githubusercontent.com/site24x7/plugins/master/glassfish/glassfish.py && sed -i "1s|^.*|#! $(which python3)|" glassfish.pywget https://raw.githubusercontent.com/site24x7/plugins/master/glassfish/glassfish.cfg
-
To check if the plugin is working, execute the command below with appropriate arguments, and check for a valid JSON output with applicable metrics and their corresponding values.
python3 glassfish.py --host "hostname" --port "port no" --username "username" --password "password" --ssl "false" --insecure "false"
-
Add the applicable configurations in the glassfish.cfg file.
[localhost] host="localhost"
port="4848"
ssl="false"
insecure="false"
username="None"
password="None"Note for the configurations above:
host: The IP address or domain name of the server you're trying to connect to.
port: Admin port of the Glassfish server.
ssl: Connect with https if "true" and http if "false".
insecure: If this parameter is set to "true", it allows you to connect even if the certificate is invalid. This should only be used in testing environments.
username and password: These credentials are required if any form of authentication set up for the server.
- Follow the steps in this article to learn how to run the Python script on Windows Server. You don't need to do this for Linux.
- Move the glassfish folder to the Site24x7 server monitoring plugin directory:
- For Linux: /opt/site24x7/monagent/plugins/ For Windows: C:\Program Files (x86)\Site24x7\WinAgent\monitoring\plugins\
The agent will automatically execute the plugin within five minutes and display performance data in Site24x7.
- Log in to Site24x7.
- Navigate to Plugins and click the required monitor.
Related plugins:
- Redis plugin - Monitor performance metrics of your Redis databases
- MongoDB plugin - Monitor performance metrics of your MongoDB databases
- Memcached plugin - Analyze performance of your Memcached server
- Nagios plugin - Execute thousands of Nagios plugins in Site24x7 without the need of running a Nagios server
- Out-of-the-box plugins - Monitor your entire app stack with our extensive list of integrations
- Create custom plugins - Create custom Linux and Windows plugins and monitor custom attributes