You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Dashie der otter 386e3529b0
makes ansible happy
2 months ago
defaults Add first try 2 months ago
handlers Whoopsie 2 months ago
meta Add first try 2 months ago
tasks makes ansible happy 2 months ago
templates/etc Add first try 2 months ago Add first try 2 months ago

SNMPD Ansible Role

Based on without the user auth thing and more things.

Import in playbook:

- hosts: all
      - { role: rhaamo.snmpd, become: true }

Default config:


# Default packages for snmpd
  - snmp
  - snmpd
  - snmp-mibs-downloader
  - net-snmp
  - net-snmp-utils

# Should we start and enable the daemon
snmpd_enabled: True

# MIBs to load
snmpd_mibs: UCD-SNMP-MIB

# Default SNMPD options (use syslog, close stdin/out/err)
snmpd_opts: '-LS4d -Lf /dev/null -u snmp -g snmp -I -smux -p /var/run/'

# Should we start and enable snmptrapd
snmpd_trapd_enabled: false

# Default options for snmptrapd (use syslog)
snmpd_trapd_opts: '-Lsd -p /var/run/'

# Create a symlink on debian legacy location to official RFC path
snmpd_snmpd_compat: false

# Default listen on everything
  - 'udp:161'
  - 'udp6:[::1]:161'

# List of networks to authorize
# snmpd_authorized_networks:
#   - community: public
#     network:
snmpd_authorized_networks: []

# System location
snmpd_sys_location: 'Unknown'

# System contact
snmpd_sys_contact: Root <root@localhost>

# System description, defaults on inventory hostname
snmpd_sys_description: "{{ inventory_hostname }}"

# Include all disks mounted on system
snmpd_disks_include_all: false
# Threshold for all disks mounted
snmpd_disks_include_all_threshold_minpercent: '10%'

# List of disks
# snmpd_disks:
#   - path: /dev/sda
#     threshold: 69%
snmpd_disks: []

# Configure the Event MIB tables to monitor the various UCD-SNMP-MIB tables for problems
snmpd_default_monitors: true
# Configure the Event MIB tables to monitor the fTable for network interface being taken up or down, and triggering a linkUp or linkDown notification as appropriate
snmpd_link_up_down_notifications: true

# List of SNMPD extensions
# snmpd_extensions:
#   - name: farts
#     prog: /usr/local/bin/yolo
snmpd_extensions: []