From 4e36805eaaf7b426bbf64711e01acbb6017e565c Mon Sep 17 00:00:00 2001 From: dmeiser Date: Wed, 3 Apr 2019 07:39:02 -0400 Subject: [PATCH] Updated SNMP-Configuration-Examples (#10063) Update snmpd instructions for Linux to reflect the ability to use @reboot declaration in the crontab. This is probably preferable to rc.local, which is apparently not supported or possible deprecated in Ubuntu or CentOS7. --- doc/Support/SNMP-Configuration-Examples.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doc/Support/SNMP-Configuration-Examples.md b/doc/Support/SNMP-Configuration-Examples.md index 590f677c91..357d677760 100644 --- a/doc/Support/SNMP-Configuration-Examples.md +++ b/doc/Support/SNMP-Configuration-Examples.md @@ -266,7 +266,7 @@ extend .1.3.6.1.4.1.2021.7890.1 distro /usr/bin/distro #extend .1.3.6.1.4.1.2021.7890.4 serial '/bin/cat /sys/devices/virtual/dmi/id/product_serial' ``` -**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 its own user, which means it can't read `/sys/devices/virtual/dmi/id/product_serial` which is mode 0400. One solution is to include `@reboot chmod 444 /sys/devices/virtual/dmi/id/product_serial` in the crontab for root or equivalent. The LibreNMS server include a copy of this example here: