Ansible Playbook that writes the whole invenotry into Librenms.
Variable | Default | Comments (type) |
---|---|---|
inventory2librenms_url | URL of your Librenms instance | |
inventory2librenms_token | API Key of your Librenms instance | |
inventory2librenms_body | Contents of the post body see examples for snmp versions. |
inventory2librenms_body:
hostname: "{{ item }}"
version: "v1"
community: "public"
inventory2librenms_body:
hostname: "{{ item }}"
version: "v2"
community: "public"
inventory2librenms_body:
authlevel: authPriv
authname: "{{ snmp_user }}"
authpass: "{{ snmp_password }}"
authalgo: "SHA"
cryptopass: "{{ snmp_encryption }}"
cryptoalgo: "DES"
hostname: "{{ item }}"
version: "v3"
- fix hostname is lower
- inital role
This project is under the MIT License. See the LICENSE file for the full license text.
(c) 2018, Simon Bärlocher (c) 2018, ITIGO AG