FastHandle is fast operation tools for infrastructure configurations and tests.
This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
os:linux:set:etc:etc_snmp_snmpd.conf [2018/02/26 00:47] kurihara created |
os:linux:set:etc:etc_snmp_snmpd.conf [2018/02/26 01:01] (current) kurihara [My /etc/snmp/snmpd.conf] |
||
---|---|---|---|
Line 13: | Line 13: | ||
# -rw------- | # -rw------- | ||
# | # | ||
- | # man 5 sshd_config | + | # man 5 snmpd.conf |
# | # | ||
- | com2sec notConfigUser | + | # |
- | group | + | com2sec notConfigUser |
- | group | + | |
- | view systemview | + | # |
- | access | + | group |
+ | group | ||
+ | |||
+ | # | ||
+ | view systemview | ||
+ | |||
+ | # group | ||
+ | access | ||
syslocation Unknown (edit / | syslocation Unknown (edit / | ||
Line 498: | Line 506: | ||
===== Ubuntu 16.0.4 Default / | ===== Ubuntu 16.0.4 Default / | ||
<sxh bash toolbar: | <sxh bash toolbar: | ||
+ | ############################################################################### | ||
+ | # | ||
+ | # EXAMPLE.conf: | ||
+ | # An example configuration file for configuring the Net-SNMP agent (' | ||
+ | # See the ' | ||
+ | # | ||
+ | # Some entries are deliberately commented out, and will need to be explicitly activated | ||
+ | # | ||
+ | ############################################################################### | ||
+ | # | ||
+ | # AGENT BEHAVIOUR | ||
+ | # | ||
+ | # Listen for connections from the local system only | ||
+ | agentAddress | ||
+ | # Listen for connections on all interfaces (both IPv4 *and* IPv6) | ||
+ | # | ||
+ | |||
+ | |||
+ | |||
+ | ############################################################################### | ||
+ | # | ||
+ | # SNMPv3 AUTHENTICATION | ||
+ | # | ||
+ | # Note that these particular settings don't actually belong here. | ||
+ | # They should be copied to the file / | ||
+ | # and the passwords changed, before being uncommented in that file *only*. | ||
+ | # Then restart the agent | ||
+ | |||
+ | # createUser authOnlyUser | ||
+ | # createUser authPrivUser | ||
+ | # createUser internalUser | ||
+ | |||
+ | # If you also change the usernames (which might be sensible), | ||
+ | # then remember to update the other occurances in this example config file to match. | ||
+ | |||
+ | |||
+ | |||
+ | ############################################################################### | ||
+ | # | ||
+ | # ACCESS CONTROL | ||
+ | # | ||
+ | |||
+ | # | ||
+ | view | ||
+ | view | ||
+ | |||
+ | # | ||
+ | # | ||
+ | # | ||
+ | | ||
+ | # | ||
+ | | ||
+ | |||
+ | # | ||
+ | # | ||
+ | # | ||
+ | # | ||
+ | # | ||
+ | |||
+ | # | ||
+ | | ||
+ | # | ||
+ | # | ||
+ | # | ||
+ | |||
+ | # It's no longer typically necessary to use the full ' | ||
+ | # r[ow]user and r[ow]community, | ||
+ | |||
+ | |||
+ | |||
+ | ############################################################################### | ||
+ | # | ||
+ | # SYSTEM INFORMATION | ||
+ | # | ||
+ | |||
+ | # Note that setting these values here, results in the corresponding MIB objects being ' | ||
+ | # See snmpd.conf(5) for more details | ||
+ | sysLocation | ||
+ | sysContact | ||
+ | # Application + End-to-End layers | ||
+ | sysServices | ||
+ | |||
+ | |||
+ | # | ||
+ | # Process Monitoring | ||
+ | # | ||
+ | # At least one ' | ||
+ | proc mountd | ||
+ | # No more than 4 ' | ||
+ | proc ntalkd | ||
+ | # At least one ' | ||
+ | proc sendmail 10 1 | ||
+ | |||
+ | # Walk the UCD-SNMP-MIB:: | ||
+ | # Note that this table will be empty if there are no " | ||
+ | |||
+ | |||
+ | # | ||
+ | # Disk Monitoring | ||
+ | # | ||
+ | # 10MBs required on root disk, 5% free on /var, 10% free on all other disks | ||
+ | disk / | ||
+ | disk / | ||
+ | includeAllDisks | ||
+ | |||
+ | # Walk the UCD-SNMP-MIB:: | ||
+ | # Note that this table will be empty if there are no " | ||
+ | |||
+ | |||
+ | # | ||
+ | # System Load | ||
+ | # | ||
+ | # Unacceptable 1-, 5-, and 15-minute load averages | ||
+ | load 12 10 5 | ||
+ | |||
+ | # Walk the UCD-SNMP-MIB:: | ||
+ | # Note that this table *will* be populated, even without a " | ||
+ | |||
+ | |||
+ | |||
+ | ############################################################################### | ||
+ | # | ||
+ | # ACTIVE MONITORING | ||
+ | # | ||
+ | |||
+ | # send SNMPv1 | ||
+ | | ||
+ | # send SNMPv2c traps | ||
+ | # | ||
+ | # send SNMPv2c INFORMs | ||
+ | # | ||
+ | |||
+ | # Note that you typically only want *one* of these three lines | ||
+ | # Uncommenting two (or all three) will result in multiple copies of each notification. | ||
+ | |||
+ | |||
+ | # | ||
+ | # Event MIB - automatically generate alerts | ||
+ | # | ||
+ | # Remember to activate the ' | ||
+ | iquerySecName | ||
+ | rouser | ||
+ | # generate traps on UCD error conditions | ||
+ | defaultMonitors | ||
+ | # generate traps on linkUp/Down | ||
+ | linkUpDownNotifications | ||
+ | |||
+ | |||
+ | |||
+ | ############################################################################### | ||
+ | # | ||
+ | # EXTENDING THE AGENT | ||
+ | # | ||
+ | |||
+ | # | ||
+ | # Arbitrary extension commands | ||
+ | # | ||
+ | | ||
+ | | ||
+ | #extend-sh test3 / | ||
+ | |||
+ | # Note that this last entry requires the script '/ | ||
+ | # containing the same three shell commands, before the line is uncommented | ||
+ | |||
+ | # Walk the NET-SNMP-EXTEND-MIB tables (nsExtendConfigTable, | ||
+ | # and nsExtendOutput2Table) to see the resulting output | ||
+ | |||
+ | # Note that the " | ||
+ | # However, walking the UCD-SNMP-MIB:: | ||
+ | # as well as the fuller results in the above tables. | ||
+ | |||
+ | |||
+ | # | ||
+ | # " | ||
+ | # | ||
+ | #pass .1.3.6.1.4.1.8072.2.255 | ||
+ | #pass .1.3.6.1.4.1.8072.2.255 | ||
+ | |||
+ | # Note that this requires one of the two ' | ||
+ | # before the appropriate line is uncommented. | ||
+ | # These scripts can be found in the ' | ||
+ | # and are not installed automatically. | ||
+ | |||
+ | # Walk the NET-SNMP-PASS-MIB:: | ||
+ | |||
+ | |||
+ | # | ||
+ | # AgentX Sub-agents | ||
+ | # | ||
+ | # | ||
+ | | ||
+ | # | ||
+ | # | ||
+ | # | ||
</ | </ | ||
My Sites
SNS
Copyright (c) 2024 FastHandle - IT Operations Examples All Rights Reserved.