mirror of
https://github.com/skoobasteeve/useful-scripts.git
synced 2026-03-19 23:28:55 +00:00
Create snmpd.conf
This commit is contained in:
27
ansible/snmpd.conf
Normal file
27
ansible/snmpd.conf
Normal file
@@ -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 <ray@raylyon.net>
|
||||
|
||||
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
|
||||
#
|
||||
#
|
||||
Reference in New Issue
Block a user