ansible.snmp
ansible.snmp copied to clipboard
Ansible role for installing and Configuration SNMP v3 on installs RHEL/CentOS or Debian/Ubuntu and SNMP v2 on Windows.
Playbook: ```yaml - hosts: host gather_facts: yes tasks: - name: snmp import_role: name: sbaerlocher.snmp tags: [ configuration, packages ] vars: snmp_user: "{{ group_vars_snmp_secrets.snmp_user }}" snmp_password: "{{ group_vars_snmp_secrets.snmp_password }}" snmp_encryption: "{{...
Hi, In the snmpd.conf.j2 file for linux, the IPv6 address should be encased in brackets to make this work properly. Regards, Tim
The template file for snmpd config has typos! See issue #29
Hi, I noticed that there is no current way to override the default algorithms with a variable. In the config template, they are hard coded to SHA and AES. https://github.com/sbaerlocher/ansible.snmp/blob/d202875d5c7aaca2e2979065c4c4b6876766ad42/templates/snmp/snmpd.conf.j2#L3...
address is spelled wrong in some places, this PR will fix that. Also the agentAddress in the snmpd.conf.j2 for the IPv6 address should be surrounded by []'s. for example: agentAddress...
Do you have an example of how to run this playbook against a Windows server or Windows 10 machine?
Hello, This line is not installed on Proxmox installs: ``` Debian-snmp ALL = NOPASSWD: /usr/local/lib/snmpd/proxmox ``` Good job !
The windows registry edits were failing: " "msg": "failed to create registry key at HKLM:\\\\SYSTEM\\\\CurrentControlSet\\\\Services\\\\SNMP\\\\Parameters\\\\ValidCommunities: Exception calling \"CreateSubKey\" with \"1\" argument(s): \"The specified path is invalid.\r\n\"", " Removing the excess...