JON Apache Plugin cannot parse config files that contain Variables
Issue
- JON unable to discover httpd instances when
httpd.confcontains environment variables - Errors in the agent.log when it is trying to discover the Apache instance whose
httpd.conffile contains environment variables; - Error complaining that we are using shell variables inside
httpd.conf. - We have many Apache configuration files that are included using environment variables but JON fails to load configuration and Apache plug-in throws an exception:
^\/my\/path\/2\.1\/0\/httpd\/${tmp}\/test_conf\.cfg$
^
at java.util.regex.Pattern.error(Pattern.java:1924)
at java.util.regex.Pattern.closure(Pattern.java:3104)
at java.util.regex.Pattern.sequence(Pattern.java:2101)
at java.util.regex.Pattern.expr(Pattern.java:1964)
at java.util.regex.Pattern.compile(Pattern.java:1665)
at java.util.regex.Pattern.<init>(Pattern.java:1337)
at java.util.regex.Pattern.compile(Pattern.java:1022)
at org.rhq.augeas.util.GlobFilter.convert(GlobFilter.java:143)
at org.rhq.augeas.util.GlobFilter.<init>(GlobFilter.java:56)
at org.rhq.augeas.util.Glob.match(Glob.java:154)
at org.rhq.plugins.apache.parser.ApacheParserImpl.getIncludeFiles(ApacheParserImpl.java:134)
at org.rhq.plugins.apache.parser.ApacheParserImpl.addDirective(ApacheParserImpl.java:64)
at org.rhq.plugins.apache.parser.ApacheConfigReader.searchFile(ApacheConfigReader.java:48)
- JON Apache Plugin cannot parse config files that contain Variables;
Environment
- Red Hat JBoss Operations Network (ON) 3
httpd.confcontains environment variable references - for instance:
Include /path/to/my/${Domain}/include.d/*.conf
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.