I have apache installed and running out of C:\mazz\apache-httpd. I do NOT have C:\apache or anything under C:\ that resembles apache. The apache discovery is discovering my apache server plus another one - but its a ghost - doesn't really exist on my box: sending> discovery -r "Apache HTTP Server" Apache.Apache HTTP Server: Starting discovery... Apache.Apache HTTP Server: Process scan detected a server - scan=[ProcessScan: query=[process|basename|match=httpd.*,process|basename|nomatch|parent=httpd.*], name=[HttpdOnUnix]], process=[process: pid=[508], name=[C:\mazz\apache-httpd\bin\httpd.exe], ppid=[1880]] Apache.Apache HTTP Server: Process scan detected a server - scan=[ProcessScan: query=[process|basename|match=(?i)httpd.exe,process|basename|match|parent=(?i)httpd.exe], name=[HttpdOnWindows]], process=[process: pid=[624], name=[C:\mazz\apache-httpd\bin\httpd.exe], ppid=[508]] Apache.Apache HTTP Server: key=[C:\mazz\apache-httpd], name=[mazzthink Apache 2.2.9 (C:\mazz\apache-httpd\)], version=[2.2.9], description=[Apache Web Server] Apache.Apache HTTP Server: key=[C:\apache], name=[mazzthink Apache 2.2.9 (C:\apache\)], version=[2.2.9], description=[Apache Web Server] Apache.Apache HTTP Server: Done.
Here's the results of those piql queries: shutdown> piql verbose process|basename|match=httpd.*,process|basename|nomatch|parent=httpd.* PIQL Query: [process|basename|match=httpd.*,process|basename|nomatch|parent=httpd.*] Found the following matching processes: pid=508, ppid=1880, name=C:\mazz\apache-httpd\bin\httpd.exe, created=2/20/09, kernel-time=15, user-time=62, command-line=[C:\mazz\apache-httpd\bin\httpd.exe, -k, runservice] shutdown> piql verbose process|basename|match=(?i)httpd.exe,process|basename|match|parent=(?i)httpd.exe PIQL Query: [process|basename|match=(?i)httpd.exe,process|basename|match|parent=(?i)httpd.exe] Found the following matching processes: pid=624, ppid=508, name=C:\mazz\apache-httpd\bin\httpd.exe, created=2/20/09, kernel-time=31, user-time=31, command-line=[C:\mazz\apache-httpd\bin\httpd.exe, -d, C:/mazz/apache-httpd, -f, C:\mazz\apache-httpd\conf\httpd.conf, -d, C:\mazz\apache-httpd\.]
I was trying to reproduce this on XP and did not see errors: Can you try again locally? Probably by first uninventoring existing apaches? > discovery Apache.Apache HTTP Server: Starting discovery... Apache.Apache HTTP Server: Process scan detected a server - scan=[ProcessScan: query=[process|basename|match=(?i)httpd.exe,process|basename|match|parent=(?i)httpd.exe], name=[HttpdOnWindows]], process=[process: pid=[3912], name=[C:\heiko\apache-httpd\bin\httpd.exe], ppid=[3876]] Apache.Apache HTTP Server: Process scan detected a server - scan=[ProcessScan: query=[process|basename|match=httpd.*,process|basename|nomatch|parent=httpd.*], name=[HttpdOnUnix]], process=[process: pid=[3876], name=[C:\heiko\apache-httpd\bin\httpd.exe], ppid=[1972]] Apache.Apache HTTP Server: key=[C:\heiko\apache-httpd], name=[bender Apache 2.2 .11 (C:\heiko\apache-httpd\)], version=[2.2.11], description=[Apache Web Server] Apache.Apache HTTP Server: Done. > piql verbose process|basename|match=httpd.*,process|basename|nomatch|parent=httpd.* PIQL Query: [process|basename|match=httpd.*,process|basename|nomatch|parent=httpd.*] Found the following matching processes: pid=3876, ppid=1972, name=C:\heiko\apache-httpd\bin\httpd.exe, created=04.03.09 kernel-time=120, user-time=30, command-line=[C:\heiko\apache-httpd\bin\httpd.exe, -w, -f, C:\heiko\apache-httpd\conf\httpd.conf, -d, C:\heiko\apache-httpd\.] > > piql verbose process|basename|match=(?i)httpd.exe,process|basename|match|parent=(?i)httpd.exe PIQL Query: [process|basename|match=(?i)httpd.exe,process|basename|match|parent=(?i)httpd.exe] Found the following matching processes: pid=3912, ppid=3876, name=C:\heiko\apache-httpd\bin\httpd.exe, created=04.03.09, kernel-time=80, user-time=40, command-line=[C:\heiko\apache-httpd\bin\httpd.exe , -d, C:/heiko/apache-httpd, -f, C:\heiko\apache-httpd\conf\httpd.conf, -d, C:\heiko\apache-httpd\.] >
This bug was previously known as http://jira.rhq-project.org/browse/RHQ-1620 This bug is duplicated by RHQ-1942
*** Bug 563705 has been marked as a duplicate of this bug. ***
After having a quick look at the code again - I think we could "harden" the code by actually looking at the file found if this really exists and if it is executable and if it is on Win* even if it really a .exe If the binary does not exist at the path or is not executable, we ignore it.
Lower priority on this, if time it should be done as part of the other apache work.
Raising priority and assigning to Lukas as he is currently working in this area. This may just need testing and pushing to QE
I believe bug 698474 might have fixed this.
*** This bug has been marked as a duplicate of bug 698474 ***