wip: nut monitor
parent
efb8c79ba3
commit
c135700d85
|
@ -1,4 +1,18 @@
|
||||||
nut_users:
|
nut_users:
|
||||||
|
dustin:
|
||||||
|
password: |
|
||||||
|
-----BEGIN AGE ENCRYPTED FILE-----
|
||||||
|
YWdlLWVuY3J5cHRpb24ub3JnL3YxCi0+IFgyNTUxOSBsdWVBOXZpb3Fxclk4SGJv
|
||||||
|
N0JyeEthbzFOTzQySkw3cWZhSEk2Y1poWm0wCnhEVkJhWWtIdUxnVUFSa2xCSDNU
|
||||||
|
ak1rbzhaUzN1WUxKajdvOTluVGJwaGsKLS0tIG9NL3ZrMDY5Z2prMnNWL003cDRP
|
||||||
|
T3NySlREeXZoaVhGcUdTVmxrYXNyUDQKXFvRM9INd7E334OOYlFgp9pu1w4b3szL
|
||||||
|
yVmqMxpy98iHA6HKvuw=
|
||||||
|
-----END AGE ENCRYPTED FILE-----
|
||||||
|
actions:
|
||||||
|
- set
|
||||||
|
- fsd
|
||||||
|
instcmds:
|
||||||
|
- all
|
||||||
homeassistant:
|
homeassistant:
|
||||||
password: |
|
password: |
|
||||||
-----BEGIN AGE ENCRYPTED FILE-----
|
-----BEGIN AGE ENCRYPTED FILE-----
|
||||||
|
@ -8,6 +22,16 @@ nut_users:
|
||||||
bUJjYlBSSEYwRUpwemlMZ0xCZnpTS2cKUFke27YDeTME9OBgEcQdbJ3jsDZS43km
|
bUJjYlBSSEYwRUpwemlMZ0xCZnpTS2cKUFke27YDeTME9OBgEcQdbJ3jsDZS43km
|
||||||
tK61kLMcexq3lXQb30gx4fzMuYa0MXFygawscTnxTrOrXUd36Iga4A==
|
tK61kLMcexq3lXQb30gx4fzMuYa0MXFygawscTnxTrOrXUd36Iga4A==
|
||||||
-----END AGE ENCRYPTED FILE-----
|
-----END AGE ENCRYPTED FILE-----
|
||||||
|
upsmon:
|
||||||
|
password: |
|
||||||
|
-----BEGIN AGE ENCRYPTED FILE-----
|
||||||
|
YWdlLWVuY3J5cHRpb24ub3JnL3YxCi0+IFgyNTUxOSBzdnZMZ1F1d05RRi84ZENT
|
||||||
|
SmdRNkFLWDRPMTBFTkdOdFRBMC8xK0gvUVV3CjRhWVljR3ZiU1hwWEJBN2hCcTM1
|
||||||
|
NWFQWWdmVm1XK1pKUHFnRjJjYXdDNjgKLS0tIERvOU44ellHdGZYVXRDMHN4NkpV
|
||||||
|
QkhtVlVQUS96UStlQWo2QWJISUlGL2cKc8AC3UujJMIafbV31pjAzniqSHBNwYDw
|
||||||
|
zhh094auKibUcg6Tbyc=
|
||||||
|
-----END AGE ENCRYPTED FILE-----
|
||||||
|
upsmon: slave
|
||||||
|
|
||||||
nut_ups:
|
nut_ups:
|
||||||
apc1500:
|
apc1500:
|
||||||
|
@ -15,7 +39,7 @@ nut_ups:
|
||||||
- port: auto
|
- port: auto
|
||||||
- desc: Back-UPS XS 1500G
|
- desc: Back-UPS XS 1500G
|
||||||
- vendorid: 051d
|
- vendorid: 051d
|
||||||
- product: .*1500G.*
|
- product: .*1500M.*
|
||||||
- pollonly: enabled
|
- pollonly: enabled
|
||||||
- pollinterval: 1
|
- pollinterval: 1
|
||||||
apc1300:
|
apc1300:
|
||||||
|
|
6
nut.yml
6
nut.yml
|
@ -6,3 +6,9 @@
|
||||||
- role: collectd-nut
|
- role: collectd-nut
|
||||||
tags:
|
tags:
|
||||||
- collectd
|
- collectd
|
||||||
|
|
||||||
|
- hosts: nut-monitor
|
||||||
|
roles:
|
||||||
|
- role: nut-monitor
|
||||||
|
tags:
|
||||||
|
- nut-monitor
|
||||||
|
|
|
@ -9,6 +9,9 @@ actions = {{ action }}
|
||||||
{% for instcmds in settings.instcmds|d([]) %}
|
{% for instcmds in settings.instcmds|d([]) %}
|
||||||
instcmds = {{ instcmds }}
|
instcmds = {{ instcmds }}
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
|
{% if settings.upsmon|d(none) is not none %}
|
||||||
|
upsmon {{ settings.upsmon }}
|
||||||
|
{% endif %}
|
||||||
{% if not loop.last %}
|
{% if not loop.last %}
|
||||||
|
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
Loading…
Reference in New Issue