Bug 875202 - [iis] ResponseTime data fails to be collected due to incorrect and hard-coded log file prefix validation
Summary: [iis] ResponseTime data fails to be collected due to incorrect and hard-coded...
Keywords:
Status: CLOSED WONTFIX
Alias: None
Product: JBoss Operations Network
Classification: JBoss
Component: Plugin -- Other
Version: JON 3.1.1
Hardware: All
OS: Windows
unspecified
high
Target Milestone: ---
: JON 3.1.2
Assignee: RHQ Project Maintainer
QA Contact: Mike Foley
URL:
Whiteboard:
Depends On: 875203
Blocks:
TreeView+ depends on / blocked
 
Reported: 2012-11-09 19:38 UTC by Larry O'Leary
Modified: 2018-11-29 19:37 UTC (History)
1 user (show)

Fixed In Version:
Clone Of:
: 875203 (view as bug list)
Environment:
Last Closed: 2012-11-20 20:59:39 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Bugzilla 873494 0 unspecified CLOSED [iis] Discovery of IIS VHost fails due to Win32Exception: MetaBaseInit: Can't CoCreateInstance from Sigar 2021-02-22 00:41:40 UTC
Red Hat Bugzilla 875206 0 unspecified CLOSED [iis] ResponseTime data fails to be collected due to file offset calculation issue 2021-02-22 00:41:40 UTC

Internal Links: 873494 875206

Description Larry O'Leary 2012-11-09 19:38:17 UTC
Description of problem:
Response Time (CallTime) metrics for an IIS VHost are not being collected and the following message is logged in the agent:

DEBUG [ResourceContainer.invoker.daemon-2] (org.rhq.plugins.iis.IISResponseTimeDelegate)- No log files exist yet


This failure is due to the plug-in looking for the wrong file name prefix. It appears that in IIS 7+ the default log file name begins with "u_ex" however, in IIS 6 (and the existing plug-in) "ex" was the prefix.

Version-Release number of selected component (if applicable):
4.4.0.JON311GA

How reproducible:
Always

Additional info:
From the support engineer who did some preliminary investigating:

After performing some tests locally, I have identified that the root cause should be related to the logging file name. As described in this page [2], "By Default IIS 7 log file format is stored using the u_ex prefix rather than ex prefix as seen in IIS 6." and there is a validation to check the logging file name, as follows:

**CLASS: IISResponseTimeDelegate

 -> This is a snippet of the class that contains the method responsible for validating the file name:

        private class IISResponseTimeLogFileFilter implements FileFilter {
            public boolean accept(File f) {
                String fileName = f.getName().toLowerCase();
                return fileName.startsWith("ex") && fileName.endsWith(".log");
            }
        }

Comment 2 Larry O'Leary 2012-11-20 22:59:46 UTC
IIS 7.5 is not supported by plugin.


Note You need to log in before you can comment on or make changes to this bug.