VMware Cloud Community
Kro77
Contributor
Contributor

Question on Apache SNMP Module

Hi everyone, first I would like to say the hyperic is really great, my question is what would cause the apache module to state it's availability is red (0), but the other metrics are available. I followed the instructions and was able to compile and modify the httpd.conf file, put in the servername directive, and load the modules. I was unable to run the test step since it does not appear that the snmp_walk is compile with the open source version.

Any suggestions would be greatly appreciated.
0 Kudos
4 Replies
john_hyperic
Hot Shot
Hot Shot

First, the snmp package is the same for all versions of HQ, so yours
should have snmpwalk. It may not have gotten built for some reason - if
the tools fail to build, it does not fail the entire build since the
important thing is the module. Check in snmp_module_2.0/tools for the
snmpwalk binary (note, it's not snmp_walk). If it's not there and you
want to try to figure out why, look through the build log 2.0_log (this
all assumes you are using Apache 2.0). If it's not there, there is a
decent chance there is one already installed on your system. Many Linux
distributions install snmp and its tools by default (again, assuming
Linux here). However, if you are getting Apache metrics in HQ, snmp is
working.

As for the Availability metric, it is configured per vhost. The
important configuration parameters (on the Configuration Properties
page) are "server.name", "hostname" and "path" (of course, "port", "ssl"
and "protocol" are important too, but those are pretty self explanatory).

The "hostname" property is the network interface HQ will connect to to
attempt an HTTP request. It can be an IP or name. Valid examples are
"127.0.0.1", "localhost", "www.company.com", etc. It is important to
note that this is strictly used for network connectivity for where the
request will be made.

The "server.name" property should match up with a ServerName directive
in your Apache configuration. This is the Apache Host that HQ will make
the request to. For instance, if you are using name based virtual hosts
in Apache, you know that even if www.company1.com and www.company2.com
may resolve to the same IP address, but Apache can be configured to
serve different content based on the name used. That is the Apache
Host. It is possible that the "server.name" and "hostname" can be the
same thing.

The "path" property is the URI for the availability check. The defaut
is "/", but maybe you want the check to request a specific URI like
"/index.html" or "/admin/monitor/available.txt".

he biggest source of confusion is the "hostname" and "server.name"
properties. Hopefully, I have cleared that up here and you can get your
Apache to show green availability. If you continue to have problems or
if anything above needs clarification, let me know.

Kro77
Contributor
Contributor

This looks promising, ok i have the servername directive set to lets say 10.2.10.2, and the ip of the box is 10.2.10.2. I do an elinks to it and the page loads correctly. So i have created a file called available.txt and placed it on the root to see what happens. Thanks for the tips, and the snmp utilities are on this box that must be why the snmp_walk was not built.
0 Kudos
Kro77
Contributor
Contributor

Just checked and it is showing as available... YEAH! I think the problem could be my home page is a redirect to a sub dir, and that is throwing it off. once i specified the available.txt it now shows green. Thanks alot.
0 Kudos
john_hyperic
Hot Shot
Hot Shot

Excellent!

0 Kudos