1 Reply Latest reply on Apr 21, 2011 9:17 AM by mazz

    Very rare JON monitoring scenario

    bensonfungjava

      Hi,

       

      I just came across very rare monitoring scenario using JON.  And hope any expert can help.

       

      Scenario :

       

      The target Jboss app. server is 5.0.1 running on window server 2008.  The app. server is running as a window service(put the command , 'run -b [ip address] -c [profile] -D.....' into services.bat).  I also installed the agent to monitor this app. server for communication with the JON server.  Unfortunately, JON cannot discover this resources.

      However,  if run the target JBoss app. server in command mode, i.e. type the same command in the command prompt.  JON can monitor the target server without any problem.

       

      Is there anyone who has similar experience of this?  Or JON has limitation of monitoring the JBOSS app. server which is running as window service?  Please help

       

       

      Thanks

        • 1. Very rare JON monitoring scenario
          mazz

          Because of the many ways one can start JBossAS (using the standard run.bat, writing your own custom script to run it, running it as a service as you have done here via some custom service.bat, et. al.), it would be impractical to be able to code up the agent (more specifically the JBoss agent plugin) to be able to auto-detect JBossAS that was run in all these different ways. Today, it tries to detect it by peering in the operating system's process table and looks for a certain signature of the process that would match a typical JBossAS server (i.e. look for "java" or "java.exe" process that is running a "org.jboss.Main" class - see the JBoss plugin descriptor's "process-scan" element for the patterns it looks for).

           

          If for some reason your JBossAS process cannot be auto-discovered, all is not lost. You can "manually add" your JBossAS Server resource into inventory - effectively helping the agent find your JBossAS Server. From the GUI, navigate to the platform resource (which must be in inventory already) and somewhere (depending on the version you are using - usually its in the Inventory subtab) you can select the "manually add" option (in our latest version of the GUI its called "Import") and tell it all the information the agent needs to find and manage your JBossAS server - this means filling in all the connection settings such as the JNP URL. See the documentation for more information on how to manually add a resource into your inventory.