Pegasus InfoCorp: Web site design and web software development company

SNMP.CONF (8)

describes how to configure the ucd-snmp applications.

DESCRIPTION

    The ucd-snmp package uses various configuration files to configure its applications. This manual page merely describes the overall nature of them, so that the other manual pages don't have to.

DIRECTORIES SEARCHED

    First off, there are numerous places that configuration files can be found and read from. By default, the applications look for configuration files in the following 3 directories, in order: /usr/share/snmp, /usr/lib/snmp, and $HOME/.snmp. In each of these directories, it looks for files with the extension of both .conf and \.local.conf (reading the second on last). In this manner, there are 6 default places a configuration file can exist for any given configuration file type.

    Additionally, the above default search path can be overridden by setting the environment variable SNMPCONFPATH to a ':' separated list of directories to search for.

    Finally, applications that store persistent data will also look in the /var/snmp directory for configuration files there.

CONFIGURATION FILE TYPES

    Each application may use multiple configuration files, which will configure various different aspects of the application. For instance, the SNMP agent (snmpd) knows how to understand configuration directives in both the snmpd.conf and the snmp.conf files. In fact, most applications understand how to read the contents of the snmp.conf files. Note, however, that configuration directives understood in one file may not be understood in another file. For further information, read the associated manual page with each configuration file type. Also, most of the applications support a '-H' switch on the command line that will list the configuration files it will look for and the directives in each one that it understands.

    The snmp.conf configuration file is intended to be a application suite wide configuration file that supports directives that are useful for controlling the fundamental nature of all of the snmp applications, such as how they all manipulate and parse the textual SNMP mib files.

COMMENTS

    Any lines beginning with the character '#' in the configuration files are treated as a comment and are not parsed.

API Interface

    Information about writing C code that makes use of this system in either the agent's mib modules or in applications can be found in the read_config(3) manual page.

SEE ALSO

    read_config(3)