Documentation updates for DMI support and making two links in the FAQ work (#8440)

* Documentation updates for DMI support and making two links in the FAQ work

* Update SNMP-Configuration-Examples.md

* Update SNMP-Configuration-Examples.md

* Update snmpd.conf.example

* Update SNMP-Configuration-Examples.md
This commit is contained in:
James Andrewartha 2018-05-09 07:35:25 +08:00 committed by Tony Murray
parent 3e0c26ff50
commit a7437c13da
3 changed files with 12 additions and 10 deletions

View File

@ -98,11 +98,11 @@ You will then have a two options in the footer of the website - Show SQL Debug a
#### <a name="faq11"> How do I debug the discovery process?</a>
Please see the [Discovery Support](http://docs.librenms.org/Support/Discovery Support) document for further details.
Please see the [Discovery Support](http://docs.librenms.org/Support/Discovery Support/) document for further details.
#### <a name="faq12"> How do I debug the poller process?</a>
Please see the [Poller Support](http://docs.librenms.org/Support/Poller Support) document for further details.
Please see the [Poller Support](http://docs.librenms.org/Support/Poller Support/) document for further details.
#### <a name="faq14"> Why do I get a lot apache or rrdtool zombies in my process list?</a>

View File

@ -233,16 +233,15 @@ syscontact Your Name <your@email.address>
#Distro Detection
extend .1.3.6.1.4.1.2021.7890.1 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'
```
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 its own user, which means it can't read `/sys/devices/virtual/dmi/id/product_serial` which is mode 0400. One solution is to `chmod 444 /sys/devices/virtual/dmi/id/product_serial` in `/etc/rc.local` or equivalent.
**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.
```
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'
```
The LibreNMS server include a copy of this example here:
```

View File

@ -10,4 +10,7 @@ syscontact Your Name <your@email.address>
#Distro Detection
extend .1.3.6.1.4.1.2021.7890.1 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'