add mikrotik devices to munin (#193)
All checks were successful
ansible-lint / gitleaks (push) Successful in 5s
ansible-lint / Ansible Lint (push) Successful in 45s

Reviewed-on: https://git.mgrote.net///mg/homeserver/pulls/193
Co-authored-by: Michael Grote <michael.grote@posteo.de>
Co-committed-by: Michael Grote <michael.grote@posteo.de>
This commit is contained in:
Michael Grote 2024-09-27 17:41:02 +02:00 committed by Michael Grote
parent b573487748
commit 4e4aa19eb7
2 changed files with 34 additions and 5 deletions

View file

@ -36,11 +36,6 @@ lvm_groups:
manage_lvm: true
pvresize_to_max: true
### mgrote_munin_node
munin_node_bind_host: "127.0.0.1"
munin_node_bind_port: "4949"
munin_node_allowed_cidrs: [127.0.0.1]
### mgrote_munin_master
munin_mode: cgi # or cron
munin_mail_user: munin@mgrote.net
@ -75,3 +70,37 @@ munin_hosts:
- name: ldap.mgrote.net
address: ldap.mgrote.net
extra: ["use_node_name yes"]
### mgrote_munin_node
munin_node_bind_host: "127.0.0.1"
munin_node_bind_port: "4949"
munin_node_allowed_cidrs: [127.0.0.1]
munin_node_plugins:
- name: mikrotik_system_rb5009
src: https://git.mgrote.net/mirrors/munin-contrib/raw/branch/master/plugins/router/mikrotik_system
config: |
[mikrotik_system_rb5009]
user root
env.ssh_user munin
env.ssh_password {{ lookup('viczem.keepass.keepass', 'routeros-munin-user-password', 'password') }}
env.ssh_host 192.168.2.1
- name: mikrotik_system_crs305
src: https://git.mgrote.net/mirrors/munin-contrib/raw/branch/master/plugins/router/mikrotik_system
config: |
[mikrotik_system_crs305]
user root
env.ssh_user munin
env.ssh_password {{ lookup('viczem.keepass.keepass', 'routeros-munin-user-password', 'password') }}
env.ssh_host 192.168.2.225
- name: mikrotik_system_hex
src: https://git.mgrote.net/mirrors/munin-contrib/raw/branch/master/plugins/router/mikrotik_system
config: |
[mikrotik_system_hex]
user root
env.ssh_user munin
env.ssh_password {{ lookup('viczem.keepass.keepass', 'routeros-munin-user-password', 'password') }}
env.ssh_host 192.168.3.144
### mgrote.apt_manage_packages
apt_packages_extra:
- sshpass # für munin: mikrotik_system

Binary file not shown.