Skip to content

Commit a3f8dc6

Browse files
authored
Clarify non-x86 hardware info sources for snmpd (librenms#12253)
* Clarify non-x86 hardware info sources for snmpd * Clarify that ARM platforms use device tree, not SMBIOS _(maybe consider a wrapper script for this too?)_ * Non-GPS based systems can also provide lat & lon, such as Galileo or Beidou * Clarify that Distro means Distribution * Update SNMP-Configuration-Examples.md
1 parent 219aec2 commit a3f8dc6

File tree

2 files changed

+17
-4
lines changed

2 files changed

+17
-4
lines changed

doc/Support/SNMP-Configuration-Examples.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -380,6 +380,13 @@ is mode 0400. One solution is to include `@reboot chmod 444
380380
/sys/devices/virtual/dmi/id/product_serial` in the crontab for root or
381381
equivalent.
382382

383+
Non-x86 or SMBIOS-based systems, such as ARM-based Raspberry Pi units should
384+
query device tree locations for this metadata, for example:
385+
```
386+
extend hardware '/bin/cat /sys/firmware/devicetree/base/model'
387+
extend serial '/bin/cat /sys/firmware/devicetree/base/serial-number'
388+
```
389+
383390
The LibreNMS server include a copy of this example here:
384391

385392
```

snmpd.conf.example

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,18 @@ group MyROGroup v2c readonly
55
view all included .1 80
66
access MyROGroup "" any noauth exact all none none
77

8-
syslocation Rack, Room, Building, City, Country [GPSX,Y]
8+
syslocation Rack, Room, Building, City, Country [Lat, Lon]
99
syscontact Your Name <[email protected]>
1010

11-
#Distro Detection
11+
#OS Distribution Detection
1212
extend distro /usr/bin/distro
13-
#Hardware Detection (uncomment to enable)
14-
#extend hardware '/bin/cat /sys/devices/virtual/dmi/id/product_name'
13+
14+
#Hardware Detection
15+
# (uncomment for x86 platforms)
1516
#extend manufacturer '/bin/cat /sys/devices/virtual/dmi/id/sys_vendor'
17+
#extend hardware '/bin/cat /sys/devices/virtual/dmi/id/product_name'
1618
#extend serial '/bin/cat /sys/devices/virtual/dmi/id/product_serial'
19+
20+
# (uncomment for ARM platforms)
21+
#extend hardware '/bin/cat /sys/firmware/devicetree/base/model'
22+
#extend serial '/bin/cat /sys/firmware/devicetree/base/serial-number'

0 commit comments

Comments
 (0)