Apache HTTP Server Version 1.3
SNMP Agent
General Information
The SNMP module is an extension with which the status of the Apache HTTP
Server can be retrieved via the Simple
Network Management
Protocol (SNMP). SNMP is a well-known
management framework for the Internetletting hardware (such as routers,
briges and modems) and software (such as operating systems, network layers
and applications) provide their status via a Management
Information Base
(MIB). The MIB represents a collection of managed objects of remote devices
that are accessible via SNMP-agents. Managers can query an agent for the
values of objects managed by the agent.
This module exists of an agent that implements the following MIBs:
-
SNMPv2-MIB
A mandatory MIB for every SNMP agent. The MIB was
defined by the SNMPv2 WG of the IETF (RFC 1907).
-
WWW-MIB
A MIB defined for the management of WWW Services.
The MIB is defined within the SYSAPPL MIB wg of the IETF (RFC 2594).
-
APACHE-SCOREBOARD-MIB
An specific MIB for the Apache HTTP Sever which provide SNMP access to the internal scorebaord.
APACHE-CONFIG-MIB
A specific MIB for the Apache HTTP Sever with which SNMP access is given to some configuration parameters
at run-time.
Installation instructions
-
Install the Apache HTTP Server (Version 1.3.x) as required.
-
Untar the SNMP module from within the Apache directory (directly above
the 'src'- and 'htdocs'-directory). This creates an 'snmp_agt'-directory
within the 'modules'-directory, 'htdocs/snmp_agt'-directory and an 'snmp.conf-dist'-file.
-
Configure and make the Apache HTTP Server. You now have multiple options for the database you can use.
- The following commands makes the HTTP-server and includes the SNMP Agent Module with the DB:
prompt# CFLAGS="-DSNMP -DUSE_DB" \
./configure \
--activate-module=src/modules/snmp_agt/libsnmp_agt.a
prompt# make
prompt# make install
- The following commands makes the HTTP-server and includes the SNMP Agent Module with the GDBM:
NOTE: This installation process requires the GNU-DBM to be installed as well. This example
assumes the the GNU-DBM include file is in directory /usr/local/gdbm/include and that the GNU-DBM
library is in /usr/local/gdbm/lib.
prompt# CFLAGS="-DSNMP -DUSE_GDBM" \
LIBS="-L/usr/local/gdbm/lib -lgdbm" \
INCLUDES="-I/usr/local/gdbm/include" \
./configure \
--enable-module=snmp_agt
prompt# make
prompt# make install
-
Add the contents of the 'snmp.conf-dist'-file to the 'httpd.conf'-file.
(These files are standard in the '/usr/local/apache/conf')
prompt# cat httpd.conf-dist snmp.conf-dist > httpd.temp
prompt# mv httpd.temp httpd.conf
-
Edit the SNMP-section of the httpd.conf-file.
-
Start, restart and stop Apache with new binary.
This installation process requires the GNU-DBM to be installed as well.
If you have installed the GNU-DBM with a different prefix as "/usr/local/"
You have to modify the "./configure" of the above step 3 accordingly (LIBS
and INCLUDE).
Fine-tuning the SNMP Module
Within in the MIB several groups are defined with which a selection to
your wishes can be made. Therefore, you can edit an 'command-line' expander
('group_select'-file) to select the groups of your choice. That file allows
you to override the default of all groups without doing a re-configure.
A selection line in the file looks like: "echo '-D<group>'"
The following groups exist in the implemented MIBs:
Apache HTTP Server Version 1.3