VMware Cloud Community
ajescobar
Contributor
Contributor

apache 2.0.52 with hyperic 3.0.5

I have a Centos 4.4 running apache 2.0.52. I installed hyperic 3.0.5.

In Servers > Apache httpd > Resources > Services shows the following:
No health data is available for this resource.

Any help will be apreciated.
0 Kudos
14 Replies
ajescobar
Contributor
Contributor

However in the Indicator Charts hyperic only shows the Availability indicator.
0 Kudos
cwitt_hyperic
Hot Shot
Hot Shot

You will need to turn on ExtendedStatus in order to get any meaningful data out of the Apache httpd server type.

Add the following to your Apache configuration file:

ExtendedStatus On
<Location /server-status>
SetHandler server-status
Order deny,allow
Deny from all
Allow from localhost
</Location>

Restart Apache. Now, within HQ, visit the Apache httpd resource page, go to the Inventory tab, expand Configuration Properties (at the bottom), and click Edit. Make sure all the required fields have the correct information for your Apache installation (if you turn on ExtendedStatus as I indicated above, the "path" field should be set to "/server-status"), then click OK.

This should get you the basic stats for which you are looking. If you are looking for data on specific vhosts, you will need to look at using the SNMP module. More details can be found in the documentation here: http://support.hyperic.com/confluence/display/DOCSHQ30/Apache.
0 Kudos
wartus
Contributor
Contributor

hi,

I'm having same issue, also with apache 2.0.52 with hyperic 3.0.5.

ExtendedStatus On
<Location /server-status>
SetHandler server-status
Order deny,allow
Deny from all
Allow from localhost
</Location>

is present in /etc/httpd/conf/httpd.conf

Configuration Properties in HQ:

port: 80
path: /server-status
hostname: localhost
sotimeout: 10

availability remains zero

any thoughts ?

thanks in advance
0 Kudos
excowboy
Virtuoso
Virtuoso

Hi,

despite of the fact that line

<Location /s

has to be

<Location /server-status>

you can check if Apache is providing extendes status by running a CLI browser like w3m or lynx and point it on the following URL: http://localhost/server-status
If you get some technical data on this page, you might have an error in your HQ server configuration properties. Otherwise you have to check your Apache configuration again.
0 Kudos
wartus
Contributor
Contributor

Hi excowboy,

that location file is broken of by this forum, it did say "server-status"

anyhow,
thanx for the tip, via lynx i found out that 'localhost' was not allowed to watch the server-status directory.

So i changed the line in httpd.conf to

Allow from localhost 127.0.0.1

after rebooting httpd it started working.

cheers !
0 Kudos
goodluva
Enthusiast
Enthusiast

is there any other settings in hyperic i may have to change, to get metric data for apache 2.2

I used the instructions on this page and it all works thru my browser, but hyperic isn't displaying any data

just wondering if there is anything in the inventory i have forgotten

screen shot posted of Configuration Properties included

I hope zip files OK 🐵
0 Kudos
goodluva
Enthusiast
Enthusiast

is there any one who can help me with this last issue
0 Kudos
excowboy
Virtuoso
Virtuoso

Are your sure that your Apache uses SSL on port 81 ? Hyperic uses the following URL to get the status: https://localhost:81/server-status
Check out the URL above on commandline of the Apache-Host with lynx, w3m or whatever.
0 Kudos
goodluva
Enthusiast
Enthusiast

yes port 81 is where our http is, we have tomcat using 80

i don't think we need ssl, but i thought the port field referred to http?
0 Kudos
excowboy
Virtuoso
Virtuoso

The configuration is a little bit tricky at this point and the port field is for http and https as well.
So if port 81 is non-ssl, uncheck the ssl box.
0 Kudos
goodluva
Enthusiast
Enthusiast

thanx for you quick reponse

I now have a "red" mark in the available column rather than a grey one, but it still not picking up any data, i've tried as much as i know how, packet filters, firewalls etc, but i just can't get it to display any data.

I'm completely at a loss
0 Kudos
goodluva
Enthusiast
Enthusiast

do we need a server and gents on each machine?
0 Kudos
cwitt_hyperic
Hot Shot
Hot Shot

Is any interesting data showing up in your agent.log file? If the plug-in is having problems collecting data, it may be necessary to put the agent in DEBUG mode so that more verbose data is generated so that we can get some better clues.

To put the agent in DEBUG mode, follow the instructions in the docs here: http://support.hyperic.com/confluence/display/DOCSHQ30/HQ+Agent+Configuration. Once we've figured out the problem, you'll want to change this back to the default INFO value to keep the log from growing out of control.
0 Kudos
cwitt_hyperic
Hot Shot
Hot Shot

Re: server and agents on each machine...

I'm not sure what you are asking here, so if I do not answer your question, please rephrase.

You need an HQ Server to collect information from the agents you have deployed on machines in your environment, and to present you with the UI.

The HQ Agent allows you to collect a larger amount of data about applications, processes, and services running on a machine than you can collect through simple polling mechanisms, making it advantageous to install one if you need a more detailed picture of what is happening. If you do not want to run an agent on every machine in your environment, with at least one agent running in your environment, you can query some services (HTTP, IMAP, SMTP, POP3, DNS, etc.) through remote checks. Hyperic calls these Network Services, and they can be added through the "Tools Menu -> New Platform Service" on a Platform resource page.

There are also some applications that can be monitored remotely through a machine that has an agent installed, but this can create some inventory confusion. These applications would show up as resources of a machine running the agent, not the one running the application.
0 Kudos