Bug 534866 (RHQ-1620)
| Summary: | apache discovery found a ghost apache | ||
|---|---|---|---|
| Product: | [Other] RHQ Project | Reporter: | John Mazzitelli <mazz> |
| Component: | Plugins | Assignee: | Lukas Krejci <lkrejci> |
| Status: | CLOSED DUPLICATE | QA Contact: | |
| Severity: | low | Docs Contact: | |
| Priority: | high | ||
| Version: | 1.2 | CC: | ian.springer, mfoley, ozizka |
| Target Milestone: | --- | ||
| Target Release: | --- | ||
| Hardware: | All | ||
| OS: | All | ||
| URL: | http://jira.rhq-project.org/browse/RHQ-1620 | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | Bug Fix | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2011-11-16 18:32:13 UTC | 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: | 577313, 625146 | ||
|
Description
John Mazzitelli
2009-02-20 20:02:00 UTC
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 *** |