Skip to content

Ansible Playbook that writes the whole invenotry into Librenms.

License

Notifications You must be signed in to change notification settings

itigoag/ansible.playbook.inventory2librenms

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Ansible Playbook: inventory2librenms

license

Description

Ansible Playbook that writes the whole invenotry into Librenms.

Playbook Variables

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.

Example

SNMP v1

inventory2librenms_body:
  hostname: "{{ item }}"
  version: "v1"
  community: "public"

SNMP v2

inventory2librenms_body:
  hostname: "{{ item }}"
  version: "v2"
  community: "public"

SNMP v3

inventory2librenms_body:
  authlevel: authPriv
  authname: "{{ snmp_user }}"
  authpass: "{{ snmp_password }}"
  authalgo: "SHA"
  cryptopass: "{{ snmp_encryption }}"
  cryptoalgo: "DES"
  hostname: "{{ item }}"
  version: "v3"

1.1.0

  • fix hostname is lower

1.0.0

  • inital role

Author

License

This project is under the MIT License. See the LICENSE file for the full license text.

Copyright

(c) 2018, Simon Bärlocher (c) 2018, ITIGO AG

About

Ansible Playbook that writes the whole invenotry into Librenms.

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published