[APACHE DOCUMENTATION]

Module mod_snmp

This module is contained in the modules/snmp directory and is not compiled in by default. It provides an SNMP management extension for the Apache server via the SNMP framework. The SNMP agent implements the SNMPv2-MIB (RFC 1907), WWW-MIB (RFC 2594) and some extra Apache specific MIB-modules.


<SNMP> directive

Syntax:<SNMP number>...</SNMP>
Context: snmp config
Status: Extension
Module: mod_snmp

The number sets the network port on which the SNMP agent listens. The network port is a number from 0 to 65635; some port numbers (especially below 1024) are reserved for particular protocols. See also /etc/services for a list of some defined ports; the standard port for the SNMP protocol is 161.

Port 161 is one of Unix's special ports. All ports numbered below 1024 are reserved for system use, i.e. regular (non-root) users cannot make use of them; instead they can only use higher port numbers. To use port 161, you must start the server from the root account.

If you cannot use port 161, choose any other unused port. Non-root users will have to choose a port number higher than 1023, such as 8000.

Example:

See also SNMPbuckets, SNMPcommunity, sysDescr, sysContact and sysLocation.


SNMPbuckets directive

Syntax: SNMP directory
Context: snmp config
Status: Extension
Module: mod_snmp

The SNMPbuckets directives specifies the directory where you want the buckets (used for the WWW_Docuement group) want to be stored. These bucket are storage for the GNU-DBM to provide document statistics in SNMP. For precise working and usage of the see the WWW-MIB.

Example:


SNMPcommunity directive

Syntax: SNMPcommunity string
Default: community public
Context: snmp config
Status: Extension
Module: mod_snmp

The community is used to define communities with which the SNMP agent is accessible. In SNMP version 1 and version 2C the community is used for 'security'. Only valid communities have access to the information of the SNMP agent.

The most common known community is 'public'. A lot of people use this, but is not required. If there is no community given the default community will be used. At most 10 communities can be defined and the string length maybe at most 64 characters.

SECURITY: if you do not want the information from the SNMP agent available for others. You must use well-known names or words from the dictionary.

Example:


sysDescr directive

Syntax: sysDescr string
Default:a compiled in default reflecting the various version/protocol flags and other details.
Context: snmp config
Status: Extension
Module: mod_snmp

The sysDescr directive is used to define the system description of the host on which the SNMP agent (thus server) is running taht is used for the the sysDescr object instance of SNMPv2-MIB (also known as part of MIB-II).

The definition says:

Example:

See also sysContact and sysLocation.


sysContact directive

>Syntax: sysContact string
Context: snmp config
Status: Extension
Module: mod_snmp

The sysContact directive is used to define the contact address for the system that is used for the sysContact object instance of SNMPv2-MIB (also known as part of MIB-II).

The definition says:

Example:

See also sysDescr, and sysLocation.


sysLocation directive

Syntax: sysLocation string
Context: snmp config
Status: Extension
Module: mod_snmp

The sysLocation directive is used to define the location of the host on which the SNMP agent (thus the server) is running and is used for the sysLocation object instance of the SNMPv2-MIB (also known as part of MIB-II).

The definition says:

Example:

See also sysDescr and sysContact.


Index Home