29 lines
1.1 KiB
Plaintext
29 lines
1.1 KiB
Plaintext
|
## {{ salt['pillar.get']('salt_managed', default='Salt Managed') }}
|
||
|
|
||
|
agentAddress udp:161,udp6:161
|
||
|
dontLogTCPWrappersConnects yes
|
||
|
|
||
|
syscontact {{ salt['pillar.get']('snmp_syscontact') }}
|
||
|
{% if salt['grains.get']('location') is defined %}syslocation {{ salt['grains.get']('location') }}{% endif %}
|
||
|
|
||
|
rocommunity {{ salt['pillar.get']('snmp_community') }} default
|
||
|
rocommunity6 {{ salt['pillar.get']('snmp_community') }} default
|
||
|
|
||
|
# IPv4 settings
|
||
|
{% for net in salt['pillar.get']('ipv4_networks') %}com2sec {{ salt['pillar.get']('snmp_community') }}-ro {{ net.ip }}/{{ net.mask }} {{ salt['pillar.get']('snmp_community') }}
|
||
|
{% endfor %}
|
||
|
# IPv6 settings
|
||
|
{% for net in salt['pillar.get']('ipv6_networks') %}com2sec {{ salt['pillar.get']('snmp_community') }}-ro {{ net.ip }}/{{ net.mask }} {{ salt['pillar.get']('snmp_community') }}
|
||
|
{% endfor %}
|
||
|
group {{ salt['pillar.get']('snmp_community')}}-gro v2c {{ salt['pillar.get']('snmp_community') }}-ro
|
||
|
|
||
|
view all included .1
|
||
|
|
||
|
access paulbsd-gro "" any noauth exact all none none
|
||
|
|
||
|
# Disks to monitor
|
||
|
{%- for partition in salt['mount.fstab']() %}
|
||
|
{%- if partition != "none" -%}
|
||
|
disk {{ partition }}
|
||
|
{%- endif -%}
|
||
|
{%- endfor %}
|