5 Replies Latest reply on Aug 7, 2013 4:29 AM by huchangchun

    Any way to retrieve a file from client? (or "So my developers want full log files...")

    ehle

      Hello,

       

      I'm trying to deploy a JON 3.1.2 + EAP6.1 Environment (Red Hat versions).  One of the things we would REALLY like to do is make RHQ/JON the one stop interface for developers/release managagers to go for their interaction with the JBoss/Wildfly platform.

       

      I think we have almost everything figured out except logging... they need to be able to see full log files for doing debugging - especially on developement systems.  I've set up Event Monitoring from log files via Inventory > [Platform || Platform > JBoss....]>Connection Settings> Log Event Sources, but they still want the full log files. I think they want to see the full error stacks in a fashion they are used to...

       

      Is there any way to get these available through the JON/RHQ web interface, or as downloadable files?

       

      RH documentation alludes to using a script resource and cat'ing the files, but mentions a 2000 character limit... Don't think that will be enough. 

       

      Has anyone else run up against this?  I thought it would be a common request.  What were your solutions?  I'd really like to keep it all in RHQ/JON.

       

      Thanks!

       

      David.

        • 1. Re: Any way to retrieve a file from client? (or "So my developers want full log files...")
          mazz

          There is a thing called the "support" subsystem but it doesn't have any real GUI front end to it.

           

          The thinking was to be able to click a button and have a resource zip up a bunch of files to then give to support engineers. Zip up files like config files and log files. I don't know if the latest JBossAS7 plugin supports this but the 4 and 5 plugins did (as well as the agent).

           

          Again, this subsystem wasn't completed and only had server side and agent/plugin side support - nothing in the UI other than a test admin page. I think if you go to the localhost:7080/coregui/CoreGUI.html#Test page, there is a textfield/button somewhere under a control page) that let you enter a resource ID and it would bundle up the log/config files (and data files and bin files too) and put the zip on the RQH Server's download location so you can grab it via HTTP.

           

          It would have been nice for a developer to run with this feature and perhaps flesh out the implementation on the GUI front end side, but since we didn't have alot of people asking for this feature, we let it drop and didn't fill it out further. There is probably alot more we could do.

          1 of 1 people found this helpful
          • 2. Re: Any way to retrieve a file from client? (or "So my developers want full log files...")
            huchangchun

            Hello Ehle,

            We have the same problem.

            We plan to enable FTP service on the EAP6.1 server, and then provide the FTP address (including the FTP user and FTP password) on JON.

            User can copy the address from JON and put it browser to download the file.

            Thanks.

            1 of 1 people found this helpful
            • 3. Re: Any way to retrieve a file from client? (or "So my developers want full log files...")
              ehle

              Thank you Mazz,

               

              The quick response is much appreciated! Sorry for the tardiness of my own.

               

              A "zip files and send" feature would be a great solution - maybe someday.  Along those same lines, if less elegently... could this be something that could be done via an "execute this script" operation? If I wanted to be able to script putting something "on the RQH Server's download location so you can grab it via HTTP," how would I go about doing that?  If its documented, please feel free to just point me at it

               

              Thank you again for you help!

               

              David.

              • 4. Re: Any way to retrieve a file from client? (or "So my developers want full log files...")
                ehle

                Thank you Hu,

                 

                 

                That is a reasonable solution.  We would just like to keep everything "inside" JON if possible, and woud also like to avoid requiring login credentials on the EAP servers. I guess we could give ONLY FTP access and tie it to the same privlege groups as JON is using... something worth considering at least!

                 

                Thanks again for your help.

                 

                David.

                • 5. Re: Any way to retrieve a file from client? (or "So my developers want full log files...")
                  huchangchun

                  Hello ehle,

                  You are welcome. Could you let me know when you get this problem solved?

                  Currently, we use the FTP solution as a workaround, and we really would like to have the same function as you expect.

                  Thanks.

                  Hu Changchun