diff --git a/ansible/snmpd.conf b/ansible/snmpd.conf new file mode 100644 index 0000000..51fde74 --- /dev/null +++ b/ansible/snmpd.conf @@ -0,0 +1,27 @@ +# Change RANDOMSTRINGGOESHERE to your preferred SNMP community string +com2sec readonly default RANDOMSTRINGGOESHERE + +group MyROGroup v2c readonly +view all included .1 80 +access MyROGroup "" any noauth exact all none none + +syslocation Home +syscontact Ray Lyon + +agentAddress udp:161,udp6:[::1]:161 +rocommunity RANDOMSTRINGGOESHERE + +#OS Distribution Detection +extend distro /usr/bin/distro + +#Hardware Detection +# (uncomment for x86 platforms) +extend manufacturer '/bin/cat /sys/devices/virtual/dmi/id/sys_vendor' +extend hardware '/bin/cat /sys/devices/virtual/dmi/id/product_name' +extend serial '/bin/cat /sys/devices/virtual/dmi/id/product_serial' + +# (uncomment for ARM platforms) +#extend hardware '/bin/cat /sys/firmware/devicetree/base/model' +#extend serial '/bin/cat /sys/firmware/devicetree/base/serial-number +# +#