OPTIONS="-LS3d -Lf /dev/null -p /var/run/snmpd.pid -a"
chmod +x /etc/sysconfig/snmpd.options
0 或 ! —- LOG_EMERG,
1 或 a —- LOG_ALERT,
2 或 c —- LOG_CRIT,
3 或 e —- LOG_ERR,
4 或 w —- LOG_WARNING,
5 或 n —- LOG_NOTICE,
6 或 i —- LOG_INFO, and
7 或 d —- LOG_DEBUG.
SEE snmpd man手册
snmpd - daemon to respond to SNMP request packets.
SNMP management software. Upon receiving a request, it processes the
request(s), collects the requested information and/or performs the
requested operation(s) and returns the information to the sender.
-a Log the source addresses of incoming requests.
specified by the -c option.
Turn on debugging output for the given TOKEN(s). Without any
tokens specified, it defaults to printing all the tokens (which
is equivalent to the keyword "ALL"). You might want to try ALL
for extremely verbose output. Note: You can not put a space
between the -D flag and the listed TOKENs.
Display a brief usage message and then exit.
the agent and then exit.
This option specifies which modules you do (or do not) want to
be initialized when the agent starts up. If the comma-sepa-
rated INITLIST is preceded with a '-', it is the list of mod-
ules that you do not want to be started. Otherwise, INITLIST
is the list of modules to be started.
ments -Dmib_init -H (assumes you have debugging support com-
Log all output from the agent (including stdout and stderr) to
FILE. If no filename is given, log to a default file set at
compile time (normally /var/log/snmpd.log).
not exit if files only accessible to root (such as /dev/kmem
etc.) cannot be opened.
Specifies the syslog facility to use when logging to syslog.
'd' means LOG_DAEMON and 0 through 7 mean LOG_LOCAL0 through
LOG_LOCAL7. LOG_DAEMON is the default.
textual form) after opening listening sockets.
Print version information for the agent and then exit.
Listens for AgentX connections on the specified address rather
than the default '/var/agentx/master'. The address can either
be a Unix domain socket path, or the address of a network
interface. The format is the same as the format of listening
161. However, it is possible to modify this behaviour by specifying
one or more listening addresses as arguments to snmpd. A listening
address takes the form:
in which case snmpd listens on that UDP port on all IPv4 interfaces.
Otherwise, the <transport-address> part of the specification is parsed
according to the following table:
for example, "tcp" and "TCP" are equivalent. Here are some examples,
along with their interpretation:
back interface. This prevents snmpd being
queried remotely (which is a bit pointless).
The ":161" is redundant here since that is the
default SNMP port in any case.
the Unix domain is the default transport iff
the first character of the <transport-address>
is a '/'.
with VPI=0 and VCI=161 (decimal) on the first
ATM adapter in the machine.
available; for instance, hosts with no IPv6 support will not be able to
use udp6 transport addresses, and attempts to do so will result in the
error "Error opening specified endpoint". Likewise, since AAL5 PVC
support is only currently available on Linux, it will fail with the
same error on other platforms.
CONFIGURATION FILES snmpd checks for the existence of and parses the following files:
Common configuration for the agent and applications. See
snmp.conf(5) for details.
Agent-specific configuration. See snmpd.conf(5) for details.
These files are optional and may be used to configure access con-
trol, trap generation, subagent protocols and much else besides.
will read any files with the names snmpd.conf and
snmpd.local.conf in a colon separated path specified in the SNMP-
CONFPATH environment variable.
The agent will also load all files in this directory as MIBs. It
will not, however, load any file that begins with a '.' or
descend into subdirectories.
(in recommended reading order)