Skip to content

Commit

Permalink
docs: Elaborated on permission issues with dmidecode for snmp (#7288)
Browse files Browse the repository at this point in the history
  • Loading branch information
f0o authored and laf committed Sep 5, 2017
1 parent c39f3c7 commit e754e95
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion doc/Support/SNMP-Configuration-Examples.md
Original file line number Diff line number Diff line change
Expand Up @@ -181,8 +181,10 @@ syscontact Your Name <your@email.address>
extend .1.3.6.1.4.1.2021.7890.1 distro /usr/bin/distro
```

If you have 'dmidecode' installed on your host, you can add the following lines for additional hardware detection.

**NOTE**: On some systems the snmpd is running as an own user, making dmidecode unable to read out `/dev/mem` and thus showing multiple errors. Either add the snmp user to the `kmem` group or remove these lines again.
```
#If you have 'dmidecode' installed on your host, you can add the following lines for additional hardware detection
extend .1.3.6.1.4.1.2021.7890.2 hardware '/usr/sbin/dmidecode -s system-product-name'
extend .1.3.6.1.4.1.2021.7890.3 manufacturer '/usr/sbin/dmidecode -s system-manufacturer'
extend .1.3.6.1.4.1.2021.7890.4 serial '/usr/sbin/dmidecode -s system-serial-number'
Expand Down

0 comments on commit e754e95

Please sign in to comment.