Bug 534396 (RHQ-1197)

Summary: let agent inventory the .sh/.bat/.conf scripts so we can configure them via UI
Product: [Other] RHQ Project Reporter: John Mazzitelli <mazz>
Component: PluginsAssignee: John Mazzitelli <mazz>
Status: CLOSED NEXTRELEASE QA Contact: Jeff Weiss <jweiss>
Severity: medium Docs Contact:
Priority: medium    
Version: unspecifiedCC: dajohnso
Target Milestone: ---Keywords: SubFeature
Target Release: ---   
Hardware: All   
OS: All   
URL: http://jira.rhq-project.org/browse/RHQ-1197
Whiteboard:
Fixed In Version: 1.2 Doc Type: Enhancement
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 534300    

Description John Mazzitelli 2008-12-01 02:56:00 UTC
To facilitate the ability for admins to fully configure, restart and update agents without having to log into the remote agent machine, it would be nice to add the ability of the agent plugin to inventory the rhq-agent[-wrapper].[sh, bat, conf] script files.  We should then be able to reconfigure those files or even push out new content.

The minimum we should be able to do is reconfigure rhq-agent-env.[sh,bat] and rhq-agent-wrapper.conf since they control the settings/options the agent uses to start up.

Comment 1 John Mazzitelli 2008-12-09 06:49:01 UTC
svn rev2248 now inventorys the rhq-agent-env.bat/sh and lets you view/edit its variables via the configuration tab.

still have to do the .conf file for when you run as a service on windows

Comment 2 John Mazzitelli 2008-12-09 22:04:49 UTC
rev2264 - can see the Java Service Wrapper in inventory now - can load config. can't update config yet

Comment 3 John Mazzitelli 2008-12-09 22:51:46 UTC
rev 2269 can now update jsw files

Comment 4 John Mazzitelli 2008-12-10 03:29:47 UTC
all changes are found at 2273 and before.

We can now inventory the rhq-agent-env.sh (if on UNIX) or rhq-agent-env.bat (if on windows). you will never have both - only one.

We also can inventory the RHQ Agent Java Service Wrapper service if on Windows (this is not on agents running in a UNIX environment).  This has three groups of config for the .conf, .env and .inc files used to configure the JSW.

Comment 5 Jeff Weiss 2008-12-19 20:10:35 UTC
rev2424, tested read-only JSW attrs, config changes to rhq-agent-env.bat, reverting. 

Comment 6 Red Hat Bugzilla 2009-11-10 20:27:52 UTC
This bug was previously known as http://jira.rhq-project.org/browse/RHQ-1197
This bug relates to RHQ-1108