Plugin for GlassFish Monitoring

Monitor GlassFish servers using Site24x7 and stay on top of issues.

Start 30-day free trial Try now, sign up in 30 seconds

Setup

Prerequisites

  • Download and install the Site24x7 server monitoring agent (Linux | Windows) on the server where you plan to run the plugin.
  • Ensure you have Python 3 or a higher version running in your server.

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.py
    wget 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
Looking for assistance? We’re here to help!

Want to learn more?

  • Personalized product demo
  • Proof of concept for set up
  • 30-day, unlimited, free trial
Request a Demo

Interested in our services?

  • 24/5 customer support
  • Flexible and competitive pricing
  • Better ROI
Get quote