⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 snmpd.conf

📁 Linux嵌入式设计配套光盘,学习嵌入式设计可参考
💻 CONF
字号:
############################################################################# snmpd.conf##   - created by the snmpconf configuration program############################################################################rocommunity publicrwcommunity writer############################################################################ SECTION: System Information Setup##   This section defines some of the information reported in#   the "system" mib group in the mibII tree.# syslocation: The [typically physical] location of the system.#   Note that setting this value here means that when trying to#   perform an snmp SET operation to the sysLocation.0 variable will make#   the agent return the "notWritable" error code.  IE, including#   this token in the snmpd.conf file will disable write access to#   the variable.#   arguments:  location_stringsyslocation Tuxs Laboratory# syscontact: The contact information for the administrator#   Note that setting this value here means that when trying to#   perform an snmp SET operation to the sysContact.0 variable will make#   the agent return the "notWritable" error code.  IE, including#   this token in the snmpd.conf file will disable write access to#   the variable.#   arguments:  contact_stringsyscontact help@LinuxApplianceDesign.comagentaddress 161# The following 9 lines with trapsink, trap2sink and informsink are used in a# special way by the web UI. Each line starts with zero, one or two hash# characters.  The first notification in the web UI will have its data stored# in either the first 'trapsink', the first 'trap2sink' or the first# 'informsink' depending on the traptype. Likewise, the second notification in# the web UI will have its data stored in either the second 'trapsink', the# second 'trap2sink' or the second 'informsink', again depending on its# traptype.  A line with zero hashes means that the notification is enabled and# will be seen as Enabled from the UI. A line with one hash means that the# notification will be displayed as Disabled in the web UI. A line with two# hashes will be ignored by the web UI.  When we take the first 'trapsink', the# first 'trap2sink' and the first 'informsink' as a group, the following# conditions should hold: (i) at most one in this group should have zero# hashes, and (ii) at most one in this group should have one hash. This# condition also holds for the second and third notifications.  Should the# condition for any group become invalid, for example, by someone manually# editing this file, then the web UI will attempt to modify this file to make# this condition valid again (when the web user presses Update). trapsink localhost public 162##trap2sink localhost public 162##informsink localhost public 162##trapsink localhost public 162##trap2sink localhost public 162##informsink localhost public 162##trapsink localhost public 162##trap2sink localhost public 162##informsink localhost public 162############################################################################ SECTION: Monitor Various Aspects of the Running Host##   The following check up on various aspects of a host.# disk: Check for disk space usage of a partition.#   The agent can check the amount of available disk space, and make#   sure it is above a set limit.  #   #    disk PATH [MIN=100000]#   #    PATH:  mount path to the disk in question.#    MIN:   Disks with space below this value will have the Mib's errorFlag set.#           Can be a raw byte value or a percentage followed by the %#           symbol.  Default value = 100000.#   #   The results are reported in the dskTable section of the UCD-SNMP-MIB treedisk /   # load: Check for unreasonable load average values.#   Watch the load average levels on the machine.#   #    load [1MAX=12.0] [5MAX=12.0] [15MAX=12.0]#   #    1MAX:   If the 1 minute load average is above this limit at query#            time, the errorFlag will be set.#    5MAX:   Similar, but for 5 min average.#    15MAX:  Similar, but for 15 min average.#   #   The results are reported in the laTable section of the UCD-SNMP-MIB treeload  80 60 50############################################################################ SECTION: Agent Operating Mode##   This section defines how the agent will operate when it#   is running.# agentaddress: The IP address and port number that the agent will listen on.#   By default the agent listens to any and all traffic from any#   interface on the default SNMP port (161).  This allows you to#   specify which address, interface, transport type and port(s) that you#   want the agent to listen on.  Multiple definitions of this token#   are concatenated together (using ':'s).#   arguments: [transport:]port[@interface/address],...# wep: The following yields: "Warning: Unknown token".#linkUpDownNotifications yes

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -