mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
Updated linux snmpd.conf example (#12195)
remove hard-coded oids an use the defaults The Unix.php code detects both
This commit is contained in:
@@ -367,12 +367,11 @@ syslocation Rack, Room, Building, City, Country [GPSX,Y]
|
||||
syscontact Your Name <your@email.address>
|
||||
|
||||
#Distro Detection
|
||||
extend .1.3.6.1.4.1.2021.7890.1 distro /usr/bin/distro
|
||||
|
||||
extend distro /usr/bin/distro
|
||||
#Hardware Detection (uncomment to enable)
|
||||
#extend .1.3.6.1.4.1.2021.7890.2 hardware '/bin/cat /sys/devices/virtual/dmi/id/product_name'
|
||||
#extend .1.3.6.1.4.1.2021.7890.3 manufacturer '/bin/cat /sys/devices/virtual/dmi/id/sys_vendor'
|
||||
#extend .1.3.6.1.4.1.2021.7890.4 serial '/bin/cat /sys/devices/virtual/dmi/id/product_serial'
|
||||
#extend hardware '/bin/cat /sys/devices/virtual/dmi/id/product_name'
|
||||
#extend manufacturer '/bin/cat /sys/devices/virtual/dmi/id/sys_vendor'
|
||||
#extend serial '/bin/cat /sys/devices/virtual/dmi/id/product_serial'
|
||||
```
|
||||
|
||||
**NOTE**: On some systems the snmpd is running as its own user, which
|
||||
|
@@ -9,8 +9,8 @@ syslocation Rack, Room, Building, City, Country [GPSX,Y]
|
||||
syscontact Your Name <your@email.address>
|
||||
|
||||
#Distro Detection
|
||||
extend .1.3.6.1.4.1.2021.7890.1 distro /usr/bin/distro
|
||||
extend distro /usr/bin/distro
|
||||
#Hardware Detection (uncomment to enable)
|
||||
#extend .1.3.6.1.4.1.2021.7890.2 hardware '/bin/cat /sys/devices/virtual/dmi/id/product_name'
|
||||
#extend .1.3.6.1.4.1.2021.7890.3 manufacturer '/bin/cat /sys/devices/virtual/dmi/id/sys_vendor'
|
||||
#extend .1.3.6.1.4.1.2021.7890.4 serial '/bin/cat /sys/devices/virtual/dmi/id/product_serial'
|
||||
#extend hardware '/bin/cat /sys/devices/virtual/dmi/id/product_name'
|
||||
#extend manufacturer '/bin/cat /sys/devices/virtual/dmi/id/sys_vendor'
|
||||
#extend serial '/bin/cat /sys/devices/virtual/dmi/id/product_serial'
|
||||
|
Reference in New Issue
Block a user