Bug 709369 - [apache] A vhost without a url to ping is always considered down
Summary: [apache] A vhost without a url to ping is always considered down
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: RHQ Project
Classification: Other
Component: Plugins
Version: 4.1
Hardware: Unspecified
OS: Unspecified
medium
unspecified vote
Target Milestone: ---
: ---
Assignee: Lukas Krejci
QA Contact: Mike Foley
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2011-05-31 14:24 UTC by Lukas Krejci
Modified: 2012-02-07 19:18 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2012-02-07 19:18:20 UTC


Attachments (Terms of Use)

Description Lukas Krejci 2011-05-31 14:24:52 UTC
Description of problem:

The availability of vhosts is strictly based on the ability to ping a configured URL. On the other hand, the availability of the server can be based on the ability to ping the configured SNMP location in absence of the URL.

We should duplicate that functionality for vhosts so that the user is free to choose the availability detection method.

Using SNMP for availability checks might be good in scenarios where the user doesn't want the availability requests to appear in their logs so they do not skew their hit counts, etc.

How reproducible:
always

Steps to Reproduce:
1. Inventory an apache instance with SNMP module configured
2. Clear the URL property in the connection settings of the "Main" vhost.
   (The fix for this issue should enable to UNSET this property which should trigger the SNMP-based detection).
  
Actual results:
"Main" vhost reported down.

Expected results:
The availability of the "Main" vhost is determined using SNMP and reported UP

Additional info:

Comment 1 Lukas Krejci 2011-05-31 14:57:49 UTC
commit be3cc52bd5d5a0651f1029db4cebe20c42b0bddd
Author: Lukas Krejci <lkrejci>
Date:   Tue May 31 16:36:54 2011 +0200

    BZ 709369 - The vhost URL is now optional and availability can be checked by pinging the SNMP location

Comment 2 Sunil Kondkar 2011-06-08 10:14:41 UTC
Verified on build#123 (Version: 4.1.0-SNAPSHOT Build Number: a6d2d56)

Configured the SNMP module in apache instance and inventoried it.
Navigated to the connection settings tab of the "Main" vhost. Cleared the URL property (by clicking the Unset checkbox) and clicked on Save button.

Entered the avail command at agent command prompt and verified that the "Main" vhost is reported up.

Marking as verified.

Comment 3 Mike Foley 2012-02-07 19:18:20 UTC
changing status of VERIFIED BZs for JON 2.4.2 and JON 3.0 to CLOSED/CURRENTRELEASE


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