History | Log In     View a printable version of the current page.  
HQ 4.0 EE Release is Now Available | HQ 3.2.5-EE Maintenance Release is Now Available
Issue Details (XML | Word | Printable)

Key: HHQ-51
Type: Bug Bug
Status: Resolved Resolved
Resolution: Fixed
Priority: Minor Minor
Assignee: Doug MacEachern
Reporter: Charles Lee
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
Hyperic HQ

Apache configuration properties need OS/distro specific defaults

Created: 16/Mar/06 11:14 AM   Updated: 30/Jun/08 12:06 PM
Component/s: Plugins
Affects Version/s: None
Fix Version/s: 3.2.4

Environment: Linux

Last comment: 22 weeks, 4 days ago
Resolution Date: 15/Jun/08 08:44 PM


 Description  « Hide
The apache plugin has defaults for the following configuration properties relative to the discovered installpath:
program - bin/apachectl
pidfile - logs/httpd.pid
server.config_track.files - logs/error_log
server.log_track.files - conf/httpd.conf

These defaults are reasonable when apache is built from source, but most OS distributions of Apache httpd define their own layout.
Manually changing these values is cumbersome.

 All   Comments   Change History      Sort Order: Ascending order - Click to sort in descending order
Ryan Morgan - 15/Jan/08 11:32 AM

As discussed during today's stand up meeting, move into 3.2.1 fix version.

Ryan Morgan - 21/Feb/08 10:02 AM
Move to 3.2.2.

Kashyap Parikh - 13/Mar/08 11:04 AM
Moving to 3.2.3

Doug MacEachern - 15/Jun/08 07:30 PM
Implemented a mechanism for the defaults to be defined in etc/plugin.properties:
http://svn.hyperic.org/trunk/plugins/apache/etc/plugin.properties?root=Hyperic+HQ&view=co

Note that even if we were to implement an apache config parser:
- The path to apachectl is not defined in the .conf nor is it in the process table
- The path to the .conf file itself would either be in the process arguments or compiled into the binary
- The only software that can properly parse httpd.conf is httpd itself at runtime with its modules loaded

Will be adding a few more distros and more testing before closing this out.

Doug MacEachern - 15/Jun/08 08:44 PM
Tested with distros listed the plugin.properties link.

3.2.4:
Revision: 9802
Added:
   branches/HQ_3_2/plugins/apache/etc/plugin.properties
Modified:
   branches/HQ_3_2/plugins/apache/src/org/hyperic/hq/plugin/apache/ApacheServerDetector.java
   branches/HQ_3_2/plugins/apache/src/org/hyperic/hq/plugin/apache/ErsApacheServerDetector.java

4.0.0: r9799..r9801